com.atlassian.jira.external
Class ExternalUtils

java.lang.Object
  extended by com.atlassian.jira.external.ExternalUtils

public class ExternalUtils
extends Object


Field Summary
static String CF_PREFIX
           
static String TYPE_SEPERATOR
           
 
Constructor Summary
ExternalUtils(ProjectManager projectManager, PermissionSchemeManager permissionSchemeManager, IssueManager issueManager, JiraAuthenticationContext authenticationContext, VersionManager versionManager, CustomFieldManager customFieldManager, org.ofbiz.core.entity.GenericDelegator genericDelegator, ConstantsManager constantsManager, WorkflowManager workflowManager, IssueTypeScreenSchemeManager issueTypeScreenSchemeManager, FieldScreenManager fieldScreenManager, ApplicationProperties applicationProperties, UserUtil userUtil)
           
 
Method Summary
 void associateCustomFieldWithScreen(CustomField customField, FieldScreen screen)
           
protected  void checkStatus(Issue issue, String statusId)
           
 CustomField createCustomField(ExternalCustomFieldValue customFieldValue)
           
 org.ofbiz.core.entity.GenericValue createIssue(Issue issue, String status, String resolution)
           
 Project createProject(ExternalProject externalProject)
          Create a project in JIRA from the given ExternalProject.
 com.atlassian.crowd.embedded.api.User createUser(ExternalUser externalUser)
           
 Version createVersion(ExternalProject externalProject, ExternalVersion externalVersion)
           
 String extractCustomFieldId(String customfieldId)
           
 String extractCustomFieldType(String customfieldId)
           
 CustomField getCustomField(ExternalCustomFieldValue customFieldValue)
           
 CustomField getCustomField(String customfieldId)
           
 Project getProjectObject(ExternalProject externalProject)
          Tries to find an existing Project based on the values in the given ExternalProject.
 Version getVersion(ExternalProject externalProject, ExternalVersion externalVersion)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_SEPERATOR

public static final String TYPE_SEPERATOR
See Also:
Constant Field Values

CF_PREFIX

public static final String CF_PREFIX
See Also:
Constant Field Values
Constructor Detail

ExternalUtils

public ExternalUtils(ProjectManager projectManager,
                     PermissionSchemeManager permissionSchemeManager,
                     IssueManager issueManager,
                     JiraAuthenticationContext authenticationContext,
                     VersionManager versionManager,
                     CustomFieldManager customFieldManager,
                     org.ofbiz.core.entity.GenericDelegator genericDelegator,
                     ConstantsManager constantsManager,
                     WorkflowManager workflowManager,
                     IssueTypeScreenSchemeManager issueTypeScreenSchemeManager,
                     FieldScreenManager fieldScreenManager,
                     ApplicationProperties applicationProperties,
                     UserUtil userUtil)
Method Detail

getProjectObject

public Project getProjectObject(ExternalProject externalProject)
Tries to find an existing Project based on the values in the given ExternalProject.

Parameters:
externalProject - the ExternalProject.
Returns:
the project or null if none exist

createProject

public Project createProject(ExternalProject externalProject)
                      throws ExternalException
Create a project in JIRA from the given ExternalProject.

Parameters:
externalProject - the ExternalProject definition
Returns:
The newly created Project
Throws:
ExternalException - if anything goes wrong

createVersion

public Version createVersion(ExternalProject externalProject,
                             ExternalVersion externalVersion)

getVersion

public Version getVersion(ExternalProject externalProject,
                          ExternalVersion externalVersion)

createUser

public com.atlassian.crowd.embedded.api.User createUser(ExternalUser externalUser)

createIssue

public org.ofbiz.core.entity.GenericValue createIssue(Issue issue,
                                                      String status,
                                                      String resolution)
                                               throws ExternalException
Throws:
ExternalException

checkStatus

protected void checkStatus(Issue issue,
                           String statusId)
                    throws WorkflowException,
                           ExternalException
Throws:
WorkflowException
ExternalException

getCustomField

public CustomField getCustomField(ExternalCustomFieldValue customFieldValue)

getCustomField

public CustomField getCustomField(String customfieldId)

createCustomField

public CustomField createCustomField(ExternalCustomFieldValue customFieldValue)

extractCustomFieldType

public String extractCustomFieldType(String customfieldId)

extractCustomFieldId

public String extractCustomFieldId(String customfieldId)

associateCustomFieldWithScreen

public void associateCustomFieldWithScreen(CustomField customField,
                                           FieldScreen screen)


Copyright © 2002-2014 Atlassian. All Rights Reserved.