Example usage for Java com.liferay.portal.kernel.security.permission PermissionChecker fields, constructors, methods, implement or subclass
The text is from its open source code.
long | getCompanyId() Returns the primary key of the user's company. |
Map | getPermissionChecksMap() |
User | getUser() |
long | getUserId() Returns the primary key of the user. |
boolean | hasOwnerPermission(long companyId, String name, long primKey, long ownerId, String actionId) Returns true if the user is the owner of the resource and has permission to perform the action. |
boolean | hasOwnerPermission(long companyId, String name, String primKey, long ownerId, String actionId) Returns true if the user is the owner of the resource and has permission to perform the action. |
boolean | hasPermission(Group group, String name, long primKey, String actionId) |
boolean | hasPermission(Group group, String name, String primKey, String actionId) |
boolean | hasPermission(long groupId, String name, long primKey, String actionId) Returns true if the user has permission to perform the action on the resource. |
boolean | hasPermission(long groupId, String name, String primKey, String actionId) Returns true if the user has permission to perform the action on the resource. |
boolean | isCompanyAdmin() Returns true if the user is an administrator of their company. |
boolean | isCompanyAdmin(long companyId) Returns true if the user is an administrator of the company. |
boolean | isContentReviewer(long companyId, long groupId) Returns true if the user is a content reviewer or has sufficient permissions to review content (i.e. |
boolean | isGroupAdmin(long groupId) Returns true if the user is an administrator of the group. |
boolean | isGroupMember(long groupId) Returns true if the user is a member of the group. |
boolean | isGroupOwner(long groupId) Returns true if the user is the owner of the group. |
boolean | isOmniadmin() Returns true if the user is a universal administrator. |
boolean | isSignedIn() Returns true if the user is signed in. |