Class ProjektCopyUtil

java.lang.Object
de.xima.fc.export.AProjektUtil
de.xima.fc.export.ProjektCopyUtil

public class ProjektCopyUtil extends AProjektUtil
  • Constructor Details

  • Method Details

    • copyVersion

      public WorkflowVersion copyVersion(Projekt project, WorkflowVersion oldVersion, long newVersionNumber)
    • doCopy

      @Deprecated public Projekt doCopy(Projekt targetProjekt, String curBenutzer, long sourceProjektId, long formVersionId, boolean disableAllActions) throws Exception
      Copies a project
      Parameters:
      targetProjekt - the target to copy the project to
      curBenutzer - the current BenutzerGruppe
      sourceProjektId - the id of the source project
      formVersionId - The ID of the FormVersion to copy.
      disableAllActions - Flag, that decides, if all actions of the copied object should be deactivated
      Returns:
      the persisted project
      Throws:
      Exception - When the project could not be copied, for any reason.
    • doCopy

      public Projekt doCopy(Projekt targetProjekt, String curBenutzer, long sourceProjektId, long formVersionId, long workflowVersionId, boolean disableAllActions) throws Exception
      Copies a project
      Parameters:
      targetProjekt - the target to copy the project to
      curBenutzer - the current BenutzerGruppe
      sourceProjektId - the id of the source project
      formVersionId - The ID of the FormVersion to copy.
      workflowVersionId - The ID of the WorkflowVersion to copy
      disableAllActions - Flag, that decides, if all actions of the copied object should be deactivated
      Returns:
      the persisted project
      Throws:
      Exception - When the project could not be copied, for any reason.
    • withCreateEmptyNewWorkflow

      public ProjektCopyUtil withCreateEmptyNewWorkflow(boolean createEmptyNewWorkflow)
      Parameters:
      createEmptyNewWorkflow - When true, does not copy the workflow, but creates an empty new workflow configuration.
      Returns:
      This utility instance for chaining method calls.