Package org.ametys.odf.rights
Class ODFManagerForContextualizedContentAccessController
java.lang.Object
org.ametys.odf.rights.AbstractODFRoleForContextualizedContentAccessController
org.ametys.odf.rights.ODFManagerForContextualizedContentAccessController
- All Implemented Interfaces:
AccessController
,PluginAware
,Supporter<Object>
,Serviceable
public class ODFManagerForContextualizedContentAccessController
extends AbstractODFRoleForContextualizedContentAccessController
AccessController
for a ODF ODFRightHelper.ContextualizedContent
based on ODF managers role-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.right.AccessController
AccessController.AccessResult, AccessController.ExplanationObject, AccessController.Permission
-
Field Summary
Fields inherited from class org.ametys.odf.rights.AbstractODFRoleForContextualizedContentAccessController
_odfContentsTreeHelper, _odfRightHelper, _resolver, _rightProfileDAO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Set
<UserIdentity> getLocalAllowedUsers
(Content content) Get the local allowed users for this contentprotected String
Get the attribute path for roleprotected String
Get the id of target profileMethods inherited from class org.ametys.odf.rights.AbstractODFRoleForContextualizedContentAccessController
explainAllPermissions, explainAllPermissionsByGroup, explainAllPermissionsByUser, explainAllPermissionsForAnonymous, explainAllPermissionsForAnyConnected, explainPermission, getAllowedUsers, getId, getObjectCategory, getObjectLabel, getParents, getPermission, getPermissionByGroup, getPermissionByRight, getPermissionByUser, getPermissionContext, getPermissionForAnonymous, getPermissionForAnyConnectedUser, getReadAccessPermission, getReadAccessPermissionByGroup, getReadAccessPermissionByUser, getReadAccessPermissionForAnonymous, getReadAccessPermissionForAnyConnectedUser, getRightsInTargetProfile, hasAnonymousAnyPermissionOnWorkspace, hasAnonymousAnyReadAccessPermissionOnWorkspace, hasAnyConnectedUserAnyPermissionOnWorkspace, hasAnyConnectedUserAnyReadAccessPermissionOnWorkspace, hasUserAnyPermissionOnWorkspace, hasUserAnyReadAccessPermissionOnWorkspace, service, setPluginInfo, supports
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.core.right.AccessController
explainPermissionForAnonymous, explainPermissionForAnyConnectedUser, explainReadAccessPermission, explainReadAccessPermissionForAnonymous, explainReadAccessPermissionForAnyConnectedUser, getExplanationObject, getObjectPriority
-
Constructor Details
-
ODFManagerForContextualizedContentAccessController
-
-
Method Details
-
getTargetProfileId
Description copied from class:AbstractODFRoleForContextualizedContentAccessController
Get the id of target profile- Specified by:
getTargetProfileId
in classAbstractODFRoleForContextualizedContentAccessController
- Returns:
- the id of target profile
-
getLocalAllowedUsers
Description copied from class:AbstractODFRoleForContextualizedContentAccessController
Get the local allowed users for this content- Specified by:
getLocalAllowedUsers
in classAbstractODFRoleForContextualizedContentAccessController
- Parameters:
content
- the ODF content (program item or orgunit)- Returns:
- the allowed users. Empty if no user is allowed on this content
-
getRoleAttributePath
Description copied from class:AbstractODFRoleForContextualizedContentAccessController
Get the attribute path for role- Specified by:
getRoleAttributePath
in classAbstractODFRoleForContextualizedContentAccessController
- Returns:
- the attribute path for role
-