Package de.xima.fc.export
Class ProjektCopyUtil
- java.lang.Object
-
- de.xima.fc.export.AProjektUtil
-
- de.xima.fc.export.ProjektCopyUtil
-
public class ProjektCopyUtil extends AProjektUtil
-
-
Field Summary
-
Fields inherited from class de.xima.fc.export.AProjektUtil
client, ec, errorMsgList, FC_EXPORT_AKTIONEN, FC_EXPORT_AKTIVE_VERSION, FC_EXPORT_BEDINGUNG, FC_EXPORT_DOI, FC_EXPORT_DOI_DATA, FC_EXPORT_FORM_ELEMENTS, FC_EXPORT_FORM_RESSOURCES, FC_EXPORT_FORMVERSION, FC_EXPORT_FORMVERSION_DATA, FC_EXPORT_METADATA, FC_EXPORT_PROJEKT, FC_EXPORT_PROJEKTHELP, FC_EXPORT_RESOURCE, FC_EXPORT_STATUS, FC_EXPORT_STATUSHELP, FC_EXPORT_VORGAENGE, FC_EXPORT_VORGAENGE_DATA, infoMsgList, m
-
-
Constructor Summary
Constructors Constructor Description ProjektCopyUtil(Mandant client, IEntityContext ec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowVersion
copyVersion(Projekt project, WorkflowVersion oldVersion, long newVersionNumber)
Projekt
doCopy(Projekt targetProjekt, String curBenutzer, long sourceProjektId, long formVersionId, long workflowVersionId, boolean disableAllActions)
Kopiert ein ProjektProjektCopyUtil
withCreateEmptyNewWorkflow(boolean createEmptyNewWorkflow)
-
Methods inherited from class de.xima.fc.export.AProjektUtil
addErrorMessage, addErrorMessage, addInfoMessage, addInfoMessage, addWarnMessage, addWarnMessage, checkClientResourceExists, checkProjectAliasExist, checkProjectNameExist, cloneWorkflowVersion, createActiveFormVersion, createAktion, createAktionen, createBedingung, createBedingungenExportData, createFile, createFormElements, createFormVersionFile, createIDsMap, createJAXBContext, createNamedMap, createNewFormVersion, createNewFormVersion, createPreStatus, createProjektRessource, createProjektRessourcenFiles, createProjektRessources, createStatus, deproxyEntity, findUniqueAlias, getAktionsListe, getBenutzergruppen, getBenutzerGruppenListe, getErrorMsgList, getFormElements, getFormVersionBindings, getGsonBuilderWithDefaults, getInfoMsgList, getMandant, getMandantFrontendServer, getNewProjekt, getProjektRessources, getStatusListe, getVorgangsBindings, handleAction, handleBedingungForImport, importProjektRessources, updatePreviewImage, writeJSONtoFile
-
-
-
-
Constructor Detail
-
ProjektCopyUtil
public ProjektCopyUtil(Mandant client, IEntityContext ec)
-
-
Method Detail
-
copyVersion
public WorkflowVersion copyVersion(Projekt project, WorkflowVersion oldVersion, long newVersionNumber)
-
doCopy
public Projekt doCopy(Projekt targetProjekt, String curBenutzer, long sourceProjektId, long formVersionId, long workflowVersionId, boolean disableAllActions) throws Exception
Kopiert ein Projekt- Parameters:
targetProjekt
- the target to copy the project tocurBenutzer
- the currentBenutzerGruppe
sourceProjektId
- the if of the source projectformVersionId
- The ID of theFormVersion
to copy.workflowVersionId
- The ID of theWorkflowVersion
to copydisableAllActions
- Flag, das festlegt, ob alle Aktionen im kopierten Objekt deaktiviert werden sollen- Returns:
- the persisted project
- Throws:
Exception
- When the project could not be copied, for any reason.
-
withCreateEmptyNewWorkflow
public ProjektCopyUtil withCreateEmptyNewWorkflow(boolean createEmptyNewWorkflow)
- Parameters:
createEmptyNewWorkflow
- Whentrue
, does not copy the workflow, but creates an empty new workflow configuration.- Returns:
- This utility instance for chaining method calls.
-
-