com.atlassian.jira.service.util
Class ServiceUtils

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

public class ServiceUtils
extends java.lang.Object


Method Summary
static org.ofbiz.core.entity.GenericValue findIssueInString(java.lang.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(java.lang.String searchString)
           
static org.ofbiz.core.entity.GenericValue getIssue(java.lang.String key)
          Given an actual key - return the issue that matches that key, or null if no issues match that key.
static java.util.Map<java.lang.String,java.lang.String> getParameterMap(java.lang.String parameterString)
          This method creates a map of parameters from a string.
static org.ofbiz.core.entity.GenericValue getProject(java.lang.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(java.lang.String string)

getIssue

public static org.ofbiz.core.entity.GenericValue getIssue(java.lang.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(java.lang.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(java.lang.String searchString)

getParameterMap

public static java.util.Map<java.lang.String,java.lang.String> getParameterMap(java.lang.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-2011 Atlassian. All Rights Reserved.