com.atlassian.jira.workflow.names
Class DefaultWorkflowCopyNameFactory
java.lang.Object
com.atlassian.jira.workflow.names.DefaultWorkflowCopyNameFactory
- All Implemented Interfaces:
- WorkflowCopyNameFactory
@Internal
@InjectableComponent
@Immutable
public class DefaultWorkflowCopyNameFactory
- extends Object
- implements WorkflowCopyNameFactory
- Since:
- v5.1
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 |
DefaultWorkflowCopyNameFactory
public DefaultWorkflowCopyNameFactory(WorkflowsRepository workflowsRepository,
I18nHelper.BeanFactory i18n)
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-2013 Atlassian. All Rights Reserved.