public static class MockAssignableWorkflowScheme.MockBuilder extends Object implements AssignableWorkflowScheme.Builder
Constructor and Description |
---|
MockBuilder(AssignableWorkflowScheme ws) |
public MockBuilder(AssignableWorkflowScheme ws)
@Nonnull public AssignableWorkflowScheme.Builder setName(@Nonnull String name)
AssignableWorkflowScheme.Builder
setName
in interface AssignableWorkflowScheme.Builder
name
- the name of the workflow scheme.@Nonnull public AssignableWorkflowScheme.Builder setDescription(String description)
AssignableWorkflowScheme.Builder
setDescription
in interface AssignableWorkflowScheme.Builder
description
- the description of the workflow scheme.@Nonnull public MockAssignableWorkflowScheme build()
build
in interface AssignableWorkflowScheme.Builder
public String getDefaultWorkflow()
getDefaultWorkflow
in interface WorkflowScheme.Builder<AssignableWorkflowScheme.Builder>
public String getMapping(@Nonnull String issueTypeId)
getMapping
in interface WorkflowScheme.Builder<AssignableWorkflowScheme.Builder>
public Map<String,String> getMappings()
getMappings
in interface WorkflowScheme.Builder<AssignableWorkflowScheme.Builder>
public Long getId()
getId
in interface WorkflowScheme.Builder<AssignableWorkflowScheme.Builder>
public boolean isDraft()
isDraft
in interface WorkflowScheme.Builder<AssignableWorkflowScheme.Builder>
public boolean isDefault()
isDefault
in interface WorkflowScheme.Builder<AssignableWorkflowScheme.Builder>
public String getDescription()
getDescription
in interface WorkflowScheme.Builder<AssignableWorkflowScheme.Builder>
public String getName()
getName
in interface WorkflowScheme.Builder<AssignableWorkflowScheme.Builder>
@Nonnull public MockAssignableWorkflowScheme.MockBuilder setDefaultWorkflow(@Nonnull String workflowName)
WorkflowScheme.Builder
setDefaultWorkflow
in interface WorkflowScheme.Builder<AssignableWorkflowScheme.Builder>
workflowName
- the default workflow for the scheme.@Nonnull public MockAssignableWorkflowScheme.MockBuilder setMapping(@Nonnull String issueTypeId, @Nonnull String workflowName)
WorkflowScheme.Builder
setMapping
in interface WorkflowScheme.Builder<AssignableWorkflowScheme.Builder>
issueTypeId
- the issue type to map.workflowName
- the workflow to map@Nonnull public MockAssignableWorkflowScheme.MockBuilder setMappings(@Nonnull Map<String,String> mappings)
WorkflowScheme.Builder
issueTypeId -> workflowName
.setMappings
in interface WorkflowScheme.Builder<AssignableWorkflowScheme.Builder>
mappings
- the mappings to set in the scheme.@Nonnull public MockAssignableWorkflowScheme.MockBuilder removeMapping(@Nonnull String issueTypeId)
WorkflowScheme.Builder
removeMapping
in interface WorkflowScheme.Builder<AssignableWorkflowScheme.Builder>
issueTypeId
- the issue type whose mapping is to be removed.@Nonnull public MockAssignableWorkflowScheme.MockBuilder removeDefault()
WorkflowScheme.Builder
removeDefault
in interface WorkflowScheme.Builder<AssignableWorkflowScheme.Builder>
@Nonnull public MockAssignableWorkflowScheme.MockBuilder clearMappings()
WorkflowScheme.Builder
clearMappings
in interface WorkflowScheme.Builder<AssignableWorkflowScheme.Builder>
@Nonnull public AssignableWorkflowScheme.Builder removeWorkflow(@Nonnull String workflowName)
WorkflowScheme.Builder
removeWorkflow
in interface WorkflowScheme.Builder<AssignableWorkflowScheme.Builder>
workflowName
- the name of the workflow to remove.Copyright © 2002-2016 Atlassian. All Rights Reserved.