com.atlassian.jira.service.util
Class ServiceUtils

java.lang.Object
  extended by com.atlassian.jira.service.util.ServiceUtils

public class ServiceUtils
extends Object


Method Summary
static org.ofbiz.core.entity.GenericValue findIssueInString(String searchString)
          Loops through the string and returns the issue that is found within, or null if there is no issue matching.
static org.ofbiz.core.entity.GenericValue[] findIssuesInString(String searchString)
           
static org.ofbiz.core.entity.GenericValue getIssue(String key)
          Given an actual key - return the issue that matches that key, or null if no issues match that key.
static Map getParameterMap(String parameterString)
          This method creates a map of parameters from a string.
static org.ofbiz.core.entity.GenericValue getProject(String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getProject

public static org.ofbiz.core.entity.GenericValue getProject(String string)

getIssue

public static org.ofbiz.core.entity.GenericValue getIssue(String key)
Given an actual key - return the issue that matches that key, or null if no issues match that key.


findIssueInString

public static org.ofbiz.core.entity.GenericValue findIssueInString(String searchString)
Loops through the string and returns the issue that is found within, or null if there is no issue matching. It finds any string matching XXX-### and then looks it up to see if it is a valid issue. It will return the first valid issue that exists.

Parameters:
searchString - the string to search through for issues
Returns:
the issue that has been found, or null of one is not found.

findIssuesInString

public static org.ofbiz.core.entity.GenericValue[] findIssuesInString(String searchString)

getParameterMap

public static Map getParameterMap(String parameterString)
This method creates a map of parameters from a string. The format of the string is key=value, key=value, key=value. At the moment this is really only used for Handler parameters, but that whole area needs to be rewritten for JIRA 2.0.



Copyright © 2002-2008 Atlassian. All Rights Reserved.