Package org.ametys.odf.rights
Class ODFRightAssignmentContext
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.ui.StaticFileImportsClientSideElement
-
- org.ametys.core.ui.StaticClientSideElement
-
- org.ametys.core.right.AbstractStaticRightAssignmentContext
-
- org.ametys.cms.rights.ContentRightAssignmentContext
-
- org.ametys.odf.rights.ODFRightAssignmentContext
-
- All Implemented Interfaces:
RightAssignmentContext,ClientSideElement,LogEnabled,PluginAware,Configurable,Contextualizable,Serviceable
public class ODFRightAssignmentContext extends ContentRightAssignmentContext
RightAssignmentContextfor assign rights to aOrgUnit
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
-
Field Summary
Fields Modifier and Type Field Description private ODFHelper_odfHelperprivate RootOrgUnitProvider_orgUnitProvider-
Fields inherited from class org.ametys.cms.rights.ContentRightAssignmentContext
_resolver, _rootContentHelper, ID
-
Fields inherited from class org.ametys.core.right.AbstractStaticRightAssignmentContext
_context, _isPrivate, _reverseWorkspaceMather, _workspaceMatcher
-
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
-
Constructor Summary
Constructors Constructor Description ODFRightAssignmentContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Object>getParentContexts(Object context)Get the parent contexts of the object contextprotected ObjectgetRootContent()Gets the root of contentsList<Object>getRootContexts(Map<String,Object> contextParameters)Get the list of root contexts if the current workspace matches the allowed workspacevoidservice(ServiceManager smanager)-
Methods inherited from class org.ametys.cms.rights.ContentRightAssignmentContext
convertJSContext, getContextIdentifier, getScripts
-
Methods inherited from class org.ametys.core.right.AbstractStaticRightAssignmentContext
configure, contextualize, isPrivate, matchWorkspace
-
Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParameters
-
Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getRights, getScripts, hasRight, setPluginInfo, toString
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ametys.core.ui.ClientSideElement
getDependencies, getId, getPluginName, getRights, getScripts
-
-
-
-
Field Detail
-
_orgUnitProvider
private RootOrgUnitProvider _orgUnitProvider
-
_odfHelper
private ODFHelper _odfHelper
-
-
Constructor Detail
-
ODFRightAssignmentContext
public ODFRightAssignmentContext()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classContentRightAssignmentContext- Throws:
ServiceException
-
getParentContexts
public Set<Object> getParentContexts(Object context)
Description copied from interface:RightAssignmentContextGet the parent contexts of the object context- Specified by:
getParentContextsin interfaceRightAssignmentContext- Overrides:
getParentContextsin classContentRightAssignmentContext- Parameters:
context- The object context- Returns:
- The parents if exist or
nullotherwise
-
getRootContexts
public List<Object> getRootContexts(Map<String,Object> contextParameters)
Description copied from interface:RightAssignmentContextGet the list of root contexts if the current workspace matches the allowed workspace- Specified by:
getRootContextsin interfaceRightAssignmentContext- Overrides:
getRootContextsin classContentRightAssignmentContext- Parameters:
contextParameters- The contextual parameters- Returns:
- The root context object in a list
-
getRootContent
protected Object getRootContent()
Description copied from class:ContentRightAssignmentContextGets the root of contents- Overrides:
getRootContentin classContentRightAssignmentContext- Returns:
- the root of contents
-
-