Package com.atlassian.jira.workflow.edit
Class WorkflowStatusesValidator
java.lang.Object
com.atlassian.jira.workflow.edit.WorkflowStatusesValidator
-
Constructor Summary
ConstructorDescriptionWorkflowStatusesValidator
(JiraAuthenticationContext jiraAuthenticationContext, com.atlassian.event.api.EventPublisher eventPublisher, WorkflowIssueCountValidator workflowIssueCountValidator) -
Method Summary
Modifier and TypeMethodDescriptionvalidateStatusDelete
(ApplicationUser user, @NotNull JiraWorkflow mutableWorkflow, String statusId) Validates if status can be deleted from workflow by user.validateStatusDeleteWhenOverwriteWorkflow
(ApplicationUser user, @NotNull JiraWorkflow liveWorkflow, String statusId)
-
Constructor Details
-
WorkflowStatusesValidator
public WorkflowStatusesValidator(JiraAuthenticationContext jiraAuthenticationContext, com.atlassian.event.api.EventPublisher eventPublisher, WorkflowIssueCountValidator workflowIssueCountValidator)
-
-
Method Details
-
validateStatusDelete
public ServiceResult validateStatusDelete(ApplicationUser user, @NotNull @NotNull JiraWorkflow mutableWorkflow, String statusId) Validates if status can be deleted from workflow by user. Performed checks: - Workflow is not default jira workflow - user has edit permissions to workflow - status is present in workflow - deleted status is not initial status - no issues are currently assigned to given status in workflow.- Parameters:
user
-mutableWorkflow
-statusId
-- Returns:
-
validateStatusDeleteWhenOverwriteWorkflow
public ServiceResult validateStatusDeleteWhenOverwriteWorkflow(ApplicationUser user, @NotNull @NotNull JiraWorkflow liveWorkflow, String statusId)
-