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
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.workflow.names.WorkflowCopyNameFactory
WorkflowCopyNameFactory.UnableToGenerateASuitableWorkflowName -
Constructor Summary
ConstructorsConstructorDescriptionDefaultWorkflowCopyNameFactory(WorkflowsRepository workflowsRepository, I18nHelper.BeanFactory i18n) -
Method Summary
Modifier and TypeMethodDescriptioncreateFrom(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.
-
Constructor Details
-
DefaultWorkflowCopyNameFactory
public DefaultWorkflowCopyNameFactory(WorkflowsRepository workflowsRepository, I18nHelper.BeanFactory i18n)
-
-
Method Details
-
createFrom
Description copied from interface:WorkflowCopyNameFactoryCreates the name to be used for a copy of a workflow based on the name of the workflow to be copied.- Specified by:
createFromin interfaceWorkflowCopyNameFactory- Parameters:
sourceWorkflowName- The name of the workflow to be copied.locale-- Returns:
- A String containing the name to be used for the copy.
-