public static class MockDraftWorkflowScheme.MockBuilder extends Object implements DraftWorkflowScheme.Builder
| Constructor and Description |
|---|
MockBuilder(DraftWorkflowScheme ws) |
public MockBuilder(DraftWorkflowScheme ws)
public ApplicationUser getLastModifiedUser()
getLastModifiedUser in interface DraftWorkflowScheme.Builderpublic Date getLastModifiedDate()
getLastModifiedDate in interface DraftWorkflowScheme.Builderpublic AssignableWorkflowScheme getParentScheme()
getParentScheme in interface DraftWorkflowScheme.Builderpublic DraftWorkflowScheme build()
build in interface DraftWorkflowScheme.Builderpublic String getDefaultWorkflow()
getDefaultWorkflow in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>public String getMapping(@Nonnull String issueTypeId)
getMapping in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>public Map<String,String> getMappings()
getMappings in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>public Long getId()
getId in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>public boolean isDraft()
isDraft in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>public boolean isDefault()
isDefault in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>public String getDescription()
getDescription in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>public String getName()
getName in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>@Nonnull public DraftWorkflowScheme.Builder setDefaultWorkflow(@Nonnull String workflowName)
WorkflowScheme.BuildersetDefaultWorkflow in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>workflowName - the default workflow for the scheme.@Nonnull public DraftWorkflowScheme.Builder setMapping(@Nonnull String issueTypeId, @Nonnull String workflowName)
WorkflowScheme.BuildersetMapping in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>issueTypeId - the issue type to map.workflowName - the workflow to map@Nonnull public DraftWorkflowScheme.Builder setMappings(@Nonnull Map<String,String> mappings)
WorkflowScheme.BuilderissueTypeId -> workflowName.setMappings in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>mappings - the mappings to set in the scheme.@Nonnull public DraftWorkflowScheme.Builder removeMapping(@Nonnull String issueTypeId)
WorkflowScheme.BuilderremoveMapping in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>issueTypeId - the issue type whose mapping is to be removed.@Nonnull public DraftWorkflowScheme.Builder removeDefault()
WorkflowScheme.BuilderremoveDefault in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>@Nonnull public DraftWorkflowScheme.Builder clearMappings()
WorkflowScheme.BuilderclearMappings in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>@Nonnull public DraftWorkflowScheme.Builder removeWorkflow(@Nonnull String workflowName)
WorkflowScheme.BuilderremoveWorkflow in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>workflowName - the name of the workflow to remove.Copyright © 2002-2021 Atlassian. All Rights Reserved.