Liferay 6.0-ee-sp2

com.liferay.portal.security.permission
Interface PermissionChecker

All Superinterfaces:
Cloneable

public interface PermissionChecker
extends Cloneable


Field Summary
static long[] DEFAULT_ROLE_IDS
           
 
Method Summary
 PermissionChecker clone()
           
 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 isCheckGuest()
           
 boolean isCommunityAdmin(long groupId)
           
 boolean isCommunityOwner(long groupId)
           
 boolean isCompanyAdmin()
           
 boolean isCompanyAdmin(long companyId)
           
 boolean isOmniadmin()
           
 boolean isSignedIn()
           
 void resetValues()
          Deprecated. Does nothing
 void setCheckGuest(boolean checkGuest)
           
 void setValues(PortletRequest portletRequest)
          Deprecated. Does nothing
 

Field Detail

DEFAULT_ROLE_IDS

static final long[] DEFAULT_ROLE_IDS
Method Detail

clone

PermissionChecker clone()

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)

isCheckGuest

boolean isCheckGuest()

isCommunityAdmin

boolean isCommunityAdmin(long groupId)

isCommunityOwner

boolean isCommunityOwner(long groupId)

isCompanyAdmin

boolean isCompanyAdmin()

isCompanyAdmin

boolean isCompanyAdmin(long companyId)

isOmniadmin

boolean isOmniadmin()

isSignedIn

boolean isSignedIn()

resetValues

void resetValues()
Deprecated. Does nothing


setCheckGuest

void setCheckGuest(boolean checkGuest)

setValues

void setValues(PortletRequest portletRequest)
Deprecated. Does nothing


Liferay 6.0-ee-sp2