public class ProjectAccessController extends AbstractProfileStorageBasedAccessController implements Contextualizable
AccessController
for a Project
AbstractProfileStorageBasedAccessController.CacheKind
AccessController.AccessResult
Modifier and Type | Field and Description |
---|---|
protected Context |
_context
The avalon context
|
protected ProjectManager |
_projectManager
The project manager
|
protected SiteManager |
_siteManager
The web site manager
|
__ANONYMOUS_USER_IDENTITY, __ANY_CONTECTED_USER_IDENTITY, _profileAssignmentStorageEP, _rightManager, _rightProfileDAO
Constructor and Description |
---|
ProjectAccessController() |
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
|
void |
contextualize(Context context) |
boolean |
isSupported(Object object)
Returns true if this access controller supports the given object
|
void |
service(ServiceManager manager) |
_convertContext, _getPermission, _getPermissionByGroup, _getPermissionByUser, _getPermissionForAnonymous, _getPermissionForAnyConnectedUser, _hasRightResultInFirstCache, _hasRightResultInSecondCache, _putInFirstCache, _putInSecondCache, getPermission, getPermissionByGroup, getPermissionByRight, getPermissionByUser, getPermissionForAnonymous, getPermissionForAnyConnectedUser, getReadAccessPermission, getReadAccessPermissionByGroup, getReadAccessPermissionByUser, getReadAccessPermissionForAnonymous, getReadAccessPermissionForAnyConnectedUser, hasAnonymousAnyPermissionOnWorkspace, hasAnonymousAnyReadAccessPermissionOnWorkspace, hasAnyConnectedUserAnyPermissionOnWorkspace, hasAnyConnectedUserAnyReadAccessPermissionOnWorkspace, hasUserAnyPermissionOnWorkspace, hasUserAnyReadAccessPermissionOnWorkspace
getLogger, setLogger
protected SiteManager _siteManager
protected ProjectManager _projectManager
public ProjectAccessController()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractProfileStorageBasedAccessController
ServiceException
public boolean isSupported(Object object)
AccessController
isSupported
in interface AccessController
object
- The object to testprotected Set<? extends Object> _convertWorkspaceToRootRightContexts(Set<Object> workspacesContexts)
AbstractProfileStorageBasedAccessController
_convertWorkspaceToRootRightContexts
in class AbstractProfileStorageBasedAccessController
workspacesContexts
- The workspace contexts. Such as '/${WorkspaceName}', '/admin'