com.atlassian.jira.workflow
Class WorkflowUtil

java.lang.Object
  extended bycom.atlassian.jira.workflow.WorkflowUtil

public class WorkflowUtil
extends Object


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 transitionName, String fieldName, ErrorCollection errorCollection)
          JRA-4429 (prevent invalid characters)
static String getMetaAttributeForIssue(org.ofbiz.core.entity.GenericValue issue, String metaKey)
          Return a workflow meta attribute for the current state of an issue.
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 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

WorkflowUtil

public WorkflowUtil()
Method Detail

addToExistingTransientArgs

public static void addToExistingTransientArgs(Map transientArgs,
                                              String key,
                                              List list)
This method adds to an existing list stored in the transient args map.

If the existing list does not exist, the new list is just added - otherwise the new list is added to the old list, and the result readded to the transientArgs map.


getNextId

public static int getNextId(List descriptors)
Get the next usable ID value for a given list of descriptors.


getNextId

public static int getNextId(List descriptors,
                            int start)
Get the next usable ID value for a given list of descriptors and a start point.


interpolateProjectKey

public static String interpolateProjectKey(org.ofbiz.core.entity.GenericValue project,
                                           String groupName)
Variable interpolation. Eg. given a project TestProject and groupName '${pkey}-users', will return 'TP-users', or null if groupName is null


getMetaAttributeForIssue

public static String getMetaAttributeForIssue(org.ofbiz.core.entity.GenericValue issue,
                                              String metaKey)
Return a workflow meta attribute for the current state of an issue.


isAcceptableName

public static boolean isAcceptableName(String workflowName)

checkInvalidCharacters

public static void checkInvalidCharacters(String transitionName,
                                          String fieldName,
                                          ErrorCollection errorCollection)
JRA-4429 (prevent invalid characters)



Copyright © 2002-2006 Atlassian. All Rights Reserved.