|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.workflow.WorkflowUtil
public class WorkflowUtil
| Constructor Summary | |
|---|---|
WorkflowUtil()
|
|
| Method Summary | |
|---|---|
static void |
addToExistingTransientArgs(Map transientArgs,
String key,
List list)
This method adds to an existing list stored in the transient args map. |
static void |
checkInvalidCharacters(String fieldValue,
String fieldName,
ErrorCollection errorCollection)
JRA-4429 (prevent invalid characters) |
static String |
cloneWorkflowName(String currentName)
|
static String |
convertDescriptorToXML(com.opensymphony.workflow.loader.WorkflowDescriptor descriptor)
Converts a WorkflowDescriptor to XML. |
static com.opensymphony.workflow.loader.WorkflowDescriptor |
convertXMLtoWorkflowDescriptor(String workflowDescriptorXML)
Converts a string representation of a workflow XML into the WorkflowDescriptor
object representation. |
static com.atlassian.crowd.embedded.api.User |
getCaller(Map transientVars)
Given a map of transientVars from a Workflow Function, returns the User object of the caller. |
static String |
getCallerName(Map transientVars)
Given a map of transientVars from a Workflow Function, returns the username of the caller. |
static String |
getGlobalMetaAttributeForIssue(org.ofbiz.core.entity.GenericValue issue,
String metaKey)
Return a meta attribute applying to a whole workflow (ie. |
static String |
getMetaAttributeForIssue(org.ofbiz.core.entity.GenericValue issue,
String metaKey)
Return a workflow meta attribute for the current state of an issue. |
static Map |
getMetaAttributesForIssue(org.ofbiz.core.entity.GenericValue issue)
Get all meta attributes for an issue's current state. |
static List |
getMetaAttributesForIssue(org.ofbiz.core.entity.GenericValue issue,
String metaKeyPrefix)
Return all meta attribute values whose key starts with a certain prefix. |
static int |
getNextId(List descriptors)
Get the next usable ID value for a given list of descriptors. |
static int |
getNextId(List descriptors,
int start)
Get the next usable ID value for a given list of descriptors and a start point. |
static String |
getWorkflowDisplayName(JiraWorkflow workflow)
Appends "(Draft)" to the end of the workflow name for an draft workflow. |
static WorkflowManager |
getWorkflowManager()
|
static String |
getWorkflowTransitionDescription(com.opensymphony.workflow.loader.ActionDescriptor descriptor)
Get the translated description of the workflow transition. |
static String |
getWorkflowTransitionDisplayName(com.opensymphony.workflow.loader.ActionDescriptor descriptor)
Get the translated display name of a workflow transition. |
static String |
interpolateProjectKey(org.ofbiz.core.entity.GenericValue project,
String groupName)
Variable interpolation. |
static boolean |
isAcceptableName(String workflowName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkflowUtil()
| Method Detail |
|---|
public static void addToExistingTransientArgs(Map transientArgs,
String key,
List list)
public static int getNextId(List descriptors)
public static int getNextId(List descriptors,
int start)
public static String interpolateProjectKey(org.ofbiz.core.entity.GenericValue project,
String groupName)
public static String getGlobalMetaAttributeForIssue(org.ofbiz.core.entity.GenericValue issue,
String metaKey)
public static String getMetaAttributeForIssue(org.ofbiz.core.entity.GenericValue issue,
String metaKey)
public static List getMetaAttributesForIssue(org.ofbiz.core.entity.GenericValue issue,
String metaKeyPrefix)
public static Map getMetaAttributesForIssue(org.ofbiz.core.entity.GenericValue issue)
public static String convertDescriptorToXML(com.opensymphony.workflow.loader.WorkflowDescriptor descriptor)
WorkflowDescriptor to XML.
descriptor - The WorkflowDescriptor to convert
public static boolean isAcceptableName(String workflowName)
public static void checkInvalidCharacters(String fieldValue,
String fieldName,
ErrorCollection errorCollection)
public static com.opensymphony.workflow.loader.WorkflowDescriptor convertXMLtoWorkflowDescriptor(String workflowDescriptorXML)
throws com.opensymphony.workflow.FactoryException
WorkflowDescriptor
object representation.
workflowDescriptorXML - the XML representation of an OSWorkflow
WorkflowDescriptor that represents the workflow.
com.opensymphony.workflow.FactoryException - thrown if the XML is malformed or can not be converted to the object representation.public static String getWorkflowDisplayName(JiraWorkflow workflow)
workflow - The workflow to create the display name for.
public static String cloneWorkflowName(String currentName)
public static WorkflowManager getWorkflowManager()
public static String getWorkflowTransitionDisplayName(com.opensymphony.workflow.loader.ActionDescriptor descriptor)
descriptor - The action descriptor to get the name of
public static String getWorkflowTransitionDescription(com.opensymphony.workflow.loader.ActionDescriptor descriptor)
descriptor - The action descriptor to get the description of
public static String getCallerName(Map transientVars)
transientVars - the "transientVars" from the workflow FunctionProvider
FunctionProvider.execute(java.util.Map, java.util.Map, com.opensymphony.module.propertyset.PropertySet),
WorkflowContext.getCaller(),
getCaller(java.util.Map)public static com.atlassian.crowd.embedded.api.User getCaller(Map transientVars)
transientVars - the "transientVars" from the workflow FunctionProvider
FunctionProvider.execute(java.util.Map, java.util.Map, com.opensymphony.module.propertyset.PropertySet),
WorkflowContext.getCaller(),
getCallerName(java.util.Map)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||