Package org.ametys.core.ui
Class SelectionAwareAddTaskClientSideElement
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.ui.StaticFileImportsClientSideElement
-
- org.ametys.core.ui.StaticClientSideElement
-
- org.ametys.core.ui.AddTaskClientSideElement
-
- org.ametys.core.ui.SelectionAwareAddTaskClientSideElement
-
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Contextualizable
,Serviceable
- Direct Known Subclasses:
ODFSelectionAwareAddReportTaskClientSideElement
,SiteSelectionAwareAddTaskClientSideElement
public class SelectionAwareAddTaskClientSideElement extends AddTaskClientSideElement
This implementation creates an element for adding a new task with a schedulable parameter filled by the selected target. Use schedulable-param-name to define the parameter to update. By default, the sent value is the target id.
-
-
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.ui.AddTaskClientSideElement
_context
-
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
-
Constructor Summary
Constructors Constructor Description SelectionAwareAddTaskClientSideElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
_configureClass(Configuration configuration)
Configure the js class nameprotected ClientSideElement.Script
_configureScript(Configuration configuration)
Configure the scriptprotected Map<String,Object>
configureInitialParameters(Configuration configuration)
Configure the initial parameters-
Methods inherited from class org.ametys.core.ui.AddTaskClientSideElement
_configureDependencies, contextualize, getDependencies
-
Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureParameters
-
Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureImports, _configureRights, _configureRightsMode, configure, getId, getPluginName, getRights, getScripts, getScripts, hasRight, service, setPluginInfo, toString
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
SelectionAwareAddTaskClientSideElement
public SelectionAwareAddTaskClientSideElement()
-
-
Method Detail
-
_configureClass
protected String _configureClass(Configuration configuration) throws ConfigurationException
Description copied from class:StaticClientSideElement
Configure the js class name- Overrides:
_configureClass
in classAddTaskClientSideElement
- Parameters:
configuration
- The configuration on action tag- Returns:
- The js class name
- Throws:
ConfigurationException
- If an error occurs
-
configureInitialParameters
protected Map<String,Object> configureInitialParameters(Configuration configuration) throws ConfigurationException
Description copied from class:StaticClientSideElement
Configure the initial parameters- Overrides:
configureInitialParameters
in classAddTaskClientSideElement
- Parameters:
configuration
- the global configuration- Returns:
- The initial parameters read
- Throws:
ConfigurationException
- The configuration is incorrect
-
_configureScript
protected ClientSideElement.Script _configureScript(Configuration configuration) throws ConfigurationException
Description copied from class:StaticFileImportsClientSideElement
Configure the script- Overrides:
_configureScript
in classAddTaskClientSideElement
- Parameters:
configuration
- the global configuration- Returns:
- The script created
- Throws:
ConfigurationException
- The configuration is incorrect
-
-