public class ExternalUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CF_PREFIX |
static String |
TYPE_SEPERATOR |
Constructor and Description |
---|
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,
UserManager userManager,
com.atlassian.event.api.EventPublisher eventPublisher,
UserService userService) |
Modifier and Type | Method and Description |
---|---|
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.
|
ApplicationUser |
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) |
public static final String TYPE_SEPERATOR
public static final String CF_PREFIX
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, UserManager userManager, com.atlassian.event.api.EventPublisher eventPublisher, UserService userService)
public Project getProjectObject(ExternalProject externalProject)
externalProject
- the ExternalProject.public Project createProject(ExternalProject externalProject) throws ExternalException
externalProject
- the ExternalProject definitionExternalException
- if anything goes wrongpublic Version createVersion(ExternalProject externalProject, ExternalVersion externalVersion)
public Version getVersion(ExternalProject externalProject, ExternalVersion externalVersion)
public ApplicationUser createUser(ExternalUser externalUser)
public org.ofbiz.core.entity.GenericValue createIssue(Issue issue, String status, String resolution) throws ExternalException
ExternalException
protected void checkStatus(Issue issue, String statusId) throws WorkflowException, ExternalException
WorkflowException
ExternalException
public CustomField getCustomField(ExternalCustomFieldValue customFieldValue)
public CustomField getCustomField(String customfieldId)
public CustomField createCustomField(ExternalCustomFieldValue customFieldValue)
public void associateCustomFieldWithScreen(CustomField customField, FieldScreen screen)
Copyright © 2002-2024 Atlassian. All Rights Reserved.