Package org.ametys.odf.rights
Class ODFManagerAccessController
java.lang.Object
org.ametys.odf.rights.AbstractODFRoleAccessController
org.ametys.odf.rights.ODFManagerAccessController
- All Implemented Interfaces:
AccessController
,PluginAware
,Serviceable
Access controller based on managers attribute
-
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.AbstractODFRoleAccessController
_odfContentsTreeHelper, _odfRightHelper, _resolver, _rightProfileDAO, _roleAccessControllerHelper
-
Constructor Summary
-
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 I18nizableText
Get the label to insert in the explanation to describe the role.protected String
Get the id of target profileMethods inherited from class org.ametys.odf.rights.AbstractODFRoleAccessController
_getAllowedUsers, _getParents, _getPermissionContext, _getRightsInTargetProfile, explainAllPermissions, explainPermission, getId, getObjectCategory, getObjectLabel, getPermission, getPermissionByGroup, getPermissionByRight, getPermissionByUser, getPermissionForAnonymous, getPermissionForAnyConnectedUser, getReadAccessPermission, getReadAccessPermissionByGroup, getReadAccessPermissionByUser, getReadAccessPermissionForAnonymous, getReadAccessPermissionForAnyConnectedUser, hasAnonymousAnyPermissionOnWorkspace, hasAnonymousAnyReadAccessPermissionOnWorkspace, hasAnyConnectedUserAnyPermissionOnWorkspace, hasAnyConnectedUserAnyReadAccessPermissionOnWorkspace, hasUserAnyPermissionOnWorkspace, hasUserAnyReadAccessPermissionOnWorkspace, isSupported, service, setPluginInfo
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, getStandardAccessExplanation
-
Constructor Details
-
ODFManagerAccessController
public ODFManagerAccessController()
-
-
Method Details
-
_getTargetProfileId
Description copied from class:AbstractODFRoleAccessController
Get the id of target profile- Specified by:
_getTargetProfileId
in classAbstractODFRoleAccessController
- Returns:
- the id of target profile
-
_getLocalAllowedUsers
Description copied from class:AbstractODFRoleAccessController
Get the local allowed users for this content- Specified by:
_getLocalAllowedUsers
in classAbstractODFRoleAccessController
- 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:AbstractODFRoleAccessController
Get the attribute path for role- Specified by:
_getRoleAttributePath
in classAbstractODFRoleAccessController
- Returns:
- the attribute path for role
-
_getRoleLabel
Description copied from class:AbstractODFRoleAccessController
Get the label to insert in the explanation to describe the role. The label should start with a lower case.- Specified by:
_getRoleLabel
in classAbstractODFRoleAccessController
- Returns:
- the label
-