Class UserDirectoryRightAssignmentContext
- 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.plugins.userdirectory.rights.UserDirectoryRightAssignmentContext
-
- All Implemented Interfaces:
RightAssignmentContext
,ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Contextualizable
,Serviceable
public class UserDirectoryRightAssignmentContext extends ContentRightAssignmentContext
RightAssignmentContext
for assign rights to a user directoryContent
-
-
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 protected ContentTypesHelper
_contentTypeHelper
The content type helperprotected OrganisationChartPageHandler
_organisationChartPageHandler
The organisation chart page handlerprotected UserDirectoryHelper
_userDirectoryHelper
The user directory helper-
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 UserDirectoryRightAssignmentContext()
-
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 Object
getRootContent()
Gets the root of contentsvoid
service(ServiceManager smanager)
-
Methods inherited from class org.ametys.cms.rights.ContentRightAssignmentContext
convertJSContext, getContextIdentifier, getRootContexts, 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
-
_userDirectoryHelper
protected UserDirectoryHelper _userDirectoryHelper
The user directory helper
-
_organisationChartPageHandler
protected OrganisationChartPageHandler _organisationChartPageHandler
The organisation chart page handler
-
_contentTypeHelper
protected ContentTypesHelper _contentTypeHelper
The content type helper
-
-
Constructor Detail
-
UserDirectoryRightAssignmentContext
public UserDirectoryRightAssignmentContext()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classContentRightAssignmentContext
- Throws:
ServiceException
-
getParentContexts
public Set<Object> getParentContexts(Object context)
Description copied from interface:RightAssignmentContext
Get the parent contexts of the object context- Specified by:
getParentContexts
in interfaceRightAssignmentContext
- Overrides:
getParentContexts
in classContentRightAssignmentContext
- Parameters:
context
- The object context- Returns:
- The parents if exist or
null
otherwise
-
getRootContent
protected Object getRootContent()
Description copied from class:ContentRightAssignmentContext
Gets the root of contents- Overrides:
getRootContent
in classContentRightAssignmentContext
- Returns:
- the root of contents
-
-