Package org.ametys.cms.rights
Class ContentRightAssignmentContext
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
- All Implemented Interfaces:
- RightAssignmentContext,- ClientSideElement,- LogEnabled,- PluginAware,- Configurable,- Contextualizable,- Serviceable
- Direct Known Subclasses:
- ODFRightAssignmentContext,- UserDirectoryRightAssignmentContext
RightAssignmentContext for assign rights to a Content or a jcr node root holding the contents- 
Nested Class SummaryNested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElementClientSideElement.Script, ClientSideElement.ScriptFile
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected AmetysObjectResolverThe Ametys object resolverprotected RootContentHelperThe root content helperstatic final StringThe id if this right contextFields inherited from class org.ametys.core.right.AbstractStaticRightAssignmentContext_context, _isPrivate, _reverseWorkspaceMather, _workspaceMatcherFields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionconvertJSContext(Object context) From a JavaScript context object, converts it into a Java objectgetContextIdentifier(Object context) Gets the identifier of the object contextgetParentContexts(Object context) Get the parent contexts of the object contextprotected ObjectGets the root of contentsgetRootContexts(Map<String, Object> contextParameters) Get the list of root contexts if the current workspace matches the allowed workspacegetScripts(boolean ignoreRights, Map<String, Object> contextParameters) This method return the scripts that will be used on client side.voidservice(ServiceManager smanager) Methods inherited from class org.ametys.core.right.AbstractStaticRightAssignmentContextconfigure, contextualize, isPrivate, matchWorkspaceMethods inherited from class org.ametys.core.ui.StaticClientSideElement_configureClass, _configureParameters, _configureScript, configureInitialParametersMethods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getRights, getScripts, hasRight, setPluginInfo, toStringMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabledgetLogger, setLoggerMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ametys.core.ui.ClientSideElementgetDependencies, getId, getPluginName, getRights, getScripts
- 
Field Details- 
IDThe id if this right context- See Also:
 
- 
_resolverThe Ametys object resolver
- 
_rootContentHelperThe root content helper
 
- 
- 
Constructor Details- 
ContentRightAssignmentContextpublic ContentRightAssignmentContext()
 
- 
- 
Method Details- 
service- Specified by:
- servicein interface- Serviceable
- Overrides:
- servicein class- StaticFileImportsClientSideElement
- Throws:
- ServiceException
 
- 
convertJSContextDescription copied from interface:RightAssignmentContextFrom a JavaScript context object, converts it into a Java object- Parameters:
- context- the JS context object
- Returns:
- the Java object
 
- 
getContextIdentifierDescription copied from interface:RightAssignmentContextGets the identifier of the object context- Parameters:
- context- The object context
- Returns:
- the identifier of the object context
 
- 
getParentContextsDescription copied from interface:RightAssignmentContextGet the parent contexts of the object context- Parameters:
- context- The object context
- Returns:
- The parents if exist or nullotherwise
 
- 
getRootContextsDescription copied from interface:RightAssignmentContextGet the list of root contexts if the current workspace matches the allowed workspace- Parameters:
- contextParameters- The contextual parameters
- Returns:
- The root context object in a list
 
- 
getScriptspublic List<ClientSideElement.Script> getScripts(boolean ignoreRights, Map<String, Object> contextParameters) Description copied from interface:ClientSideElementThis method return the scripts that will be used on client side. This class will be parametrized by initial and current parameters.- Specified by:
- getScriptsin interface- ClientSideElement
- Overrides:
- getScriptsin class- AbstractStaticRightAssignmentContext
- Parameters:
- ignoreRights- True to ignore the rights verification.
- contextParameters- Contextuals parameters transmitted by the environment.
- Returns:
- The list of scripts or an empty list.
 
- 
getRootContentGets the root of contents- Returns:
- the root of contents
 
 
-