com.liferay.portal.security.permission
Class BasePermissionChecker
java.lang.Object
com.liferay.portal.security.permission.BasePermissionChecker
- All Implemented Interfaces:
- PermissionChecker
- Direct Known Subclasses:
- AdvancedPermissionChecker, SimplePermissionChecker
public abstract class BasePermissionChecker
- extends Object
- implements PermissionChecker
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
user
protected User user
defaultUserId
protected long defaultUserId
signedIn
protected boolean signedIn
checkGuest
protected boolean checkGuest
omniadmin
protected Boolean omniadmin
ownerRole
protected Role ownerRole
BasePermissionChecker
public BasePermissionChecker()
getCompanyId
public long getCompanyId()
- Specified by:
getCompanyId in interface PermissionChecker
getOwnerRoleId
public long getOwnerRoleId()
- Specified by:
getOwnerRoleId in interface PermissionChecker
getRoleIds
public long[] getRoleIds(long userId,
long groupId)
- Specified by:
getRoleIds in interface PermissionChecker
getUserId
public long getUserId()
- Specified by:
getUserId in interface PermissionChecker
hasOwnerPermission
public boolean hasOwnerPermission(long companyId,
String name,
long primKey,
long ownerId,
String actionId)
- Specified by:
hasOwnerPermission in interface PermissionChecker
hasPermission
public boolean hasPermission(long groupId,
String name,
long primKey,
String actionId)
- Specified by:
hasPermission in interface PermissionChecker
init
public void init(User user,
boolean checkGuest)
- Specified by:
init in interface PermissionChecker
isOmniadmin
public boolean isOmniadmin()
- Specified by:
isOmniadmin in interface PermissionChecker
resetValues
public void resetValues()
- Specified by:
resetValues in interface PermissionChecker
setCheckGuest
public void setCheckGuest(boolean checkGuest)
- Specified by:
setCheckGuest in interface PermissionChecker
setValues
public void setValues(PortletRequest portletRequest)
- Specified by:
setValues in interface PermissionChecker