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.Builder
public Date getLastModifiedDate()
getLastModifiedDate
in interface DraftWorkflowScheme.Builder
public AssignableWorkflowScheme getParentScheme()
getParentScheme
in interface DraftWorkflowScheme.Builder
public DraftWorkflowScheme build()
build
in interface DraftWorkflowScheme.Builder
public 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.Builder
setDefaultWorkflow
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.Builder
setMapping
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.Builder
issueTypeId -> 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.Builder
removeMapping
in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>
issueTypeId
- the issue type whose mapping is to be removed.@Nonnull public DraftWorkflowScheme.Builder removeDefault()
WorkflowScheme.Builder
removeDefault
in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>
@Nonnull public DraftWorkflowScheme.Builder clearMappings()
WorkflowScheme.Builder
clearMappings
in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>
@Nonnull public DraftWorkflowScheme.Builder removeWorkflow(@Nonnull String workflowName)
WorkflowScheme.Builder
removeWorkflow
in interface WorkflowScheme.Builder<DraftWorkflowScheme.Builder>
workflowName
- the name of the workflow to remove.Copyright © 2002-2015 Atlassian. All Rights Reserved.