public class SimplePermissionChecker extends BasePermissionChecker
checkGuest, defaultUserId, omniadmin, ownerRole, signedIn, user
Constructor and Description |
---|
SimplePermissionChecker() |
Modifier and Type | Method and Description |
---|---|
SimplePermissionChecker |
clone() |
com.liferay.portal.kernel.security.permission.UserBag |
getUserBag() |
boolean |
hasOwnerPermission(long companyId,
String name,
String primKey,
long ownerId,
String actionId) |
boolean |
hasPermission(com.liferay.portal.kernel.model.Group group,
String name,
String primKey,
String actionId) |
protected boolean |
hasPermission(String actionId) |
boolean |
isCompanyAdmin() |
boolean |
isCompanyAdmin(long companyId) |
boolean |
isContentReviewer(long companyId,
long groupId) |
boolean |
isGroupAdmin(long groupId) |
boolean |
isGroupMember(long groupId) |
boolean |
isGroupOwner(long groupId) |
boolean |
isOrganizationAdmin(long organizationId) |
boolean |
isOrganizationOwner(long organizationId) |
getCompanyId, getGuestUserRoleIds, getOwnerRoleId, getPermissionChecksMap, getRoleIds, getUser, getUserId, hasOwnerPermission, hasPermission, hasPermission, hasPermission, init, isCheckGuest, isOmniadmin, isSignedIn
public SimplePermissionChecker clone()
clone
in interface com.liferay.portal.kernel.security.permission.PermissionChecker
clone
in class BasePermissionChecker
public com.liferay.portal.kernel.security.permission.UserBag getUserBag()
public boolean hasOwnerPermission(long companyId, String name, String primKey, long ownerId, String actionId)
public boolean hasPermission(com.liferay.portal.kernel.model.Group group, String name, String primKey, String actionId)
public boolean isCompanyAdmin()
public boolean isCompanyAdmin(long companyId)
public boolean isContentReviewer(long companyId, long groupId)
public boolean isGroupAdmin(long groupId)
public boolean isGroupMember(long groupId)
public boolean isGroupOwner(long groupId)
public boolean isOrganizationAdmin(long organizationId)
public boolean isOrganizationOwner(long organizationId)
protected boolean hasPermission(String actionId)