public class ODFOrphanContentAccessController extends AbstractLogEnabled implements AccessController, Component, Serviceable
AccessController.AccessResult| Modifier and Type | Field and Description | 
|---|---|
private ODFHelper | 
_odfHelper  | 
| Constructor and Description | 
|---|
ODFOrphanContentAccessController()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected Map<UserIdentity,AccessController.AccessResult> | 
_getPermissionByUser(Object object)
Get the permission by users 
 | 
protected AccessController.AccessResult | 
_getUserPermission(UserIdentity user,
                  Object object)
Get the user permission on object 
 | 
protected boolean | 
_hasOrgUnit(Object object)
Determines if the object has a orgunit 
 | 
protected boolean | 
_isOrphan(Object object)
Determines if the object is a orphan program item (without parent) 
 | 
AccessController.AccessResult | 
getPermission(UserIdentity user,
             Set<GroupIdentity> userGroups,
             String rightId,
             Object object)
Gets the kind of access a user has on an object for a given right 
 | 
Map<GroupIdentity,AccessController.AccessResult> | 
getPermissionByGroup(String rightId,
                    Object object)
Gets the permission by group only on an object for the given right. 
 | 
Map<String,AccessController.AccessResult> | 
getPermissionByRight(UserIdentity user,
                    Set<GroupIdentity> userGroups,
                    Object object)
Gets the kind of access a user has on an object for all rights 
 | 
Map<UserIdentity,AccessController.AccessResult> | 
getPermissionByUser(String rightId,
                   Object object)
Gets the permission by user only on an object for the given right. 
 | 
AccessController.AccessResult | 
getPermissionForAnonymous(String rightId,
                         Object object)
Gets the permission for Anonymous only on an object for a given right 
 | 
AccessController.AccessResult | 
getPermissionForAnyConnectedUser(String rightId,
                                Object object)
Gets the permission for any connected user only on an object for a given right 
 | 
AccessController.AccessResult | 
getReadAccessPermission(UserIdentity user,
                       Set<GroupIdentity> userGroups,
                       Object object)
Gets the kind of access a user has on an object for thye read access 
 | 
Map<GroupIdentity,AccessController.AccessResult> | 
getReadAccessPermissionByGroup(Object object)
Gets the read access permission by group only on an object. 
 | 
Map<UserIdentity,AccessController.AccessResult> | 
getReadAccessPermissionByUser(Object object)
Gets the read access permission by user only on an object. 
 | 
AccessController.AccessResult | 
getReadAccessPermissionForAnonymous(Object object)
Gets the read access permission for Anonymous only on an object 
 | 
AccessController.AccessResult | 
getReadAccessPermissionForAnyConnectedUser(Object object)
Gets the read access permission for any connected user only on an object 
 | 
boolean | 
hasAnonymousAnyPermissionOnWorkspace(Set<Object> workspacesContexts,
                                    String rightId)
Returns true if anonymous has a permission on at least one object, directly or though groups, for a given rights and if the object is attached to the given context that is /${WorkspaceName} and its conversions. 
 | 
boolean | 
hasAnonymousAnyReadAccessPermissionOnWorkspace(Set<Object> workspacesContexts)
Returns true if anonymous has a read access permission on at least one object, directly or though groups, for a given rights and if the object is attached to the given context that is /${WorkspaceName} and its conversions. 
 | 
boolean | 
hasAnyConnectedUserAnyPermissionOnWorkspace(Set<Object> workspacesContexts,
                                           String rightId)
Returns true if any connected user has a permission on at least one object, directly or though groups, for a given rights and if the object is attached to the given context that is /${WorkspaceName} and its conversions. 
 | 
boolean | 
hasAnyConnectedUserAnyReadAccessPermissionOnWorkspace(Set<Object> workspacesContexts)
Returns true if any connected user has a read access permission on at least one object, directly or though groups, for a given rights and if the object is attached to the given context that is /${WorkspaceName} and its conversions. 
 | 
boolean | 
hasUserAnyPermissionOnWorkspace(Set<Object> workspacesContexts,
                               UserIdentity user,
                               Set<GroupIdentity> userGroups,
                               String rightId)
Returns true if the user has a permission on at least one object, directly or though groups, for a given rights and if the object is attached to the given context that is /${WorkspaceName} and its conversions. 
 | 
boolean | 
hasUserAnyReadAccessPermissionOnWorkspace(Set<Object> workspacesContexts,
                                         UserIdentity user,
                                         Set<GroupIdentity> userGroups)
Returns true if the user has a read access permission on at least one object, directly or though groups, for a given rights and if the object is attached to the given context that is /${WorkspaceName} and its conversions. 
 | 
boolean | 
isSupported(Object object)
Returns true if this access controller supports the given object 
 | 
