public class ContentAccessController extends AbstractHierarchicalAccessController<AmetysObject>
AccessController for a ContentAbstractProfileStorageBasedAccessController.CacheKindAccessController.AccessResult| Modifier and Type | Field and Description |
|---|---|
protected ContentHelper |
_contentHelper
The helper for contents
|
protected RootContentHelper |
_rootContentHelper
The helper for root content
|
__ANONYMOUS_USER_IDENTITY, __ANY_CONTECTED_USER_IDENTITY, _profileAssignmentStorageEP, _rightManager, _rightProfileDAO| Constructor and Description |
|---|
ContentAccessController() |
| Modifier and Type | Method and Description |
|---|---|
protected Set<? extends Object> |
_convertWorkspaceToRootRightContexts(Set<Object> workspacesContexts)
Get the current workspaces contexts and turn it into root contexts in order to allow methods hasXXXAnyPermissionOnWorkspace to work
|
protected Set<AmetysObject> |
_getParents(AmetysObject object)
Gets the parents of the object.
|
boolean |
isSupported(Object object)
Returns true if this access controller supports the given object
|
void |
service(ServiceManager manager) |
getPermission, getPermissionByGroup, getPermissionByRight, getPermissionByUser, getPermissionForAnonymous, getPermissionForAnyConnectedUser, getReadAccessPermission, getReadAccessPermissionByGroup, getReadAccessPermissionByUser, getReadAccessPermissionForAnonymous, getReadAccessPermissionForAnyConnectedUser_convertContext, _hasRightResultInFirstCache, _hasRightResultInSecondCache, _putInFirstCache, _putInSecondCache, hasAnonymousAnyPermissionOnWorkspace, hasAnonymousAnyReadAccessPermissionOnWorkspace, hasAnyConnectedUserAnyPermissionOnWorkspace, hasAnyConnectedUserAnyReadAccessPermissionOnWorkspace, hasUserAnyPermissionOnWorkspace, hasUserAnyReadAccessPermissionOnWorkspacegetLogger, setLoggerprotected RootContentHelper _rootContentHelper
protected ContentHelper _contentHelper
public ContentAccessController()
public void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class AbstractProfileStorageBasedAccessControllerServiceExceptionpublic boolean isSupported(Object object)
AccessControllerobject - The object to testprotected Set<AmetysObject> _getParents(AmetysObject object)
AbstractHierarchicalAccessController_getParents in class AbstractHierarchicalAccessController<AmetysObject>object - The objectprotected Set<? extends Object> _convertWorkspaceToRootRightContexts(Set<Object> workspacesContexts)
AbstractProfileStorageBasedAccessController_convertWorkspaceToRootRightContexts in class AbstractProfileStorageBasedAccessControllerworkspacesContexts - The workspace contexts. Such as '/${WorkspaceName}', '/admin'