Class FormEntriesWorkflowStepsClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.cms.clientsideelement.WorkflowStepsClientSideElement
org.ametys.plugins.forms.workflow.AbstractFormEntriesWorkflowStepsClientSideElement
org.ametys.plugins.forms.workflow.FormEntriesWorkflowStepsClientSideElement
- All Implemented Interfaces:
ClientSideElement
,MenuClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
public class FormEntriesWorkflowStepsClientSideElement
extends AbstractFormEntriesWorkflowStepsClientSideElement
This class creates multiple toggle buttons each representing a workflow step on form entries
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
Field Summary
Modifier and TypeFieldDescriptionprotected FormPropertiesManager
The manager for the forms JCR representationprotected FormTableManager
The manager for the forms SQL tablesFields inherited from class org.ametys.cms.clientsideelement.WorkflowStepsClientSideElement
_contentHelper, _menuItemManager, _menuItems, _referencedClientSideElement, _resolver, _scripts, _smanager, _unresolvedMenuItems, _userManager, _workflowHelper, _workflowProvider
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected List<ClientSideElement.ScriptFile>
Get the additional script files to importprotected String
Get the default class name for workflow actionprotected String
Get the default class name for workflow menuprotected String
Get the selection target id (can be a Regexp)getWorkflowState
(List<Object> entryIds, String formId, String scriptId) Get the workflow state of contentsvoid
service
(ServiceManager serviceManager) Methods inherited from class org.ametys.plugins.forms.workflow.AbstractFormEntriesWorkflowStepsClientSideElement
_additionalMenuItemConfiguration, _configureDefaultDescriptions, _configureScript, _configureWorkflowStep, _getDefaultPluginName
Methods inherited from class org.ametys.cms.clientsideelement.WorkflowStepsClientSideElement
_configureMenuItems, _configureParameters, _configureScripts, _configureWorkflow, _configureWorkflowStepActions, _getAllowedActions, _getAllowedSteps, configure, getReferencedClientSideElements, getScripts, getWorkflowState
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
-
Field Details
-
_formPropertiesManager
The manager for the forms JCR representation -
_formTableManager
The manager for the forms SQL tables
-
-
Constructor Details
-
FormEntriesWorkflowStepsClientSideElement
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classWorkflowStepsClientSideElement
- Throws:
ServiceException
-
_getDefaultMenuClassName
Description copied from class:WorkflowStepsClientSideElement
Get the default class name for workflow menu- Overrides:
_getDefaultMenuClassName
in classWorkflowStepsClientSideElement
- Returns:
- the default class name
-
_getDefaultActionClassName
Description copied from class:WorkflowStepsClientSideElement
Get the default class name for workflow action- Overrides:
_getDefaultActionClassName
in classWorkflowStepsClientSideElement
- Returns:
- the default class name
-
_getAdditionalScriptFiles
Description copied from class:AbstractFormEntriesWorkflowStepsClientSideElement
Get the additional script files to import- Specified by:
_getAdditionalScriptFiles
in classAbstractFormEntriesWorkflowStepsClientSideElement
- Returns:
- the list of script
-
_getSelectionTargetId
Description copied from class:WorkflowStepsClientSideElement
Get the selection target id (can be a Regexp)- Overrides:
_getSelectionTargetId
in classWorkflowStepsClientSideElement
- Returns:
- the selection target id
-
getWorkflowState
Description copied from class:AbstractFormEntriesWorkflowStepsClientSideElement
Get the workflow state of contents- Specified by:
getWorkflowState
in classAbstractFormEntriesWorkflowStepsClientSideElement
- Parameters:
entryIds
- The ids of the selected entriesformId
- The id of the formscriptId
- The id of the script- Returns:
- The workflow state as a map
-