Class PlantUmlMindMapStepSVGReader
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.reading.AbstractReader
org.ametys.plugins.workflow.readers.AbstractPlantUMLSVGReader
org.ametys.plugins.workflow.readers.AbstractPlantUMLMindmapSVGReader
org.ametys.plugins.workflow.readers.PlantUmlMindMapStepSVGReader
- All Implemented Interfaces:
Poolable
,Recyclable
,Component
,LogEnabled
,Serviceable
,Reader
,SitemapModelComponent
,SitemapOutputComponent
Read step mindMap from plantUML
-
Field Summary
Fields inherited from class org.ametys.plugins.workflow.readers.AbstractPlantUMLSVGReader
__MAIN_STEP_NODE_COLOR, _i18nUtils, _workflowHelper, _workflowStepDAO
Fields inherited from class org.apache.cocoon.reading.AbstractReader
objectModel, out, parameters, resolver, source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
_getFirstParentStepId
(int stepId, List<com.opensymphony.workflow.loader.StepDescriptor> steps, Integer actionId) Get id of the first step having current action, INITIAL_STEP_ID if current action is an initial actionprotected Set<com.opensymphony.workflow.loader.ActionDescriptor>
_getIncomingActions
(int stepId, com.opensymphony.workflow.loader.WorkflowDescriptor workflow) Get a set of actions incoming to current stepprotected Set<com.opensymphony.workflow.loader.ActionDescriptor>
_getIncomingActionsFromList
(int stepId, List<com.opensymphony.workflow.loader.ActionDescriptor> actions) Get a set of incoming actions if present in actions listprotected List<com.opensymphony.workflow.loader.ActionDescriptor>
_getOutgoingActions
(int stepId, com.opensymphony.workflow.loader.WorkflowDescriptor workflow) Get a list of actions outgoing from current stepprotected String
_getPlantUMLGraphContent
(Request request, com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor) Get the plantUML diagram bodyprotected String
Get plantUML style for current diagramMethods inherited from class org.ametys.plugins.workflow.readers.AbstractPlantUMLMindmapSVGReader
_getMindMapNodeContent, _getPlantUMLType
Methods inherited from class org.ametys.plugins.workflow.readers.AbstractPlantUMLSVGReader
_getActionLabel, _getActionTooltip, _getJsFunction, _getPlantUMLContent, _getStepNodeLabel, _getStepTooltip, _setPlantUMLProperties, generate, service
Methods inherited from class org.apache.cocoon.reading.AbstractReader
getLastModified, getMimeType, recycle, setOutputStream, setup, shouldSetContentLength
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
PlantUmlMindMapStepSVGReader
public PlantUmlMindMapStepSVGReader()
-
-
Method Details
-
_getPlantUMLStyle
Description copied from class:AbstractPlantUMLSVGReader
Get plantUML style for current diagram- Specified by:
_getPlantUMLStyle
in classAbstractPlantUMLSVGReader
- Returns:
- the style as string
-
_getPlantUMLGraphContent
protected String _getPlantUMLGraphContent(Request request, com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor) Description copied from class:AbstractPlantUMLSVGReader
Get the plantUML diagram body- Specified by:
_getPlantUMLGraphContent
in classAbstractPlantUMLSVGReader
- Parameters:
request
- the requestworkflowDescriptor
- descriptor of current workflow- Returns:
- the diagram body as string
-
_getIncomingActions
protected Set<com.opensymphony.workflow.loader.ActionDescriptor> _getIncomingActions(int stepId, com.opensymphony.workflow.loader.WorkflowDescriptor workflow) Get a set of actions incoming to current step- Parameters:
stepId
- id of current stepworkflow
- current workflow- Returns:
- the set of outgoing actions
-
_getOutgoingActions
protected List<com.opensymphony.workflow.loader.ActionDescriptor> _getOutgoingActions(int stepId, com.opensymphony.workflow.loader.WorkflowDescriptor workflow) Get a list of actions outgoing from current step- Parameters:
stepId
- id of current stepworkflow
- current workflow- Returns:
- the list of outgoing actions
-
_getFirstParentStepId
protected String _getFirstParentStepId(int stepId, List<com.opensymphony.workflow.loader.StepDescriptor> steps, Integer actionId) Get id of the first step having current action, INITIAL_STEP_ID if current action is an initial action- Parameters:
stepId
- id of current stepsteps
- list of all the steps in current workflowactionId
- id of current action- Returns:
- the id of the first found step having current action
-
_getIncomingActionsFromList
protected Set<com.opensymphony.workflow.loader.ActionDescriptor> _getIncomingActionsFromList(int stepId, List<com.opensymphony.workflow.loader.ActionDescriptor> actions) Get a set of incoming actions if present in actions list- Parameters:
stepId
- id of current stepactions
- list of other step's actions- Returns:
- a list containing other step's outgoing actions that are incoming to current step
-