Liferay 7.0-ce-b7 portal-impl

com.liferay.portal.security.permission
Class SimplePermissionChecker

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

public class SimplePermissionChecker
extends BasePermissionChecker


Field Summary
 
Fields inherited from class com.liferay.portal.security.permission.BasePermissionChecker
checkGuest, defaultUserId, omniadmin, ownerRole, signedIn, user
 
Fields inherited from interface com.liferay.portal.kernel.security.permission.PermissionChecker
DEFAULT_ROLE_IDS
 
Constructor Summary
SimplePermissionChecker()
           
 
Method Summary
 SimplePermissionChecker clone()
           
 com.liferay.portal.kernel.security.permission.UserBag getUserBag()
           
 boolean hasOwnerPermission(long companyId, String name, String primKey, long ownerId, String actionId)
           
 boolean hasPermission(long groupId, String name, String primKey, String actionId)
           
protected  boolean hasPermission(String actionId)
           
 boolean isCompanyAdmin()
           
 boolean isCompanyAdmin(long companyId)
           
 boolean isContentReviewer(long companyId, long groupId)
           
 boolean isGroupAdmin(long groupId)
           
 boolean isGroupMember(long groupId)
           
 boolean isGroupOwner(long groupId)
           
 boolean isOrganizationAdmin(long organizationId)
           
 boolean isOrganizationOwner(long organizationId)
           
 
Methods inherited from class com.liferay.portal.security.permission.BasePermissionChecker
getCompanyId, getOwnerResourceBlockIds, getOwnerRoleId, getResourceBlockIds, getRoleIds, getUser, getUserId, hasOwnerPermission, hasPermission, init, isCheckGuest, isCommunityAdmin, isCommunityOwner, isOmniadmin, isSignedIn, resetValues, setValues
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePermissionChecker

public SimplePermissionChecker()
Method Detail

clone

public SimplePermissionChecker clone()
Specified by:
clone in interface com.liferay.portal.kernel.security.permission.PermissionChecker
Specified by:
clone in class BasePermissionChecker

getUserBag

public com.liferay.portal.kernel.security.permission.UserBag getUserBag()

hasOwnerPermission

public boolean hasOwnerPermission(long companyId,
                                  String name,
                                  String primKey,
                                  long ownerId,
                                  String actionId)

hasPermission

public boolean hasPermission(long groupId,
                             String name,
                             String primKey,
                             String actionId)

isCompanyAdmin

public boolean isCompanyAdmin()

isCompanyAdmin

public boolean isCompanyAdmin(long companyId)

isContentReviewer

public boolean isContentReviewer(long companyId,
                                 long groupId)

isGroupAdmin

public boolean isGroupAdmin(long groupId)

isGroupMember

public boolean isGroupMember(long groupId)

isGroupOwner

public boolean isGroupOwner(long groupId)

isOrganizationAdmin

public boolean isOrganizationAdmin(long organizationId)

isOrganizationOwner

public boolean isOrganizationOwner(long organizationId)

hasPermission

protected boolean hasPermission(String actionId)

Liferay 7.0-ce-b7 portal-impl