public class ImmutableWorkflowDescriptor
extends com.opensymphony.workflow.loader.WorkflowDescriptor
WorkflowDescriptor
. Due to OS workflows great
implementation (lack of Interface, clone() and constructor via object graph), we need to delegate all our getters
to the actual WorkflowDescriptor itself.
Invocation of any setter on this object will cause an UnsupportedOperationException being thrown.
Constructor and Description |
---|
ImmutableWorkflowDescriptor(com.opensymphony.workflow.loader.WorkflowDescriptor delegate) |
Modifier and Type | Method and Description |
---|---|
void |
addCommonAction(com.opensymphony.workflow.loader.ActionDescriptor descriptor) |
void |
addGlobalAction(com.opensymphony.workflow.loader.ActionDescriptor descriptor) |
void |
addInitialAction(com.opensymphony.workflow.loader.ActionDescriptor descriptor) |
void |
addJoin(com.opensymphony.workflow.loader.JoinDescriptor descriptor) |
void |
addSplit(com.opensymphony.workflow.loader.SplitDescriptor descriptor) |
void |
addStep(com.opensymphony.workflow.loader.StepDescriptor descriptor) |
String |
asXML() |
com.opensymphony.workflow.loader.ActionDescriptor |
getAction(int id) |
Map |
getCommonActions() |
int |
getEntityId() |
List |
getGlobalActions() |
com.opensymphony.workflow.loader.ConditionsDescriptor |
getGlobalConditions() |
int |
getId() |
com.opensymphony.workflow.loader.ActionDescriptor |
getInitialAction(int id) |
List |
getInitialActions() |
com.opensymphony.workflow.loader.JoinDescriptor |
getJoin(int id) |
List |
getJoins() |
Map |
getMetaAttributes() |
String |
getName() |
com.opensymphony.workflow.loader.AbstractDescriptor |
getParent() |
List |
getRegisters() |
com.opensymphony.workflow.loader.SplitDescriptor |
getSplit(int id) |
List |
getSplits() |
com.opensymphony.workflow.loader.StepDescriptor |
getStep(int id) |
List |
getSteps() |
com.opensymphony.workflow.loader.FunctionDescriptor |
getTriggerFunction(int id) |
Map |
getTriggerFunctions() |
boolean |
hasId() |
protected void |
init(Element root) |
boolean |
removeAction(com.opensymphony.workflow.loader.ActionDescriptor actionToRemove) |
void |
setEntityId(int entityId) |
void |
setId(int id) |
void |
setName(String name) |
void |
setParent(com.opensymphony.workflow.loader.AbstractDescriptor parent) |
com.opensymphony.workflow.loader.FunctionDescriptor |
setTriggerFunction(int id,
com.opensymphony.workflow.loader.FunctionDescriptor descriptor) |
void |
validate() |
void |
writeXML(PrintWriter out,
int indent) |
public ImmutableWorkflowDescriptor(com.opensymphony.workflow.loader.WorkflowDescriptor delegate)
public com.opensymphony.workflow.loader.ActionDescriptor getAction(int id)
getAction
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public Map getCommonActions()
getCommonActions
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public List getGlobalActions()
getGlobalActions
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public com.opensymphony.workflow.loader.ConditionsDescriptor getGlobalConditions()
getGlobalConditions
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public com.opensymphony.workflow.loader.ActionDescriptor getInitialAction(int id)
getInitialAction
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public List getInitialActions()
getInitialActions
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public com.opensymphony.workflow.loader.JoinDescriptor getJoin(int id)
getJoin
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public List getJoins()
getJoins
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public Map getMetaAttributes()
getMetaAttributes
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public String getName()
getName
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public List getRegisters()
getRegisters
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public List getSplits()
getSplits
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public com.opensymphony.workflow.loader.SplitDescriptor getSplit(int id)
getSplit
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public com.opensymphony.workflow.loader.StepDescriptor getStep(int id)
getStep
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public List getSteps()
getSteps
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public com.opensymphony.workflow.loader.FunctionDescriptor getTriggerFunction(int id)
getTriggerFunction
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public Map getTriggerFunctions()
getTriggerFunctions
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public void validate() throws com.opensymphony.workflow.InvalidWorkflowDescriptorException
validate
in interface com.opensymphony.workflow.util.Validatable
validate
in class com.opensymphony.workflow.loader.WorkflowDescriptor
com.opensymphony.workflow.InvalidWorkflowDescriptorException
public void writeXML(PrintWriter out, int indent)
writeXML
in interface com.opensymphony.workflow.util.XMLizable
writeXML
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public int getEntityId()
getEntityId
in class com.opensymphony.workflow.loader.AbstractDescriptor
public int getId()
getId
in class com.opensymphony.workflow.loader.AbstractDescriptor
public com.opensymphony.workflow.loader.AbstractDescriptor getParent()
getParent
in class com.opensymphony.workflow.loader.AbstractDescriptor
public String asXML()
asXML
in class com.opensymphony.workflow.loader.AbstractDescriptor
public boolean hasId()
hasId
in class com.opensymphony.workflow.loader.AbstractDescriptor
public void setName(String name)
setName
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public com.opensymphony.workflow.loader.FunctionDescriptor setTriggerFunction(int id, com.opensymphony.workflow.loader.FunctionDescriptor descriptor)
setTriggerFunction
in class com.opensymphony.workflow.loader.WorkflowDescriptor
protected void init(Element root)
init
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public void addCommonAction(com.opensymphony.workflow.loader.ActionDescriptor descriptor)
addCommonAction
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public void addGlobalAction(com.opensymphony.workflow.loader.ActionDescriptor descriptor)
addGlobalAction
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public void addInitialAction(com.opensymphony.workflow.loader.ActionDescriptor descriptor)
addInitialAction
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public void addJoin(com.opensymphony.workflow.loader.JoinDescriptor descriptor)
addJoin
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public void addSplit(com.opensymphony.workflow.loader.SplitDescriptor descriptor)
addSplit
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public void addStep(com.opensymphony.workflow.loader.StepDescriptor descriptor)
addStep
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public boolean removeAction(com.opensymphony.workflow.loader.ActionDescriptor actionToRemove)
removeAction
in class com.opensymphony.workflow.loader.WorkflowDescriptor
public void setParent(com.opensymphony.workflow.loader.AbstractDescriptor parent)
setParent
in class com.opensymphony.workflow.loader.AbstractDescriptor
public void setId(int id)
setId
in class com.opensymphony.workflow.loader.AbstractDescriptor
public void setEntityId(int entityId)
setEntityId
in class com.opensymphony.workflow.loader.AbstractDescriptor
Copyright © 2002-2019 Atlassian. All Rights Reserved.