Package org.ametys.web.rights
Class WebWorkspaceAccessController
- All Implemented Interfaces:
AccessController,LogEnabled,Initializable,Component,Configurable,Contextualizable,Serviceable
public class WebWorkspaceAccessController
extends StringHierarchicalAccessController
implements Contextualizable
This impl of
WorkspaceAccessController 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.CacheKindNested classes/interfaces inherited from interface org.ametys.core.right.AccessController
AccessController.AccessResult -
Field Summary
Fields inherited from class org.ametys.plugins.core.impl.right.StringHierarchicalAccessController
_prefixes, _reverseWorkspaceMather, _workspaceMatcher, SEPARATORFields inherited from class org.ametys.plugins.core.impl.right.AbstractProfileStorageBasedAccessController
__ANONYMOUS_USER_IDENTITY, __ANY_CONTECTED_USER_IDENTITY, _cacheManager, _profileAssignmentStorageEP, _rightProfileDAO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 isvoidcontextualize(Context context) Get the prefix of the path acceptedGet the prefix of the path acceptedMethods inherited from class org.ametys.plugins.core.impl.right.StringHierarchicalAccessController
_convertWorkspaceToRootRightContexts, _getParents, configure, isSupportedMethods inherited from class org.ametys.plugins.core.impl.right.AbstractHierarchicalAccessController
_getPermission, _getPermissionByGroup, _getPermissionByUser, _getPermissionForAnonymous, _getPermissionForAnyConnectedUser, getPermissionByRight, isInheritanceDisallowedMethods 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, initialize, serviceMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
WebWorkspaceAccessController
public WebWorkspaceAccessController()
-
-
Method Details
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
getSupportedPrefixes
Description copied from class:StringHierarchicalAccessControllerGet the prefix of the path accepted- Overrides:
getSupportedPrefixesin classStringHierarchicalAccessController- Returns:
- The non-null and non-empty prefixes, starting by '/'
-
_convertContext
Description copied from class:AbstractProfileStorageBasedAccessControllerFor 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:
_convertContextin classAbstractProfileStorageBasedAccessController- Parameters:
initialContext- The right context that is supported- Returns:
- the context modified
-
getRootPrefixes
Description copied from class:StringHierarchicalAccessControllerGet the prefix of the path accepted- Overrides:
getRootPrefixesin classStringHierarchicalAccessController- Returns:
- The non-null and non-empty prefixes, starting by '/'
-