Class JiraCustomFieldUtilsServiceImpl
java.lang.Object
com.atlassian.greenhopper.customfield.JiraCustomFieldUtilsServiceImpl
- All Implemented Interfaces:
JiraCustomFieldUtilsService
@Service
public class JiraCustomFieldUtilsServiceImpl
extends Object
implements JiraCustomFieldUtilsService
Service wrapper for Jira's CustomFieldUtils class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList
<com.atlassian.jira.issue.issuetype.IssueType> buildIssueTypes
(String[] issueTypes) Constructs a list of IssueTypes corresponding to the IDs passed in.List
<com.atlassian.jira.issue.context.JiraContextNode> buildJiraIssueContexts
(boolean global, Long[] projectId) boolean
isShownAndVisible
(com.atlassian.jira.issue.fields.CustomField customField, com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.search.SearchContext searchContext) Checks if the custom field is in the search context scope (usingOrderableField.isShown(com.atlassian.jira.issue.Issue)
) and visible in all field schemes.
-
Constructor Details
-
JiraCustomFieldUtilsServiceImpl
public JiraCustomFieldUtilsServiceImpl()
-
-
Method Details
-
buildIssueTypes
Description copied from interface:JiraCustomFieldUtilsService
Constructs a list of IssueTypes corresponding to the IDs passed in.- Specified by:
buildIssueTypes
in interfaceJiraCustomFieldUtilsService
- Parameters:
issueTypes
- Array of IDs- Returns:
- List of IssueType objects
-
buildJiraIssueContexts
public List<com.atlassian.jira.issue.context.JiraContextNode> buildJiraIssueContexts(boolean global, Long[] projectId) - Specified by:
buildJiraIssueContexts
in interfaceJiraCustomFieldUtilsService
- Parameters:
global
- whether the contexts should be globalprojectId
- array of project IDs- Returns:
- a non-null list
-
isShownAndVisible
public boolean isShownAndVisible(com.atlassian.jira.issue.fields.CustomField customField, com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.search.SearchContext searchContext) Description copied from interface:JiraCustomFieldUtilsService
Checks if the custom field is in the search context scope (usingOrderableField.isShown(com.atlassian.jira.issue.Issue)
) and visible in all field schemes.- Specified by:
isShownAndVisible
in interfaceJiraCustomFieldUtilsService
- Parameters:
customField
- customfield to check visibility ofuser
- current usersearchContext
- search context- Returns:
- true if the customfield is in scope and visibile in all schemes in the specified search context
- See Also:
-