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() |
long[] |
getGuestUserRoleIds() |
List<Long> |
getOwnerResourceBlockIds(long companyId,
long groupId,
String name,
String actionId) |
long |
getOwnerRoleId() |
Map<Object,Object> |
getPermissionChecksMap() |
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(com.liferay.portal.kernel.model.Group group,
String name,
long primKey,
String actionId) |
boolean |
hasPermission(long groupId,
String name,
long primKey,
String actionId) |
boolean |
hasPermission(long groupId,
String name,
String 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()
clone
in interface com.liferay.portal.kernel.security.permission.PermissionChecker
clone
in class Object
public long getCompanyId()
getCompanyId
in interface com.liferay.portal.kernel.security.permission.PermissionChecker
public long[] getGuestUserRoleIds()
getGuestUserRoleIds
in interface com.liferay.portal.kernel.security.permission.PermissionChecker
public List<Long> getOwnerResourceBlockIds(long companyId, long groupId, String name, String actionId)
getOwnerResourceBlockIds
in interface com.liferay.portal.kernel.security.permission.PermissionChecker
public long getOwnerRoleId()
getOwnerRoleId
in interface com.liferay.portal.kernel.security.permission.PermissionChecker
public Map<Object,Object> getPermissionChecksMap()
getPermissionChecksMap
in interface com.liferay.portal.kernel.security.permission.PermissionChecker
public List<Long> getResourceBlockIds(long companyId, long groupId, long userId, String name, String actionId)
getResourceBlockIds
in interface com.liferay.portal.kernel.security.permission.PermissionChecker
public long[] getRoleIds(long userId, long groupId)
getRoleIds
in interface com.liferay.portal.kernel.security.permission.PermissionChecker
public com.liferay.portal.kernel.model.User getUser()
getUser
in interface com.liferay.portal.kernel.security.permission.PermissionChecker
public long getUserId()
getUserId
in interface com.liferay.portal.kernel.security.permission.PermissionChecker
public boolean hasOwnerPermission(long companyId, String name, long primKey, long ownerId, String actionId)
hasOwnerPermission
in interface com.liferay.portal.kernel.security.permission.PermissionChecker
public boolean hasPermission(com.liferay.portal.kernel.model.Group group, String name, long primKey, String actionId)
hasPermission
in interface com.liferay.portal.kernel.security.permission.PermissionChecker
public boolean hasPermission(long groupId, String name, long primKey, String actionId)
hasPermission
in interface com.liferay.portal.kernel.security.permission.PermissionChecker
public boolean hasPermission(long groupId, String name, String primKey, String actionId)
hasPermission
in interface com.liferay.portal.kernel.security.permission.PermissionChecker
public void init(com.liferay.portal.kernel.model.User user)
init
in interface com.liferay.portal.kernel.security.permission.PermissionChecker
public boolean isCheckGuest()
isCheckGuest
in interface com.liferay.portal.kernel.security.permission.PermissionChecker
public boolean isOmniadmin()
isOmniadmin
in interface com.liferay.portal.kernel.security.permission.PermissionChecker
public boolean isSignedIn()
isSignedIn
in interface com.liferay.portal.kernel.security.permission.PermissionChecker