com.atlassian.jira.rpc.soap.util
Class SoapUtils

java.lang.Object
  extended by com.atlassian.jira.rpc.soap.util.SoapUtils

public class SoapUtils
extends java.lang.Object


Constructor Summary
SoapUtils()
           
 
Method Summary
static void checkServiceContext(com.atlassian.jira.bc.JiraServiceContext serviceContext)
          This will check a JiraServiceContext and if it contains any errors or error messages, it will throw a RemoteException.
static RemoteComponent[] convertComponentsToRemoteObject(java.util.Collection components)
           
static RemoteVersion[] convertVersionsToRemoteObject(java.util.Collection versions)
           
static RemoteAttachment[] getAttachments(java.util.List attachments)
           
static RemoteComment[] getComments(java.util.List comments)
           
static RemoteComponent[] getComponents(java.util.Collection components)
           
static RemoteCustomFieldValue[] getCustomFieldValues(java.util.List customFields, com.atlassian.jira.issue.Issue issue)
           
static RemoteFilter[] getFilters(java.util.Collection searchRequests)
           
static RemoteIssueType[] getIssueTypeObjects(java.util.Collection issueTypeObjects)
           
static RemoteIssueType[] getIssueTypes(java.util.Collection issueTypes)
           
static RemotePriority[] getPriorities(java.util.Collection priorities)
           
static RemoteProject[] getProjects(java.util.Collection projects, com.atlassian.jira.config.properties.ApplicationProperties applicationProperties)
           
static java.util.List getRemoteEntityIds(AbstractRemoteEntity[] entities)
           
static java.lang.Long[] getRemoteEntityIdsAsLong(AbstractRemoteEntity[] entities)
           
static java.lang.String[] getRemoteEntityIdsAsString(AbstractRemoteEntity[] entities)
           
static RemoteResolution[] getResolutions(java.util.Collection resolutions)
           
static RemoteStatus[] getStatuses(java.util.Collection statuses)
           
static RemoteVersion[] getVersions(java.util.Collection versions)
           
static boolean isVisible(org.ofbiz.core.entity.GenericValue issue, java.lang.String fieldname)
           
static java.lang.Long toLong(java.lang.String longStr)
          Converts a string into a long with validation exception handling
static java.lang.Long toLongRequired(java.lang.String longStr)
          Converts a string into a long with validation exception handling.
static java.sql.Timestamp toTimeStamp(java.util.Date date)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapUtils

public SoapUtils()
Method Detail

getProjects

public static RemoteProject[] getProjects(java.util.Collection projects,
                                          com.atlassian.jira.config.properties.ApplicationProperties applicationProperties)

getVersions

public static RemoteVersion[] getVersions(java.util.Collection versions)

convertVersionsToRemoteObject

public static RemoteVersion[] convertVersionsToRemoteObject(java.util.Collection versions)

getComponents

public static RemoteComponent[] getComponents(java.util.Collection components)

convertComponentsToRemoteObject

public static RemoteComponent[] convertComponentsToRemoteObject(java.util.Collection components)

getIssueTypes

public static RemoteIssueType[] getIssueTypes(java.util.Collection issueTypes)

getIssueTypeObjects

public static RemoteIssueType[] getIssueTypeObjects(java.util.Collection issueTypeObjects)

getStatuses

public static RemoteStatus[] getStatuses(java.util.Collection statuses)

getResolutions

public static RemoteResolution[] getResolutions(java.util.Collection resolutions)

getPriorities

public static RemotePriority[] getPriorities(java.util.Collection priorities)

getFilters

public static RemoteFilter[] getFilters(java.util.Collection searchRequests)

getComments

public static RemoteComment[] getComments(java.util.List comments)

getAttachments

public static RemoteAttachment[] getAttachments(java.util.List attachments)

getCustomFieldValues

public static RemoteCustomFieldValue[] getCustomFieldValues(java.util.List customFields,
                                                            com.atlassian.jira.issue.Issue issue)

getRemoteEntityIdsAsString

public static java.lang.String[] getRemoteEntityIdsAsString(AbstractRemoteEntity[] entities)

getRemoteEntityIdsAsLong

public static java.lang.Long[] getRemoteEntityIdsAsLong(AbstractRemoteEntity[] entities)

getRemoteEntityIds

public static java.util.List getRemoteEntityIds(AbstractRemoteEntity[] entities)

toTimeStamp

public static java.sql.Timestamp toTimeStamp(java.util.Date date)

isVisible

public static boolean isVisible(org.ofbiz.core.entity.GenericValue issue,
                                java.lang.String fieldname)
                         throws com.atlassian.jira.issue.fields.layout.field.FieldLayoutStorageException
Throws:
com.atlassian.jira.issue.fields.layout.field.FieldLayoutStorageException

toLong

public static java.lang.Long toLong(java.lang.String longStr)
                             throws RemoteValidationException
Converts a string into a long with validation exception handling

Parameters:
longStr - the string to comvery
Returns:
a Long or null if the string is already null
Throws:
RemoteValidationException - if longStr is not a String representing a valid long number

toLongRequired

public static java.lang.Long toLongRequired(java.lang.String longStr)
                                     throws RemoteValidationException
Converts a string into a long with validation exception handling. The string is required to be non null and in Long ready form.

Parameters:
longStr - long value as String
Returns:
a Long Long object representing the String parameter passed in
Throws:
RemoteValidationException - if longStr is not a String representing a valid long number

checkServiceContext

public static void checkServiceContext(com.atlassian.jira.bc.JiraServiceContext serviceContext)
                                throws RemoteException
This will check a JiraServiceContext and if it contains any errors or error messages, it will throw a RemoteException.

Parameters:
serviceContext - the JiraServiceContext to check
Throws:
RemoteException - if it has any errors or error messages in it


Copyright © 2004-2011 Atlassian. All Rights Reserved.