public class StringHierarchicalAccessController extends AbstractHierarchicalAccessController<String> implements Configurable
RightAssignmentContext
), this should be specified
with a configuration <workspace> that is a negativable regexp of a workspace context (such as '/cms' or '!/admin')AbstractProfileStorageBasedAccessController.CacheKind
AccessController.AccessResult
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
_prefixes
The prefixes
|
protected boolean |
_reverseWorkspaceMather
Consider _workspaceMatcher negatively
|
protected Pattern |
_workspaceMatcher
The regexp that should match current workspace
|
protected static char |
SEPARATOR
The separator character
|
__ANONYMOUS_USER_IDENTITY, __ANY_CONTECTED_USER_IDENTITY, _profileAssignmentStorageEP, _rightManager, _rightProfileDAO
Constructor and Description |
---|
StringHierarchicalAccessController() |
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<String> |
_getParents(String object)
Gets the parents of the object.
|
void |
configure(Configuration configuration) |
protected Set<String> |
getRootPrefixes()
Get the prefix of the path accepted
|
protected Set<String> |
getSupportedPrefixes()
Get the prefix of the path accepted
|
boolean |
isSupported(Object object)
Returns true if this access controller supports the given object
|
_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, hasUserAnyReadAccessPermissionOnWorkspace, service
getLogger, setLogger
protected static final char SEPARATOR
protected Pattern _workspaceMatcher
protected boolean _reverseWorkspaceMather
public StringHierarchicalAccessController()
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
protected Set<String> getSupportedPrefixes()
protected Set<String> getRootPrefixes()
protected Set<? extends Object> _convertWorkspaceToRootRightContexts(Set<Object> workspacesContexts)
AbstractProfileStorageBasedAccessController
_convertWorkspaceToRootRightContexts
in class AbstractProfileStorageBasedAccessController
workspacesContexts
- The workspace contexts. Such as '/${WorkspaceName}', '/admin'public boolean isSupported(Object object)
AccessController
isSupported
in interface AccessController
object
- The object to testprotected Set<String> _getParents(String object)
AbstractHierarchicalAccessController
_getParents
in class AbstractHierarchicalAccessController<String>
object
- The object