public class UserDirectoryContentAccessController extends AbstractHierarchicalAccessController<AmetysObject> implements Contextualizable
AccessController for a User directory ContentAbstractProfileStorageBasedAccessController.CacheKindAccessController.AccessResult| Modifier and Type | Field and Description |
|---|---|
protected ContentTypesHelper |
_contentTypeHelper
The content type helper
|
protected Context |
_context
The avalon context
|
protected OrganisationChartPageHandler |
_organisationChartPageHandler
The organisation chart page handler
|
protected AmetysObjectResolver |
_resolver
Ametys Object Resolver
|
protected UserDirectoryHelper |
_userDirectoryHelper
The user directory helper
|
__ANONYMOUS_USER_IDENTITY, __ANY_CONTECTED_USER_IDENTITY, _profileAssignmentStorageEP, _rightManager, _rightProfileDAO| Constructor and Description |
|---|
UserDirectoryContentAccessController() |
| 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.
|
private boolean |
_isContentOrgUnit(Object object) |
private boolean |
_isContentUser(Object object) |
void |
contextualize(Context context) |
boolean |
isSupported(Object object)
Returns true if this access controller supports the given object
|
void |
service(ServiceManager manager) |
_getPermission, _getPermissionByGroup, _getPermissionByUser, _getPermissionForAnonymous, _getPermissionForAnyConnectedUser, getPermissionByRight_convertContext, _hasRightResultInFirstCache, _hasRightResultInSecondCache, _putInFirstCache, _putInSecondCache, getPermission, getPermissionByGroup, getPermissionByUser, getPermissionForAnonymous, getPermissionForAnyConnectedUser, getReadAccessPermission, getReadAccessPermissionByGroup, getReadAccessPermissionByUser, getReadAccessPermissionForAnonymous, getReadAccessPermissionForAnyConnectedUser, hasAnonymousAnyPermissionOnWorkspace, hasAnonymousAnyReadAccessPermissionOnWorkspace, hasAnyConnectedUserAnyPermissionOnWorkspace, hasAnyConnectedUserAnyReadAccessPermissionOnWorkspace, hasUserAnyPermissionOnWorkspace, hasUserAnyReadAccessPermissionOnWorkspacegetLogger, setLoggerprotected AmetysObjectResolver _resolver
protected OrganisationChartPageHandler _organisationChartPageHandler
protected ContentTypesHelper _contentTypeHelper
protected UserDirectoryHelper _userDirectoryHelper
public UserDirectoryContentAccessController()
public void contextualize(Context context) throws ContextException
contextualize in interface ContextualizableContextExceptionpublic void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class AbstractProfileStorageBasedAccessControllerServiceExceptionpublic boolean isSupported(Object object)
AccessControllerisSupported in interface 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'private boolean _isContentUser(Object object)
private boolean _isContentOrgUnit(Object object)