Package com.codebarrel.jira.status
Class NativeStatusClient
java.lang.Object
com.codebarrel.jira.status.NativeStatusClient
- All Implemented Interfaces:
StatusClient
-
Constructor Summary
ConstructorsConstructorDescriptionNativeStatusClient(JiraAuthenticationContext authenticationContext, ProjectService projectService, IssueTypeSchemeManager issueTypeSchemeManager, WorkflowManager workflowManager, StatusManager statusManager) -
Method Summary
Modifier and TypeMethodDescriptiongetStatusById(Long statusId) Returns the status which matches the given IDReturns a set of all valid statuses across the whole instancegetStatuses(String projectKeyOrId) Returns a set of all valid statuses in the given project across all issue types.
-
Constructor Details
-
NativeStatusClient
@Inject public NativeStatusClient(JiraAuthenticationContext authenticationContext, ProjectService projectService, IssueTypeSchemeManager issueTypeSchemeManager, WorkflowManager workflowManager, StatusManager statusManager)
-
-
Method Details
-
getStatuses
Description copied from interface:StatusClientReturns a set of all valid statuses in the given project across all issue types.- Specified by:
getStatusesin interfaceStatusClient- Parameters:
projectKeyOrId- the project to retrieve statuses for- Returns:
- a set of all valid statuses in the given project across all issue types.
-
getStatuses
Description copied from interface:StatusClientReturns a set of all valid statuses across the whole instance- Specified by:
getStatusesin interfaceStatusClient- Returns:
- a set of all valid statuses across the whole instance
-
getStatusById
Description copied from interface:StatusClientReturns the status which matches the given ID- Specified by:
getStatusByIdin interfaceStatusClient- Parameters:
statusId- id of the status to fetch- Returns:
- a Optional depending on whether a matching status can be found
-