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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Set<UserIdentity>_getLocalAllowedUsers(Content content) Get the local allowed users for this contentprotected StringGet the attribute path for roleprotected I18nizableTextGet the label to insert in the explanation to describe the role.protected StringGet 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, setPluginInfoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:AbstractODFRoleAccessControllerGet the id of target profile- Specified by:
_getTargetProfileIdin classAbstractODFRoleAccessController- Returns:
- the id of target profile
-
_getLocalAllowedUsers
Description copied from class:AbstractODFRoleAccessControllerGet the local allowed users for this content- Specified by:
_getLocalAllowedUsersin 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:AbstractODFRoleAccessControllerGet the attribute path for role- Specified by:
_getRoleAttributePathin classAbstractODFRoleAccessController- Returns:
- the attribute path for role
-
_getRoleLabel
Description copied from class:AbstractODFRoleAccessControllerGet the label to insert in the explanation to describe the role. The label should start with a lower case.- Specified by:
_getRoleLabelin classAbstractODFRoleAccessController- Returns:
- the label
-