public class WebContentTypeAccessController extends ContentTypeAccessController implements Contextualizable
AccessController
for a context objects (strings starting with "/content-types") but limited to the current website.
If no website can be defined, keep the initial contextAbstractProfileStorageBasedAccessController.CacheKind
AccessController.AccessResult
Modifier and Type | Field and Description |
---|---|
private Context |
_context |
_contentTypeExtensionPoint
__ANONYMOUS_USER_IDENTITY, __ANY_CONTECTED_USER_IDENTITY, _profileAssignmentStorageEP, _rightManager, _rightProfileDAO
Constructor and Description |
---|
WebContentTypeAccessController() |
Modifier and Type | Method and 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 is
|
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
|
private String |
_getSiteName() |
void |
contextualize(Context context) |
_getParents, isSupported, service
_getPermission, _getPermissionByGroup, _getPermissionByUser, _getPermissionForAnonymous, _getPermissionForAnyConnectedUser, getPermissionByRight
_hasRightResultInFirstCache, _hasRightResultInSecondCache, _putInFirstCache, _putInSecondCache, getPermission, getPermissionByGroup, getPermissionByUser, getPermissionForAnonymous, getPermissionForAnyConnectedUser, getReadAccessPermission, getReadAccessPermissionByGroup, getReadAccessPermissionByUser, getReadAccessPermissionForAnonymous, getReadAccessPermissionForAnyConnectedUser, hasAnonymousAnyPermissionOnWorkspace, hasAnonymousAnyReadAccessPermissionOnWorkspace, hasAnyConnectedUserAnyPermissionOnWorkspace, hasAnyConnectedUserAnyReadAccessPermissionOnWorkspace, hasUserAnyPermissionOnWorkspace, hasUserAnyReadAccessPermissionOnWorkspace
getLogger, setLogger
public WebContentTypeAccessController()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
protected Object _convertContext(Object initialContext)
AbstractProfileStorageBasedAccessController
_convertContext
in class AbstractProfileStorageBasedAccessController
initialContext
- The right context that is supportedprotected Set<? extends Object> _convertWorkspaceToRootRightContexts(Set<Object> workspacesContexts)
AbstractProfileStorageBasedAccessController
_convertWorkspaceToRootRightContexts
in class ContentTypeAccessController
workspacesContexts
- The workspace contexts. Such as '/${WorkspaceName}', '/admin'private String _getSiteName()