Package org.ametys.web.rights
Class WebStringRightAssignmentContext
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.plugins.core.impl.right.StringRightAssignmentContext
org.ametys.web.rights.WebStringRightAssignmentContext
- All Implemented Interfaces:
RightAssignmentContext
,ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Contextualizable
,Serviceable
The same as its parent class but add the sitename in second position
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
Field Summary
Fields inherited from class org.ametys.core.right.AbstractStaticRightAssignmentContext
_context, _isPrivate, _label, _reverseWorkspaceMather, _workspaceMatcher
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertJSContext
(Object context) From a JavaScript context object, converts it into a Java objectgetRootContexts
(Map<String, Object> contextParameters) Get the list of root contexts if the current workspace matches the allowed workspaceMethods inherited from class org.ametys.plugins.core.impl.right.StringRightAssignmentContext
getContextIdentifier, getParentContexts
Methods inherited from class org.ametys.core.right.AbstractStaticRightAssignmentContext
configure, contextualize, getScripts, 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, service, 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
-
Constructor Details
-
WebStringRightAssignmentContext
public WebStringRightAssignmentContext()
-
-
Method Details
-
convertJSContext
Description copied from interface:RightAssignmentContext
From a JavaScript context object, converts it into a Java object- Specified by:
convertJSContext
in interfaceRightAssignmentContext
- Overrides:
convertJSContext
in classStringRightAssignmentContext
- Parameters:
context
- the JS context object- Returns:
- the Java object
-
getRootContexts
Description copied from interface:RightAssignmentContext
Get the list of root contexts if the current workspace matches the allowed workspace- Specified by:
getRootContexts
in interfaceRightAssignmentContext
- Overrides:
getRootContexts
in classStringRightAssignmentContext
- Parameters:
contextParameters
- The contextual parameters- Returns:
- The root context object in a list
-