com.atlassian.jira.workflow.names
Class DefaultWorkflowCopyNameFactory

java.lang.Object
  extended by com.atlassian.jira.workflow.names.DefaultWorkflowCopyNameFactory
All Implemented Interfaces:
WorkflowCopyNameFactory

@Internal
@InjectableComponent
@Immutable
public class DefaultWorkflowCopyNameFactory
extends Object
implements WorkflowCopyNameFactory

Since:
v5.1

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.workflow.names.WorkflowCopyNameFactory
WorkflowCopyNameFactory.UnableToGenerateASuitableWorkflowName
 
Constructor Summary
DefaultWorkflowCopyNameFactory(WorkflowsRepository workflowsRepository, I18nHelper.BeanFactory i18n)
           
 
Method Summary
 String createFrom(String sourceWorkflowName, Locale locale)
          Creates the name to be used for a copy of a workflow based on the name of the workflow to be copied.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWorkflowCopyNameFactory

public DefaultWorkflowCopyNameFactory(WorkflowsRepository workflowsRepository,
                                      I18nHelper.BeanFactory i18n)
Method Detail

createFrom

public String createFrom(String sourceWorkflowName,
                         @Nonnull
                         Locale locale)
Description copied from interface: WorkflowCopyNameFactory
Creates the name to be used for a copy of a workflow based on the name of the workflow to be copied.

Specified by:
createFrom in interface WorkflowCopyNameFactory
Parameters:
sourceWorkflowName - The name of the workflow to be copied.
Returns:
A String containing the name to be used for the copy.


Copyright © 2002-2012 Atlassian. All Rights Reserved.