Liferay 6.0.5

com.liferay.portal.security.permission
Class BasePermissionChecker

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

public abstract class BasePermissionChecker
extends Object
implements PermissionChecker


Field Summary
protected  boolean checkGuest
           
protected  long defaultUserId
           
protected  Boolean omniadmin
           
protected  Role ownerRole
           
protected  boolean signedIn
           
protected  User user
           
 
Fields inherited from interface com.liferay.portal.security.permission.PermissionChecker
DEFAULT_ROLE_IDS
 
Constructor Summary
BasePermissionChecker()
           
 
Method Summary
 long getCompanyId()
           
 long getOwnerRoleId()
           
 long[] getRoleIds(long userId, long groupId)
           
 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(User user, boolean checkGuest)
           
 boolean isOmniadmin()
           
 void resetValues()
           
 void setCheckGuest(boolean checkGuest)
           
 void setValues(PortletRequest portletRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.security.permission.PermissionChecker
hasOwnerPermission, hasPermission, hasUserPermission, isCommunityAdmin, isCommunityOwner, isCompanyAdmin, isCompanyAdmin
 

Field Detail

user

protected User user

defaultUserId

protected long defaultUserId

signedIn

protected boolean signedIn

checkGuest

protected boolean checkGuest

omniadmin

protected Boolean omniadmin

ownerRole

protected Role ownerRole
Constructor Detail

BasePermissionChecker

public BasePermissionChecker()
Method Detail

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

Liferay 6.0.5