Package de.xima.fc.copy
Class ProjectDuplicator
- java.lang.Object
-
- de.xima.fc.copy.ProjectDuplicator
-
-
Constructor Summary
Constructors Constructor Description ProjectDuplicator(Projekt project)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ProjectDuplicator
asTemplate(boolean asTemplate)
Projekt
duplicate(IEntityContext ec)
Deprecated.Projekt
duplicate(IEntityContext ec, Benutzer user)
static ProjectDuplicator
forProject(Projekt project)
static ProjectDuplicator
forProjectId(Long projectId)
ProjectDuplicator
withCreateEmptyNewWorkflow(boolean createEmptyNewWorkflow)
ProjectDuplicator
withScope(String scope)
ProjectDuplicator
withTitle(String title)
-
-
-
Constructor Detail
-
ProjectDuplicator
@Deprecated public ProjectDuplicator(Projekt project)
Deprecated.
-
-
Method Detail
-
forProject
public static final ProjectDuplicator forProject(Projekt project)
-
forProjectId
public static final ProjectDuplicator forProjectId(Long projectId)
-
withTitle
public ProjectDuplicator withTitle(String title)
-
withScope
public ProjectDuplicator withScope(String scope)
-
asTemplate
public ProjectDuplicator asTemplate(boolean asTemplate)
-
withCreateEmptyNewWorkflow
public ProjectDuplicator withCreateEmptyNewWorkflow(boolean createEmptyNewWorkflow)
- Parameters:
createEmptyNewWorkflow
- Whentrue
, does not copy the workflow, but creates an empty new workflow configuration.- Returns:
- This builder for chaining method calls.
-
duplicate
public Projekt duplicate(IEntityContext ec, Benutzer user) throws Exception
- Throws:
Exception
-
duplicate
@Deprecated public Projekt duplicate(IEntityContext ec) throws Exception
Deprecated.- Throws:
Exception
-
-