void | 
service(ServiceManager manager)  | 
getLogger, setLoggerprivate ODFHelper _odfHelper
public ODFOrphanContentAccessController()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic boolean isSupported(Object object)
AccessControllerisSupported in interface AccessControllerobject - The object to testprotected boolean _isOrphan(Object object)
object - the objectprotected AccessController.AccessResult _getUserPermission(UserIdentity user, Object object)
user - the userobject - the objectprotected boolean _hasOrgUnit(Object object)
object - the objectprotected Map<UserIdentity,AccessController.AccessResult> _getPermissionByUser(Object object)
object - the objectpublic AccessController.AccessResult getPermission(UserIdentity user, Set<GroupIdentity> userGroups, String rightId, Object object)
AccessControllergetPermission in interface AccessControlleruser - The user. Cannot be null.userGroups - The groups the user belongs torightId - The id of the right of the userobject - The context object to check the accesspublic AccessController.AccessResult getReadAccessPermission(UserIdentity user, Set<GroupIdentity> userGroups, Object object)
AccessControllergetReadAccessPermission in interface AccessControlleruser - The user. Cannot be null.userGroups - The groups the user belongs toobject - The context object to check the accesspublic Map<String,AccessController.AccessResult> getPermissionByRight(UserIdentity user, Set<GroupIdentity> userGroups, Object object)
AccessControllergetPermissionByRight in interface AccessControlleruser - The user. Cannot be null.userGroups - The groups the user belongs toobject - The context object to check the accesspublic AccessController.AccessResult getPermissionForAnonymous(String rightId, Object object)
AccessControllergetPermissionForAnonymous in interface AccessControllerrightId - The id of the right to checkobject - The objectpublic AccessController.AccessResult getReadAccessPermissionForAnonymous(Object object)
AccessControllergetReadAccessPermissionForAnonymous in interface AccessControllerobject - The objectpublic AccessController.AccessResult getPermissionForAnyConnectedUser(String rightId, Object object)
AccessControllergetPermissionForAnyConnectedUser in interface AccessControllerrightId - The id of the right to checkobject - The objectpublic AccessController.AccessResult getReadAccessPermissionForAnyConnectedUser(Object object)
AccessControllergetReadAccessPermissionForAnyConnectedUser in interface AccessControllerobject - The objectpublic Map<UserIdentity,AccessController.AccessResult> getPermissionByUser(String rightId, Object object)
AccessControllergetPermissionByUser in interface AccessControllerrightId - The id of the right to checkobject - The objectpublic Map<UserIdentity,AccessController.AccessResult> getReadAccessPermissionByUser(Object object)
AccessControllergetReadAccessPermissionByUser in interface AccessControllerobject - The objectpublic Map<GroupIdentity,AccessController.AccessResult> getPermissionByGroup(String rightId, Object object)
AccessControllergetPermissionByGroup in interface AccessControllerrightId - The id of the right to checkobject - The objectpublic Map<GroupIdentity,AccessController.AccessResult> getReadAccessPermissionByGroup(Object object)
AccessControllergetReadAccessPermissionByGroup in interface AccessControllerobject - The objectpublic boolean hasUserAnyPermissionOnWorkspace(Set<Object> workspacesContexts, UserIdentity user, Set<GroupIdentity> userGroups, String rightId)
AccessControllerhasUserAnyPermissionOnWorkspace in interface AccessControllerworkspacesContexts - The contexts to tests such as {"/${WorkspaceName}", "/repository", "/admin"}user - The useruserGroups - The groupsrightId - The id of the right to checkpublic boolean hasUserAnyReadAccessPermissionOnWorkspace(Set<Object> workspacesContexts, UserIdentity user, Set<GroupIdentity> userGroups)
AccessControllerhasUserAnyReadAccessPermissionOnWorkspace in interface AccessControllerworkspacesContexts - The contexts to tests such as {"/${WorkspaceName}", "/repository", "/admin"}user - The useruserGroups - The groupspublic boolean hasAnonymousAnyPermissionOnWorkspace(Set<Object> workspacesContexts, String rightId)
AccessControllerhasAnonymousAnyPermissionOnWorkspace in interface AccessControllerworkspacesContexts - The contexts to tests such as {"/${WorkspaceName}", "/repository", "/admin"}rightId - The id of the right to checkpublic boolean hasAnonymousAnyReadAccessPermissionOnWorkspace(Set<Object> workspacesContexts)
AccessControllerhasAnonymousAnyReadAccessPermissionOnWorkspace in interface AccessControllerworkspacesContexts - The contexts to tests such as {"/${WorkspaceName}", "/repository", "/admin"}public boolean hasAnyConnectedUserAnyPermissionOnWorkspace(Set<Object> workspacesContexts, String rightId)
AccessControllerhasAnyConnectedUserAnyPermissionOnWorkspace in interface AccessControllerworkspacesContexts - The contexts to tests such as {"/${WorkspaceName}", "/repository", "/admin"}rightId - The id of the right to checkpublic boolean hasAnyConnectedUserAnyReadAccessPermissionOnWorkspace(Set<Object> workspacesContexts)
AccessControllerhasAnyConnectedUserAnyReadAccessPermissionOnWorkspace in interface AccessControllerworkspacesContexts - The contexts to tests such as {"/${WorkspaceName}", "/repository", "/admin"}