com.atlassian.jira.workflow
Class WorkflowUtil

java.lang.Object
  |
  +--com.atlassian.jira.workflow.WorkflowUtil

public class WorkflowUtil
extends java.lang.Object

Author:
Pat Lightbody

Constructor Summary
WorkflowUtil()
           
 
Method Summary
static void addToExistingInputs(java.util.Map inputs, java.lang.String key, java.util.List list)
          This method adds to an existing list stored in the inputs map.
static void doAction(WorkflowProgressAware from)
           
static com.opensymphony.module.user.User getRemoteUser(java.util.Map transientVars)
           
static com.opensymphony.workflow.spi.WorkflowStore getStore(com.opensymphony.workflow.WorkflowContext context)
          This is only used for unit testing so we can return our own 'mock store' instead of the static StoreFactory.getPersistence(ctx);
static void setMockStore(com.opensymphony.workflow.spi.WorkflowStore mockStore)
           
 
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

doAction

public static void doAction(WorkflowProgressAware from)

getRemoteUser

public static com.opensymphony.module.user.User getRemoteUser(java.util.Map transientVars)
                                                       throws com.opensymphony.module.user.EntityNotFoundException
com.opensymphony.module.user.EntityNotFoundException

addToExistingInputs

public static void addToExistingInputs(java.util.Map inputs,
                                       java.lang.String key,
                                       java.util.List list)
This method adds to an existing list stored in the inputs 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 inputs map.


getStore

public static com.opensymphony.workflow.spi.WorkflowStore getStore(com.opensymphony.workflow.WorkflowContext context)
This is only used for unit testing so we can return our own 'mock store' instead of the static StoreFactory.getPersistence(ctx);


setMockStore

public static void setMockStore(com.opensymphony.workflow.spi.WorkflowStore mockStore)


Copyright © 2002-2003 Atlassian. All Rights Reserved.