Package org.ametys.web.rights
Class WebWorkspaceAccessController
-
- All Implemented Interfaces:
AccessController
,LogEnabled
,Component
,Configurable
,Contextualizable
,Serviceable
public class WebWorkspaceAccessController extends StringHierarchicalAccessController implements Contextualizable
This impl ofWorkspaceAccessController
will add the current sitemap to the cms workspace
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ametys.plugins.core.impl.right.AbstractProfileStorageBasedAccessController
AbstractProfileStorageBasedAccessController.CacheKind
-
Nested classes/interfaces inherited from interface org.ametys.core.right.AccessController
AccessController.AccessResult
-
-
Field Summary
Fields Modifier and Type Field Description private Context
_context
-
Fields inherited from class org.ametys.plugins.core.impl.right.StringHierarchicalAccessController
_prefixes, _reverseWorkspaceMather, _workspaceMatcher, SEPARATOR
-
Fields inherited from class org.ametys.plugins.core.impl.right.AbstractProfileStorageBasedAccessController
__ANONYMOUS_USER_IDENTITY, __ANY_CONTECTED_USER_IDENTITY, _profileAssignmentStorageEP, _rightManager, _rightProfileDAO
-
-
Constructor Summary
Constructors Constructor Description WebWorkspaceAccessController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
_convertContext(Object initialContext)
For methods getXXXXPermissionYYY allow to have a modification of the context before transfering it to the profile assignment storage extension point The default implemenation keep the context as it isprivate String
_getSiteName()
void
contextualize(Context context)
protected Set<String>
getRootPrefixes()
Get the prefix of the path acceptedprotected Set<String>
getSupportedPrefixes()
Get the prefix of the path accepted-
Methods inherited from class org.ametys.plugins.core.impl.right.StringHierarchicalAccessController
_convertWorkspaceToRootRightContexts, _getParents, configure, isSupported
-
Methods inherited from class org.ametys.plugins.core.impl.right.AbstractHierarchicalAccessController
_getPermission, _getPermissionByGroup, _getPermissionByUser, _getPermissionForAnonymous, _getPermissionForAnyConnectedUser, getPermissionByRight, isInheritanceDisallowed
-
Methods inherited from class org.ametys.plugins.core.impl.right.AbstractProfileStorageBasedAccessController
_hasRightResultInFirstCache, _hasRightResultInSecondCache, _putInFirstCache, _putInSecondCache, getPermission, getPermissionByGroup, getPermissionByUser, getPermissionForAnonymous, getPermissionForAnyConnectedUser, getReadAccessPermission, getReadAccessPermissionByGroup, getReadAccessPermissionByUser, getReadAccessPermissionForAnonymous, getReadAccessPermissionForAnyConnectedUser, hasAnonymousAnyPermissionOnWorkspace, hasAnonymousAnyReadAccessPermissionOnWorkspace, hasAnyConnectedUserAnyPermissionOnWorkspace, hasAnyConnectedUserAnyReadAccessPermissionOnWorkspace, hasUserAnyPermissionOnWorkspace, hasUserAnyReadAccessPermissionOnWorkspace, service
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
WebWorkspaceAccessController
public WebWorkspaceAccessController()
-
-
Method Detail
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
getSupportedPrefixes
protected Set<String> getSupportedPrefixes()
Description copied from class:StringHierarchicalAccessController
Get the prefix of the path accepted- Overrides:
getSupportedPrefixes
in classStringHierarchicalAccessController
- Returns:
- The non-null and non-empty prefixes, starting by '/'
-
_convertContext
protected Object _convertContext(Object initialContext)
Description copied from class:AbstractProfileStorageBasedAccessController
For methods getXXXXPermissionYYY allow to have a modification of the context before transfering it to the profile assignment storage extension point The default implemenation keep the context as it is- Overrides:
_convertContext
in classAbstractProfileStorageBasedAccessController
- Parameters:
initialContext
- The right context that is supported- Returns:
- the context modified
-
getRootPrefixes
protected Set<String> getRootPrefixes()
Description copied from class:StringHierarchicalAccessController
Get the prefix of the path accepted- Overrides:
getRootPrefixes
in classStringHierarchicalAccessController
- Returns:
- The non-null and non-empty prefixes, starting by '/'
-
_getSiteName
private String _getSiteName()
-
-