Package org.ametys.odf.rights
Class ODFRoleAccessControllerHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.odf.rights.ODFRoleAccessControllerHelper
- All Implemented Interfaces:
LogEnabled
,Initializable
,Component
,Serviceable
- Direct Known Subclasses:
ODFRoleAccessControllerHelper
public class ODFRoleAccessControllerHelper
extends AbstractLogEnabled
implements Component, Serviceable, Initializable
Helper for access controler on role attributes
-
Field Summary
Modifier and TypeFieldDescriptionprotected AbstractCacheManager
The cache managerprotected ODFRightHelper
The ODF right heperprotected AmetysObjectResolver
The Ametys object resolverstatic final String
The avalon role -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasODFRoleOnAnyProgramItem
(UserIdentity user, String roleAttributeName) Determines if user has a ODF role on any program itemvoid
void
service
(ServiceManager smanager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
The avalon role -
_resolver
The Ametys object resolver -
_cacheManager
The cache manager -
_odfRightHelper
The ODF right heper
-
-
Constructor Details
-
ODFRoleAccessControllerHelper
public ODFRoleAccessControllerHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
initialize
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
hasODFRoleOnAnyProgramItem
Determines if user has a ODF role on any program item- Parameters:
user
- The userroleAttributeName
- the attribute name for role- Returns:
- true if the user has a ODF role on at least a program item
-