Package org.ametys.plugins.odfweb.rights
Class ODFRoleAccessControllerHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.odf.rights.ODFRoleAccessControllerHelper
org.ametys.plugins.odfweb.rights.ODFRoleAccessControllerHelper
- All Implemented Interfaces:
LogEnabled
,Initializable
,Component
,Contextualizable
,Serviceable
public class ODFRoleAccessControllerHelper
extends ODFRoleAccessControllerHelper
implements Contextualizable
Implementation of
ODFRoleAccessControllerHelper
that consider current site to get program items with user as role.-
Field Summary
Fields inherited from class org.ametys.odf.rights.ODFRoleAccessControllerHelper
_cacheManager, _odfRightHelper, _resolver, ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) boolean
hasODFRoleOnAnyProgramItem
(UserIdentity user, String attributePath) 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
-
Constructor Details
-
ODFRoleAccessControllerHelper
public ODFRoleAccessControllerHelper()
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classODFRoleAccessControllerHelper
- Throws:
ServiceException
-
initialize
- Specified by:
initialize
in interfaceInitializable
- Overrides:
initialize
in classODFRoleAccessControllerHelper
- Throws:
Exception
-
hasODFRoleOnAnyProgramItem
Description copied from class:ODFRoleAccessControllerHelper
Determines if user has a ODF role on any program item- Overrides:
hasODFRoleOnAnyProgramItem
in classODFRoleAccessControllerHelper
- Parameters:
user
- The userattributePath
- the attribute name for role- Returns:
- true if the user has a ODF role on at least a program item
-