|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.web.action.util.workflow.WorkflowEditorTransitionConditionUtil
public class WorkflowEditorTransitionConditionUtil
| Field Summary | |
|---|---|
static String |
OPERATOR_AND
|
static String |
OPERATOR_OR
|
static String |
SEPARATOR
Separator for the 'count' variables that is used to represent a position in a hierarchy. |
| Constructor Summary | |
|---|---|
WorkflowEditorTransitionConditionUtil()
|
|
| Method Summary | |
|---|---|
String |
addCondition(com.opensymphony.workflow.loader.ActionDescriptor transition,
String count,
com.opensymphony.workflow.loader.ConditionDescriptor condition)
|
String |
addNestedCondition(com.opensymphony.workflow.loader.ActionDescriptor transition,
String count,
com.opensymphony.workflow.loader.ConditionDescriptor condition)
|
void |
changeLogicOperator(com.opensymphony.workflow.loader.ActionDescriptor transition,
String count)
|
void |
deleteCondition(com.opensymphony.workflow.loader.ActionDescriptor transition,
String count)
|
com.opensymphony.workflow.loader.ConditionsDescriptor |
getConditionsDescriptor(com.opensymphony.workflow.loader.RestrictionDescriptor restrictionDescriptor,
String count)
Same as getParentConditionsDescriptor(com.opensymphony.workflow.loader.RestrictionDescriptor, String) only all the
indexes specified by the passed in count are used for lookups. |
void |
getGrandParentConditionsDescriptor(com.opensymphony.workflow.loader.RestrictionDescriptor restriction,
String count)
|
int |
getLastCount(String count)
|
com.opensymphony.workflow.loader.ConditionsDescriptor |
getParentConditionsDescriptor(com.opensymphony.workflow.loader.RestrictionDescriptor restrictionDescriptor,
String count)
Returns a ConditionsDescriptor in the given RestrictionDescriptor in the 'place' specified by the
count. |
String |
increaseCountLevel(String c)
|
boolean |
isEmpty(com.opensymphony.workflow.loader.ConditionsDescriptor conditionsDescriptor)
Checks if restrictionDescriptor has no ConditionsDescriptors left. |
boolean |
isEmpty(com.opensymphony.workflow.loader.RestrictionDescriptor restrictionDescriptor)
Checks if restrictionDescriptor has no ConditionDescriptors or
ConditionsDescriptors left. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SEPARATOR
public static final String OPERATOR_AND
public static final String OPERATOR_OR
| Constructor Detail |
|---|
public WorkflowEditorTransitionConditionUtil()
| Method Detail |
|---|
public com.opensymphony.workflow.loader.ConditionsDescriptor getParentConditionsDescriptor(com.opensymphony.workflow.loader.RestrictionDescriptor restrictionDescriptor,
String count)
ConditionsDescriptor in the given RestrictionDescriptor in the 'place' specified by the
count. The count is a SEPARATOR separated integers that represents the place of the ConditionsDescriptor
in the hierarchy of nested ConditionsDescriptors.
This method assumes that the last integer in count will be used to find a ConditionDescriptor in the
returned ConditionsDescriptor, so is not used while looking through the hierarchy.
For example, if this method is called with count "1.2.4", this method will take the root ConditionsDescriptor of the passed RestrictionDescriptor, look up a nested ConditionsDescriptor at index 0. Them another lookup will be done for another nested ConditionsDescriptor at index 1. This ConditionsDescriptor will be returned, as "4" is ignored.
IllegalArgumentException - if the object at any index specified by the count is not an instance of ConditionsDescriptor
public com.opensymphony.workflow.loader.ConditionsDescriptor getConditionsDescriptor(com.opensymphony.workflow.loader.RestrictionDescriptor restrictionDescriptor,
String count)
getParentConditionsDescriptor(com.opensymphony.workflow.loader.RestrictionDescriptor, String) only all the
indexes specified by the passed in count are used for lookups. That is, the last integer in count is NOT ignored.
public void getGrandParentConditionsDescriptor(com.opensymphony.workflow.loader.RestrictionDescriptor restriction,
String count)
public boolean isEmpty(com.opensymphony.workflow.loader.RestrictionDescriptor restrictionDescriptor)
ConditionDescriptors or
ConditionsDescriptors left.
public boolean isEmpty(com.opensymphony.workflow.loader.ConditionsDescriptor conditionsDescriptor)
ConditionsDescriptors left.
public String increaseCountLevel(String c)
public int getLastCount(String count)
public String addCondition(com.opensymphony.workflow.loader.ActionDescriptor transition,
String count,
com.opensymphony.workflow.loader.ConditionDescriptor condition)
public String addNestedCondition(com.opensymphony.workflow.loader.ActionDescriptor transition,
String count,
com.opensymphony.workflow.loader.ConditionDescriptor condition)
public void deleteCondition(com.opensymphony.workflow.loader.ActionDescriptor transition,
String count)
public void changeLogicOperator(com.opensymphony.workflow.loader.ActionDescriptor transition,
String count)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||