public class DefaultModelResourcePermission<T extends GroupedModel> extends Object implements ModelResourcePermission<T>
Constructor and Description |
---|
DefaultModelResourcePermission(ModelResourcePermissionDefinition<T> modelResourcePermissionDefinition,
List<ModelResourcePermissionLogic<T>> modelResourcePermissionLogics) |
Modifier and Type | Method and Description |
---|---|
void |
check(PermissionChecker permissionChecker,
long primaryKey,
String actionId) |
void |
check(PermissionChecker permissionChecker,
T model,
String actionId) |
boolean |
contains(PermissionChecker permissionChecker,
long primaryKey,
String actionId) |
boolean |
contains(PermissionChecker permissionChecker,
T model,
String actionId) |
String |
getModelName() |
PortletResourcePermission |
getPortletResourcePermission() |
public DefaultModelResourcePermission(ModelResourcePermissionDefinition<T> modelResourcePermissionDefinition, List<ModelResourcePermissionLogic<T>> modelResourcePermissionLogics)
public void check(PermissionChecker permissionChecker, long primaryKey, String actionId) throws PortalException
check
in interface ModelResourcePermission<T extends GroupedModel>
PortalException
public void check(PermissionChecker permissionChecker, T model, String actionId) throws PortalException
check
in interface ModelResourcePermission<T extends GroupedModel>
PortalException
public boolean contains(PermissionChecker permissionChecker, long primaryKey, String actionId) throws PortalException
contains
in interface ModelResourcePermission<T extends GroupedModel>
PortalException
public boolean contains(PermissionChecker permissionChecker, T model, String actionId) throws PortalException
contains
in interface ModelResourcePermission<T extends GroupedModel>
PortalException
public String getModelName()
getModelName
in interface ModelResourcePermission<T extends GroupedModel>
public PortletResourcePermission getPortletResourcePermission()
getPortletResourcePermission
in interface ModelResourcePermission<T extends GroupedModel>