Liferay 6.0.5

com.liferay.portal.security.permission
Interface PermissionChecker

All Known Implementing Classes:
AdvancedPermissionChecker, BasePermissionChecker, SimplePermissionChecker

public interface PermissionChecker


Field Summary
static long[] DEFAULT_ROLE_IDS
           
 
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 hasOwnerPermission(long companyId, String name, String primKey, long ownerId, String actionId)
           
 boolean hasPermission(long groupId, String name, long primKey, String actionId)
           
 boolean hasPermission(long groupId, String name, String primKey, String actionId)
           
 boolean hasUserPermission(long groupId, String name, String primKey, String actionId, boolean checkAdmin)
           
 void init(User user, boolean checkGuest)
           
 boolean isCommunityAdmin(long groupId)
           
 boolean isCommunityOwner(long groupId)
           
 boolean isCompanyAdmin()
           
 boolean isCompanyAdmin(long companyId)
           
 boolean isOmniadmin()
           
 void resetValues()
           
 void setCheckGuest(boolean checkGuest)
           
 void setValues(PortletRequest portletRequest)
           
 

Field Detail

DEFAULT_ROLE_IDS

static final long[] DEFAULT_ROLE_IDS
Method Detail

getCompanyId

long getCompanyId()

getOwnerRoleId

long getOwnerRoleId()

getRoleIds

long[] getRoleIds(long userId,
                  long groupId)

getUserId

long getUserId()

hasOwnerPermission

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

hasOwnerPermission

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

hasPermission

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

hasPermission

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

hasUserPermission

boolean hasUserPermission(long groupId,
                          String name,
                          String primKey,
                          String actionId,
                          boolean checkAdmin)

init

void init(User user,
          boolean checkGuest)

isCommunityAdmin

boolean isCommunityAdmin(long groupId)

isCommunityOwner

boolean isCommunityOwner(long groupId)

isCompanyAdmin

boolean isCompanyAdmin()

isCompanyAdmin

boolean isCompanyAdmin(long companyId)

isOmniadmin

boolean isOmniadmin()

resetValues

void resetValues()

setCheckGuest

void setCheckGuest(boolean checkGuest)

setValues

void setValues(PortletRequest portletRequest)

Liferay 6.0.5