|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.external.ExternalUtils
public class ExternalUtils
Field Summary | |
---|---|
static String |
CF_PREFIX
|
static String |
GENERIC_CONTENT_TYPE
|
static String |
TYPE_SEPERATOR
|
Constructor Summary | |
---|---|
ExternalUtils(ProjectManager projectManager,
PermissionSchemeManager permissionSchemeManager,
IssueManager issueManager,
JiraAuthenticationContext authenticationContext,
VersionManager versionManager,
ProjectComponentManager componentManager,
CustomFieldManager customFieldManager,
OptionsManager optionsManager,
org.ofbiz.core.entity.GenericDelegator genericDelegator,
ActionDispatcher actionDispatcher,
ConstantsManager constantsManager,
WorkflowManager workflowManager,
IssueTypeScreenSchemeManager issueTypeScreenSchemeManager,
FieldScreenManager fieldScreenManager,
PermissionManager permissionManager,
IssueFactory issueFactory,
AttachmentManager attachmentManager,
IssueLinkTypeManager issueLinkTypeManager,
IssueLinkManager issueLinkManager,
FieldManager fieldManager,
ApplicationProperties applicationProperties,
IssueTypeSchemeManager issueTypeSchemeManager,
CommentManager commentManager,
UserUtil userUtil)
|
Method Summary | |
---|---|
void |
addComments(org.ofbiz.core.entity.GenericValue issue,
ExternalComment externalComment,
boolean dispatchEvent)
Adds an external comment to an issue and portentially dispatches and event about this. |
void |
addComments(org.ofbiz.core.entity.GenericValue issue,
ExternalComment externalComment,
boolean dispatchEvent,
boolean tweakIssueUpdateDate)
Adds an external comment to an issue and portentially dispatches and event about this and also updates the issue updated date. |
String |
addConstant(String constantName,
String constantType)
Deprecated. Use PriorityManager , IssueTypeManager ,
ResolutionManager instead. Since v5.0. |
protected String |
addConstant(String constantName,
String constantType,
Map<String,String> extraParams)
|
void |
addOptions(CustomField customFieldObject,
ExternalCustomFieldValue customFieldValue,
org.ofbiz.core.entity.GenericValue issueGV)
|
void |
associateCustomFieldWithScreen(CustomField customField,
FieldScreen screen)
|
void |
associateProjectCategory(org.ofbiz.core.entity.GenericValue project,
org.ofbiz.core.entity.GenericValue projectCategory)
Deprecated. since v4.4. Use associateProjectCategory(com.atlassian.jira.project.Project, com.atlassian.jira.project.ProjectCategory) instead. |
void |
associateProjectCategory(Project project,
ProjectCategory category)
Associates a project with a projectCategory. |
void |
attachFile(ExternalAttachment externalAttachment,
org.ofbiz.core.entity.GenericValue issueGv)
Deprecated. Use AttachmentManager.createAttachment(java.io.File, String, String, com.atlassian.crowd.embedded.api.User, Issue) instead. Since v5.0. |
boolean |
canActivateNumberOfUsers(int numberOfUsers)
|
protected void |
checkStatus(Issue issue,
String status)
|
org.ofbiz.core.entity.GenericValue |
createComponent(ExternalProject externalProject,
ExternalComponent externalComponent)
|
CustomField |
createCustomField(ExternalCustomFieldValue customFieldValue)
|
org.ofbiz.core.entity.GenericValue |
createIssue(Issue issue,
String status,
String resolution)
|
protected org.ofbiz.core.entity.GenericValue |
createIssue(Map fields)
|
org.ofbiz.core.entity.GenericValue |
createProject(ExternalProject externalProject)
Deprecated. since v4.4. Use createProjectObject(com.atlassian.jira.external.beans.ExternalProject) instead. |
org.ofbiz.core.entity.GenericValue |
createProjectCategory(String projectCategoryName)
Deprecated. Use createProjectCategoryObject(String) instead. Since v4.4 |
ProjectCategory |
createProjectCategoryObject(String projectCategoryName)
|
Project |
createProjectObject(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)
|
org.ofbiz.core.entity.GenericValue |
getComponent(ExternalProject externalProject,
ExternalComponent externalComponent)
|
org.ofbiz.core.entity.GenericValue |
getConstant(String constantName,
String constantType)
Deprecated. Use ConstantsManager.getConstantObject(String, String) , or
ConstantsManager.getIssueConstantByName(String, String) instead. Since v5.0. |
CustomField |
getCustomField(ExternalCustomFieldValue customFieldValue)
|
CustomField |
getCustomField(String customfieldId)
|
com.atlassian.crowd.embedded.api.User |
getJiraUser(ExternalUser externalUser)
|
org.ofbiz.core.entity.GenericValue |
getProject(ExternalProject externalProject)
Deprecated. Use getProjectObject(com.atlassian.jira.external.beans.ExternalProject) instead. Since v4.4. |
org.ofbiz.core.entity.GenericValue |
getProjectCategory(String projectCategoryName)
Deprecated. Use getProjectCategoryObject(String) instead. Since v4.4. |
ProjectCategory |
getProjectCategoryObject(String projectCategoryName)
Tries to find a Project Category with the given name. |
Project |
getProjectObject(ExternalProject externalProject)
Tries to find an existing Project based on the values in the given ExternalProject. |
static String |
getTextDataFromMimeMessage(String s)
|
Version |
getVersion(ExternalProject externalProject,
ExternalVersion externalVersion)
|
MutableIssue |
newIssueInstance()
|
void |
setCurrentWorkflowStep(org.ofbiz.core.entity.GenericValue issue,
String status,
String resolution)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String GENERIC_CONTENT_TYPE
public static final String TYPE_SEPERATOR
public static final String CF_PREFIX
Constructor Detail |
---|
public ExternalUtils(ProjectManager projectManager, PermissionSchemeManager permissionSchemeManager, IssueManager issueManager, JiraAuthenticationContext authenticationContext, VersionManager versionManager, ProjectComponentManager componentManager, CustomFieldManager customFieldManager, OptionsManager optionsManager, org.ofbiz.core.entity.GenericDelegator genericDelegator, ActionDispatcher actionDispatcher, ConstantsManager constantsManager, WorkflowManager workflowManager, IssueTypeScreenSchemeManager issueTypeScreenSchemeManager, FieldScreenManager fieldScreenManager, PermissionManager permissionManager, IssueFactory issueFactory, AttachmentManager attachmentManager, IssueLinkTypeManager issueLinkTypeManager, IssueLinkManager issueLinkManager, FieldManager fieldManager, ApplicationProperties applicationProperties, IssueTypeSchemeManager issueTypeSchemeManager, CommentManager commentManager, UserUtil userUtil)
Method Detail |
---|
public org.ofbiz.core.entity.GenericValue getProject(ExternalProject externalProject)
getProjectObject(com.atlassian.jira.external.beans.ExternalProject)
instead. Since v4.4.
externalProject
- the ExternalProject.
public Project getProjectObject(ExternalProject externalProject)
externalProject
- the ExternalProject.
public org.ofbiz.core.entity.GenericValue createProject(ExternalProject externalProject) throws ExternalException
createProjectObject(com.atlassian.jira.external.beans.ExternalProject)
instead.
externalProject
- the ExternalProject definition
ExternalException
- if anything goes wrongpublic Project createProjectObject(ExternalProject externalProject) throws ExternalException
externalProject
- the ExternalProject definition
ExternalException
- if anything goes wrongpublic Version createVersion(ExternalProject externalProject, ExternalVersion externalVersion)
public Version getVersion(ExternalProject externalProject, ExternalVersion externalVersion)
public org.ofbiz.core.entity.GenericValue createComponent(ExternalProject externalProject, ExternalComponent externalComponent)
public org.ofbiz.core.entity.GenericValue getComponent(ExternalProject externalProject, ExternalComponent externalComponent)
public com.atlassian.crowd.embedded.api.User createUser(ExternalUser externalUser)
public boolean canActivateNumberOfUsers(int numberOfUsers)
public com.atlassian.crowd.embedded.api.User getJiraUser(ExternalUser externalUser)
public org.ofbiz.core.entity.GenericValue createIssue(Issue issue, String status, String resolution) throws ExternalException
ExternalException
protected void checkStatus(Issue issue, String status) throws WorkflowException, ExternalException
WorkflowException
ExternalException
protected org.ofbiz.core.entity.GenericValue createIssue(Map fields) throws CreateException
CreateException
public void setCurrentWorkflowStep(org.ofbiz.core.entity.GenericValue issue, String status, String resolution) throws org.ofbiz.core.entity.GenericEntityException, WorkflowException
org.ofbiz.core.entity.GenericEntityException
WorkflowException
public CustomField getCustomField(ExternalCustomFieldValue customFieldValue)
public CustomField getCustomField(String customfieldId)
public void addOptions(CustomField customFieldObject, ExternalCustomFieldValue customFieldValue, org.ofbiz.core.entity.GenericValue issueGV)
public CustomField createCustomField(ExternalCustomFieldValue customFieldValue)
public String extractCustomFieldType(String customfieldId)
public String extractCustomFieldId(String customfieldId)
public void associateCustomFieldWithScreen(CustomField customField, FieldScreen screen)
public void addComments(org.ofbiz.core.entity.GenericValue issue, ExternalComment externalComment, boolean dispatchEvent) throws ExternalException
issue
- the issue GVexternalComment
- the external Comment to adddispatchEvent
- whether to dispatch an issue updated event
ExternalException
- if something bad happenspublic void addComments(org.ofbiz.core.entity.GenericValue issue, ExternalComment externalComment, boolean dispatchEvent, boolean tweakIssueUpdateDate) throws ExternalException
issue
- the issue GVexternalComment
- the external Comment to adddispatchEvent
- whether to dispatch an issue updated eventtweakIssueUpdateDate
- whether to tweak the issue updated date or not
ExternalException
- if something bad happenspublic void attachFile(ExternalAttachment externalAttachment, org.ofbiz.core.entity.GenericValue issueGv) throws ExternalException
AttachmentManager.createAttachment(java.io.File, String, String, com.atlassian.crowd.embedded.api.User, Issue)
instead. Since v5.0.
externalAttachment
- the AttachmentissueGv
- the Issue
ExternalException
public org.ofbiz.core.entity.GenericValue getConstant(String constantName, String constantType)
ConstantsManager.getConstantObject(String, String)
, or
ConstantsManager.getIssueConstantByName(String, String)
instead. Since v5.0.
public String addConstant(String constantName, String constantType) throws ExternalException
PriorityManager
, IssueTypeManager
,
ResolutionManager
instead. Since v5.0.
ExternalException
protected String addConstant(String constantName, String constantType, Map<String,String> extraParams) throws ExternalException
ExternalException
public MutableIssue newIssueInstance()
public static String getTextDataFromMimeMessage(String s)
public org.ofbiz.core.entity.GenericValue getProjectCategory(String projectCategoryName)
getProjectCategoryObject(String)
instead. Since v4.4.
projectCategoryName
-
public ProjectCategory getProjectCategoryObject(String projectCategoryName)
projectCategoryName
-
public org.ofbiz.core.entity.GenericValue createProjectCategory(String projectCategoryName) throws ExternalException
createProjectCategoryObject(String)
instead. Since v4.4
projectCategoryName
- The name.
ExternalException
public ProjectCategory createProjectCategoryObject(String projectCategoryName) throws ExternalException
ExternalException
public void associateProjectCategory(org.ofbiz.core.entity.GenericValue project, org.ofbiz.core.entity.GenericValue projectCategory)
associateProjectCategory(com.atlassian.jira.project.Project, com.atlassian.jira.project.ProjectCategory)
instead.
project
- The ProjectprojectCategory
- The category.public void associateProjectCategory(Project project, ProjectCategory category)
project
- The Projectcategory
- The category.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |