Package org.ametys.web.rights
Class WorkspaceAccessController
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.plugins.core.impl.right.AbstractProfileStorageBasedAccessController
-
- org.ametys.plugins.core.impl.right.AbstractHierarchicalAccessController<String>
-
- org.ametys.plugins.core.impl.right.StringHierarchicalAccessController
-
- org.ametys.plugins.core.impl.right.WorkspaceAccessController
-
- org.ametys.web.rights.WorkspaceAccessController
-
- All Implemented Interfaces:
AccessController
,LogEnabled
,Initializable
,Component
,Configurable
,Contextualizable
,Serviceable
public class WorkspaceAccessController extends WorkspaceAccessController
Replace the default WorkspaceAccessController to ignore /cms and /web that are handle by the WebWorkspaceAccessController
-
-
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 inherited from class org.ametys.plugins.core.impl.right.WorkspaceAccessController
_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, _cacheManager, _profileAssignmentStorageEP, _rightProfileDAO
-
-
Constructor Summary
Constructors Constructor Description WorkspaceAccessController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<String>
getRootPrefixes()
Get the prefix of the path accepted-
Methods inherited from class org.ametys.plugins.core.impl.right.WorkspaceAccessController
_convertWorkspaceToRootRightContexts, configure, contextualize, getSupportedPrefixes
-
Methods inherited from class org.ametys.plugins.core.impl.right.StringHierarchicalAccessController
_getParents, 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
_convertContext, _hasRightResultInFirstCache, _hasRightResultInSecondCache, _putInFirstCache, _putInSecondCache, getPermission, getPermissionByGroup, getPermissionByUser, getPermissionForAnonymous, getPermissionForAnyConnectedUser, getReadAccessPermission, getReadAccessPermissionByGroup, getReadAccessPermissionByUser, getReadAccessPermissionForAnonymous, getReadAccessPermissionForAnyConnectedUser, hasAnonymousAnyPermissionOnWorkspace, hasAnonymousAnyReadAccessPermissionOnWorkspace, hasAnyConnectedUserAnyPermissionOnWorkspace, hasAnyConnectedUserAnyReadAccessPermissionOnWorkspace, hasUserAnyPermissionOnWorkspace, hasUserAnyReadAccessPermissionOnWorkspace, initialize, service
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
WorkspaceAccessController
public WorkspaceAccessController()
-
-
Method Detail
-
getRootPrefixes
protected Set<String> getRootPrefixes()
Description copied from class:StringHierarchicalAccessController
Get the prefix of the path accepted- Overrides:
getRootPrefixes
in classWorkspaceAccessController
- Returns:
- The non-null and non-empty prefixes, starting by '/'
-
-