public class CalendarsTabClientSideElement extends StaticClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile| Modifier and Type | Field and Description |
|---|---|
protected AmetysObjectResolver |
_resolver
The ametys resolver
|
protected WorkflowHelper |
_workflowHelper
The workflow helper
|
protected WorkflowProvider |
_workflowProvider
The workflow provider
|
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script| Constructor and Description |
|---|
CalendarsTabClientSideElement() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_addActionInfo(Map<String,Object> actionMap,
com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor,
com.opensymphony.workflow.loader.ActionDescriptor action)
Add action info to the map of actions
|
protected void |
_addActionsInfo(Map<String,Object> result,
com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor)
Add actions info to the result map
|
protected void |
_addStepInfo(Map<String,Object> stepMap,
com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor,
com.opensymphony.workflow.loader.StepDescriptor step)
Add step info to the map of steps
|
protected void |
_addStepsInfo(Map<String,Object> result,
com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor)
Add steps info to the result map
|
protected void |
_addWorkflowInfo(Map<String,Object> result,
com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor)
Add workflow info to the result map
|
List<ClientSideElement.Script> |
getScripts(boolean ignoreRights,
Map<String,Object> contextParameters)
This method return the scripts that will be used on client side.
|
Set<String> |
getSubWorkflowNames(Calendar calendar)
Retrieves the child workflow names for a given calendar
|
Set<String> |
getSubWorkflowNames(String calendarId)
Retrieves the child workflow names for a given calendar
|
Map<String,Object> |
getWorkflowsInfo()
Get info about each existing workflow.
|
Map<String,Object> |
getWorkflowState(String eventId,
String workflowName,
int workflowStepId,
List<Integer> workflowActionsIds)
Get the workflow state of an event
|
void |
service(ServiceManager serviceManager) |
_configureClass, _configureParameters, _configureScript, configureInitialParameters_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, hasRight, setPluginInfo, toStringgetLogger, setLoggerprotected WorkflowProvider _workflowProvider
protected WorkflowHelper _workflowHelper
protected AmetysObjectResolver _resolver
public CalendarsTabClientSideElement()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class StaticFileImportsClientSideElementServiceExceptionpublic List<ClientSideElement.Script> getScripts(boolean ignoreRights, Map<String,Object> contextParameters)
ClientSideElementgetScripts in interface ClientSideElementgetScripts in class StaticFileImportsClientSideElementignoreRights - True to ignore the rights verification.contextParameters - Contextuals parameters transmitted by the environment.public Map<String,Object> getWorkflowsInfo()
protected void _addWorkflowInfo(Map<String,Object> result, com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor)
result - The result map to populateworkflowDescriptor - the workflow descriptorprotected void _addStepsInfo(Map<String,Object> result, com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor)
result - The result map to populateworkflowDescriptor - the workflow descriptorprotected void _addStepInfo(Map<String,Object> stepMap, com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor, com.opensymphony.workflow.loader.StepDescriptor step)
stepMap - The step map to populateworkflowDescriptor - the workflow descriptorstep - the step descriptorprotected void _addActionsInfo(Map<String,Object> result, com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor)
result - The result map to populateworkflowDescriptor - the workflow descriptorprotected void _addActionInfo(Map<String,Object> actionMap, com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor, com.opensymphony.workflow.loader.ActionDescriptor action)
actionMap - The action map to populateworkflowDescriptor - the workflow descriptoraction - the action descriptorpublic Set<String> getSubWorkflowNames(String calendarId)
calendarId - The calendar identifierpublic Set<String> getSubWorkflowNames(Calendar calendar)
calendar - The calendarpublic Map<String,Object> getWorkflowState(String eventId, String workflowName, int workflowStepId, List<Integer> workflowActionsIds)
eventId - The id of the eventworkflowName - The workflow nameworkflowStepId - The workflow step idworkflowActionsIds - The list of action ids