com.atlassian.jira.service.util
Class ServiceUtils

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

@PublicApi
public class ServiceUtils
extends Object


Method Summary
static org.ofbiz.core.entity.GenericValue findIssueInString(String searchString)
          Deprecated. use findIssueObjectInString(String) instead
static Issue findIssueObjectInString(String searchString)
          Loops through the string and returns the issue that is found within, or null if there is no issue matching.
static Iterable<Issue> findIssueObjectsInString(String searchString)
           
static org.ofbiz.core.entity.GenericValue[] findIssuesInString(String searchString)
          Deprecated. use findIssueObjectsInString(String) instead
static org.ofbiz.core.entity.GenericValue getIssue(String key)
          Deprecated. use IssueManager.getIssueObject(String) instead
static Issue getIssueObject(String key)
          Deprecated. Use IssueManager.getIssueObject(String) instead. Since v6.1.
static Map<String,String> getParameterMap(String parameterString)
          This method creates a map of parameters from a string.
static String toParameterString(Map<String,String> params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getIssue

@Nullable
@Deprecated
public static org.ofbiz.core.entity.GenericValue getIssue(String key)
Deprecated. use IssueManager.getIssueObject(String) instead

Given an actual key - return the issue that matches that key, or null if no issues match that key.


getIssueObject

@Nullable
@Deprecated
public static Issue getIssueObject(String key)
Deprecated. Use IssueManager.getIssueObject(String) instead. Since v6.1.

Given an actual key - return the issue that matches that key, or null if no issues match that key.


findIssueInString

@Deprecated
@Nullable
public static org.ofbiz.core.entity.GenericValue findIssueInString(String searchString)
Deprecated. use findIssueObjectInString(String) instead

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.

findIssueObjectInString

@Nullable
public static Issue findIssueObjectInString(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

@Deprecated
public static org.ofbiz.core.entity.GenericValue[] findIssuesInString(String searchString)
Deprecated. use findIssueObjectsInString(String) instead


findIssueObjectsInString

public static Iterable<Issue> findIssueObjectsInString(String searchString)

getParameterMap

public static Map<String,String> 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.


toParameterString

public static String toParameterString(Map<String,String> params)


Copyright © 2002-2014 Atlassian. All Rights Reserved.