com.atlassian.jira.external
Class ExternalUtils
java.lang.Object
com.atlassian.jira.external.ExternalUtils
public class ExternalUtils
- extends Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)
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.