Package org.ametys.core.ui
Class AddTaskClientSideElement
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.ui.StaticFileImportsClientSideElement
-
- org.ametys.core.ui.StaticClientSideElement
-
- org.ametys.core.ui.AddTaskClientSideElement
-
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Contextualizable
,Serviceable
- Direct Known Subclasses:
AddReportTaskClientSideElement
,ApogeeGlobalSynchronizationClientSideElement
,CollectionSelectionAwareAddTaskClientSideElement
,ExportClientSiteElement
,GlobalSynchronizationClientSideElement
,SiteSelectionAwareAddTaskClientSideElement
public class AddTaskClientSideElement extends StaticClientSideElement implements Contextualizable
This implementation creates an element for adding a new task
-
-
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 Context
_context
The Avalon context-
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
-
Constructor Summary
Constructors Constructor Description AddTaskClientSideElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
_configureClass(Configuration configuration)
Configure the js class nameprotected Map<String,List<String>>
_configureDependencies(Configuration configuration)
Configure the dependencies following the configurationprotected ClientSideElement.Script
_configureScript(Configuration configuration)
Configure the scriptprotected Map<String,Object>
configureInitialParameters(Configuration configuration)
Configure the initial parametersvoid
contextualize(Context context)
Map<String,List<String>>
getDependencies()
This method returns the list of dependencies, sorted by extension point.-
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
-
AddTaskClientSideElement
public AddTaskClientSideElement()
-
-
Method Detail
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
_configureClass
protected String _configureClass(Configuration configuration) throws ConfigurationException
Description copied from class:StaticClientSideElement
Configure the js class name- Overrides:
_configureClass
in classStaticClientSideElement
- 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 classStaticClientSideElement
- 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 classStaticClientSideElement
- Parameters:
configuration
- the global configuration- Returns:
- The script created
- Throws:
ConfigurationException
- The configuration is incorrect
-
_configureDependencies
protected Map<String,List<String>> _configureDependencies(Configuration configuration) throws ConfigurationException
Description copied from class:StaticFileImportsClientSideElement
Configure the dependencies following the configuration- Overrides:
_configureDependencies
in classStaticFileImportsClientSideElement
- Parameters:
configuration
- The root configuration- Returns:
- The list of dependencies, by extension point.
- Throws:
ConfigurationException
- if a dependency element is present but empty
-
getDependencies
public Map<String,List<String>> getDependencies()
Description copied from interface:ClientSideElement
This method returns the list of dependencies, sorted by extension point.- Specified by:
getDependencies
in interfaceClientSideElement
- Overrides:
getDependencies
in classStaticFileImportsClientSideElement
- Returns:
- a map of dependencies ids by extension point.
-
-