public class ProcessCopyUtil extends Object
Vorgang clonedVorg = CopyHelper.clone(origVorg); // ...ggfs an Vorgangskopie noch andere Attribute setzen/überschreiben... // Vorgangskopie persistieren: DaoProvider.VORGANG_DAO.create(entityCtx, origVorg.getProjekt().getMandant(), clonedVorg); // nach der Persistierung hat die Vorgangskopie eine gültige Entitäts-ID und es kann weiter gehen: CopyHelper.setProzessUid(origVorg, clonedVorg); CopyHelper.copyAttachments(origVorg, clonedVorg);
| Constructor and Description | 
|---|
ProcessCopyUtil()  | 
| Modifier and Type | Method and Description | 
|---|---|
static Vorgang | 
clone(IEntityContext ec,
     Vorgang origVorgang)
Deprecated.  
 | 
static Vorgang | 
clone(IEntityContext ec,
     Vorgang origVorgang,
     boolean anonymize)
Erstellt eine Kopie des aktuellen (übergebenen) Vorgangs mit folgenden Anpassungen:
 
  
Vorgang.id ist 0
 Vorgang.gelesen ist false
 Vorgang.inArbeit ist false
 Vorgang.prozessId ist "" (Leer-String)
 
 Die Attachment-Instanzen in der originalen Vorgang.attachments-Liste werden über eine
 NEUE Liste referenziert, alle anderen nicht-primitiven Attributereferenzen werden 'flach' kopiert (Verweis auf
 dieselbe Instanz). | 
static void | 
cloneSubmitsAndAttachToProcess(IEntityContext ec,
                              Vorgang origProcess,
                              Vorgang clonedProcess)
Deprecated.  
 | 
static void | 
cloneSubmitsAndAttachToProcess(IEntityContext ec,
                              Vorgang origProcess,
                              Vorgang clonedProcess,
                              boolean anonymize)
Diese Methode dient dazu die Formeingänge eines Vorgangs zu klonen und diese einem neuen Vorgang hinzuzufügen. 
 | 
static Vorgang | 
copy(IEntityContext ec,
    Vorgang origin,
    Vorgang clone)
Deprecated.  
 | 
static Vorgang | 
copy(IEntityContext ec,
    Vorgang origin,
    Vorgang clone,
    boolean anonymize)  | 
static void | 
copyAttachments(IEntityContext ec,
               Vorgang originalVorgang,
               Vorgang clonedVorgang)
Kopiert alle zum  
originalVorgang gehörenden Dateien in das entsprechende Verzeichnis der
 Vorgangskopie. | 
static void | 
setProcessUUID(Vorgang origVorgang,
              Vorgang clonedVorgang)
Deprecated. 
 
the uuid should not be changed anymore! 
 | 
public static Vorgang copy(IEntityContext ec, Vorgang origin, Vorgang clone, boolean anonymize)
public static Vorgang clone(IEntityContext ec, Vorgang origVorgang, boolean anonymize)
Vorgang.id ist 0Vorgang.gelesen ist falseVorgang.inArbeit ist falseVorgang.prozessId ist "" (Leer-String)Attachment-Instanzen in der originalen Vorgang.attachments-Liste werden über eine
 NEUE Liste referenziert, alle anderen nicht-primitiven Attributereferenzen werden 'flach' kopiert (Verweis auf
 dieselbe Instanz).ec - IEntityContext the entity-contextorigVorgang - the original Vorganganonymize - if true the Vorgang.setBearbeiterRef(String) ()} and Vorgang.getBearbeiterRef()
 will be anonymizedVorgangpublic static void cloneSubmitsAndAttachToProcess(IEntityContext ec, Vorgang origProcess, Vorgang clonedProcess, boolean anonymize)
public static void copyAttachments(IEntityContext ec, Vorgang originalVorgang, Vorgang clonedVorgang)
originalVorgang gehörenden Dateien in das entsprechende Verzeichnis der
 Vorgangskopie.ec - IEntityContext the entity-contextoriginalVorgang - - OriginalvorgangclonedVorgang - - Vorgangskopie@Deprecated public static void setProcessUUID(Vorgang origVorgang, Vorgang clonedVorgang)
origVorgang - clonedVorgang - @Deprecated public static void cloneSubmitsAndAttachToProcess(IEntityContext ec, Vorgang origProcess, Vorgang clonedProcess)
@Deprecated public static Vorgang copy(IEntityContext ec, Vorgang origin, Vorgang clone)
@Deprecated public static Vorgang clone(IEntityContext ec, Vorgang origVorgang)
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.