Package org.ametys.plugins.forms.rights
Class FormsDirectoryRightAssignmentContext
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.forms.rights.FormsDirectoryRightAssignmentContext
- All Implemented Interfaces:
RightAssignmentContext
,ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Contextualizable
,Serviceable
RightAssignmentContext
for assigning rights to a Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
Field Summary
Modifier and TypeFieldDescriptionprotected FormDirectoryDAO
The form directory DAOprotected AmetysObjectResolver
The Ametys object resolverstatic final String
The id if this right contextFields 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
-
Method Summary
Modifier and TypeMethodDescriptionconvertJSContext
(Object jsContext) 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 contextgetRootContexts
(Map<String, Object> contextParameters) Get the list of root contexts if the current workspace matches the allowed workspacevoid
service
(ServiceManager smanager) 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, 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 Details
-
ID
The id if this right context- See Also:
-
_resolver
The Ametys object resolver -
_formDirectoryDAO
The form directory DAO
-
-
Constructor Details
-
FormsDirectoryRightAssignmentContext
public FormsDirectoryRightAssignmentContext()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classStaticFileImportsClientSideElement
- Throws:
ServiceException
-
convertJSContext
Description copied from interface:RightAssignmentContext
From a JavaScript context object, converts it into a Java object- Parameters:
jsContext
- the JS context object- Returns:
- the Java object
-
getContextIdentifier
Description copied from interface:RightAssignmentContext
Gets the identifier of the object context- Parameters:
context
- The object context- Returns:
- the identifier of the object context
-
getParentContexts
Description copied from interface:RightAssignmentContext
Get the parent contexts of the object context- Parameters:
context
- The object context- Returns:
- The parents if exist or
null
otherwise
-
getRootContexts
Description copied from interface:RightAssignmentContext
Get 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
-