public abstract class BasePermissionChecker extends Object implements com.liferay.portal.kernel.security.permission.PermissionChecker
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
checkGuest |
protected long |
defaultUserId |
protected Boolean |
omniadmin |
protected com.liferay.portal.kernel.model.Role |
ownerRole |
protected boolean |
signedIn |
protected com.liferay.portal.kernel.model.User |
user |
| Constructor and Description |
|---|
BasePermissionChecker() |
| Modifier and Type | Method and Description |
|---|---|
abstract com.liferay.portal.kernel.security.permission.PermissionChecker |
clone() |
long |
getCompanyId() |
List<Long> |
getOwnerResourceBlockIds(long companyId,
long groupId,
String name,
String actionId) |
long |
getOwnerRoleId() |
List<Long> |
getResourceBlockIds(long companyId,
long groupId,
long userId,
String name,
String actionId) |
long[] |
getRoleIds(long userId,
long groupId) |
com.liferay.portal.kernel.model.User |
getUser() |
long |
getUserId() |
boolean |
hasOwnerPermission(long companyId,
String name,
long primKey,
long ownerId,
String actionId) |
boolean |
hasPermission(long groupId,
String name,
long primKey,
String actionId) |
void |
init(com.liferay.portal.kernel.model.User user) |
boolean |
isCheckGuest() |
boolean |
isOmniadmin() |
boolean |
isSignedIn() |
protected boolean checkGuest
protected long defaultUserId
protected Boolean omniadmin
protected com.liferay.portal.kernel.model.Role ownerRole
protected boolean signedIn
protected com.liferay.portal.kernel.model.User user
public abstract com.liferay.portal.kernel.security.permission.PermissionChecker clone()
public long getCompanyId()
getCompanyId in interface com.liferay.portal.kernel.security.permission.PermissionCheckerpublic List<Long> getOwnerResourceBlockIds(long companyId, long groupId, String name, String actionId)
getOwnerResourceBlockIds in interface com.liferay.portal.kernel.security.permission.PermissionCheckerpublic long getOwnerRoleId()
getOwnerRoleId in interface com.liferay.portal.kernel.security.permission.PermissionCheckerpublic List<Long> getResourceBlockIds(long companyId, long groupId, long userId, String name, String actionId)
getResourceBlockIds in interface com.liferay.portal.kernel.security.permission.PermissionCheckerpublic long[] getRoleIds(long userId,
long groupId)
getRoleIds in interface com.liferay.portal.kernel.security.permission.PermissionCheckerpublic com.liferay.portal.kernel.model.User getUser()
getUser in interface com.liferay.portal.kernel.security.permission.PermissionCheckerpublic long getUserId()
getUserId in interface com.liferay.portal.kernel.security.permission.PermissionCheckerpublic boolean hasOwnerPermission(long companyId,
String name,
long primKey,
long ownerId,
String actionId)
hasOwnerPermission in interface com.liferay.portal.kernel.security.permission.PermissionCheckerpublic boolean hasPermission(long groupId,
String name,
long primKey,
String actionId)
hasPermission in interface com.liferay.portal.kernel.security.permission.PermissionCheckerpublic void init(com.liferay.portal.kernel.model.User user)
init in interface com.liferay.portal.kernel.security.permission.PermissionCheckerpublic boolean isCheckGuest()
isCheckGuest in interface com.liferay.portal.kernel.security.permission.PermissionCheckerpublic boolean isOmniadmin()
isOmniadmin in interface com.liferay.portal.kernel.security.permission.PermissionCheckerpublic boolean isSignedIn()
isSignedIn in interface com.liferay.portal.kernel.security.permission.PermissionChecker