public class SimpleContentAccessController extends AbstractHierarchicalAccessController<Object>
AbstractProfileStorageBasedAccessController.CacheKind
AccessController.AccessResult
Modifier and Type | Field and Description |
---|---|
protected ContentHelper |
_contentHelper
The helper for contents
|
static String |
CONTEXT
The context for simple contents
|
__ANONYMOUS_USER_IDENTITY, __ANY_CONTECTED_USER_IDENTITY, _profileAssignmentStorageEP, _rightManager, _rightProfileDAO
Constructor and Description |
---|
SimpleContentAccessController() |
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<Object> |
_getParents(Object object)
Gets the parents of the object.
|
boolean |
isSupported(Object object)
Returns true if this access controller supports the given object
|
void |
service(ServiceManager manager) |
getPermission, getPermissionByGroup, getPermissionByRight, getPermissionByUser, getPermissionForAnonymous, getPermissionForAnyConnectedUser, getReadAccessPermission, getReadAccessPermissionByGroup, getReadAccessPermissionByUser, getReadAccessPermissionForAnonymous, getReadAccessPermissionForAnyConnectedUser
_convertContext, _hasRightResultInFirstCache, _hasRightResultInSecondCache, _putInFirstCache, _putInSecondCache, hasAnonymousAnyPermissionOnWorkspace, hasAnonymousAnyReadAccessPermissionOnWorkspace, hasAnyConnectedUserAnyPermissionOnWorkspace, hasAnyConnectedUserAnyReadAccessPermissionOnWorkspace, hasUserAnyPermissionOnWorkspace, hasUserAnyReadAccessPermissionOnWorkspace
getLogger, setLogger
public static final String CONTEXT
protected ContentHelper _contentHelper
public SimpleContentAccessController()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractProfileStorageBasedAccessController
ServiceException
public boolean isSupported(Object object)
AccessController
object
- The object to testprotected Set<Object> _getParents(Object object)
AbstractHierarchicalAccessController
_getParents
in class AbstractHierarchicalAccessController<Object>
object
- The objectprotected Set<? extends Object> _convertWorkspaceToRootRightContexts(Set<Object> workspacesContexts)
AbstractProfileStorageBasedAccessController
_convertWorkspaceToRootRightContexts
in class AbstractProfileStorageBasedAccessController
workspacesContexts
- The workspace contexts. Such as '/${WorkspaceName}', '/admin'