Liferay 7.0-ga1 portal-impl

com.liferay.portal.security.permission
Class BasePermissionChecker

java.lang.Object
  extended by com.liferay.portal.security.permission.BasePermissionChecker
All Implemented Interfaces:
com.liferay.portal.kernel.security.permission.PermissionChecker, Cloneable
Direct Known Subclasses:
AdvancedPermissionChecker, SimplePermissionChecker

public abstract class BasePermissionChecker
extends Object
implements com.liferay.portal.kernel.security.permission.PermissionChecker


Field Summary
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
           
 
Fields inherited from interface com.liferay.portal.kernel.security.permission.PermissionChecker
DEFAULT_ROLE_IDS
 
Constructor Summary
BasePermissionChecker()
           
 
Method Summary
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()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.kernel.security.permission.PermissionChecker
getUserBag, hasOwnerPermission, hasPermission, isCompanyAdmin, isCompanyAdmin, isContentReviewer, isGroupAdmin, isGroupMember, isGroupOwner, isOrganizationAdmin, isOrganizationOwner
 

Field Detail

checkGuest

protected boolean checkGuest

defaultUserId

protected long defaultUserId

omniadmin

protected Boolean omniadmin

ownerRole

protected com.liferay.portal.kernel.model.Role ownerRole

signedIn

protected boolean signedIn

user

protected com.liferay.portal.kernel.model.User user
Constructor Detail

BasePermissionChecker

public BasePermissionChecker()
Method Detail

clone

public abstract com.liferay.portal.kernel.security.permission.PermissionChecker clone()
Specified by:
clone in interface com.liferay.portal.kernel.security.permission.PermissionChecker
Overrides:
clone in class Object

getCompanyId

public long getCompanyId()
Specified by:
getCompanyId in interface com.liferay.portal.kernel.security.permission.PermissionChecker

getOwnerResourceBlockIds

public List<Long> getOwnerResourceBlockIds(long companyId,
                                           long groupId,
                                           String name,
                                           String actionId)
Specified by:
getOwnerResourceBlockIds in interface com.liferay.portal.kernel.security.permission.PermissionChecker

getOwnerRoleId

public long getOwnerRoleId()
Specified by:
getOwnerRoleId in interface com.liferay.portal.kernel.security.permission.PermissionChecker

getResourceBlockIds

public List<Long> getResourceBlockIds(long companyId,
                                      long groupId,
                                      long userId,
                                      String name,
                                      String actionId)
Specified by:
getResourceBlockIds in interface com.liferay.portal.kernel.security.permission.PermissionChecker

getRoleIds

public long[] getRoleIds(long userId,
                         long groupId)
Specified by:
getRoleIds in interface com.liferay.portal.kernel.security.permission.PermissionChecker

getUser

public com.liferay.portal.kernel.model.User getUser()
Specified by:
getUser in interface com.liferay.portal.kernel.security.permission.PermissionChecker

getUserId

public long getUserId()
Specified by:
getUserId in interface com.liferay.portal.kernel.security.permission.PermissionChecker

hasOwnerPermission

public boolean hasOwnerPermission(long companyId,
                                  String name,
                                  long primKey,
                                  long ownerId,
                                  String actionId)
Specified by:
hasOwnerPermission in interface com.liferay.portal.kernel.security.permission.PermissionChecker

hasPermission

public boolean hasPermission(long groupId,
                             String name,
                             long primKey,
                             String actionId)
Specified by:
hasPermission in interface com.liferay.portal.kernel.security.permission.PermissionChecker

init

public void init(com.liferay.portal.kernel.model.User user)
Specified by:
init in interface com.liferay.portal.kernel.security.permission.PermissionChecker

isCheckGuest

public boolean isCheckGuest()
Specified by:
isCheckGuest in interface com.liferay.portal.kernel.security.permission.PermissionChecker

isOmniadmin

public boolean isOmniadmin()
Specified by:
isOmniadmin in interface com.liferay.portal.kernel.security.permission.PermissionChecker

isSignedIn

public boolean isSignedIn()
Specified by:
isSignedIn in interface com.liferay.portal.kernel.security.permission.PermissionChecker

Liferay 7.0-ga1 portal-impl