public class ProtokollUtils extends Object
AProtocolEntrys and saving them in the database. Takes care of ensuring that
important pieces of information are set, such as AProtocolEntry.getBenutzer() or
AProtocolEntry.getErstellungsDatum(). Also handles the case when a client is about to be deleted, no more
protocol entries should be created then.| Modifier and Type | Field and Description |
|---|---|
static ProtokollUtils |
INST
The singleton instance of this utility class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addClientProtocolEntry(Mandant client,
ProtocolEntryClient entry,
IEntityContext ec)
Fills in missing pieces of information of a
ProtocolEntryClient, and saves that entry in the database. |
void |
addClientUUIDToDelete(String clientUUID)
Marks a client for which no protocol entries should be created.
|
void |
addMandantNameToDelete(String mandantName)
Deprecated.
|
void |
addMandantPeBase(Mandant mandant,
ProtocolEntryClient entry,
IEntityContext ec)
|
void |
addProcessProtocolEntry(Mandant client,
ProcessProtocolParams params,
ProtocolEntryProcessing entry,
IEntityContext ec)
Fills in missing pieces of information of a
ProtocolEntryProcessing, and saves that entry in the database. |
void |
addProcessProtocolEntry(Vorgang formRecord,
ProtocolEntryProcessing entry,
IEntityContext ec)
Fills in missing pieces of information of a
ProtocolEntryProcessing, and saves that entry in the database. |
void |
addProjectProtocolEntry(Projekt project,
ProtocolEntryClient entry,
IEntityContext ec)
Fills in missing pieces of information of a
ProtocolEntryClient for a certain form, and saves that entry in
the database. |
void |
addProjektPeBase(Projekt projekt,
ProtocolEntryClient entry,
IEntityContext ec)
|
void |
addSystemPeDokumentation(ProtocolEntrySystem entry,
IEntityContext ec)
Deprecated.
|
void |
addSystemProtocolEntry(ProtocolEntrySystem entry,
IEntityContext ec)
Fills in missing pieces of information of a
ProtocolEntrySystem, and saves that entry in the database. |
void |
addVorgangPeBase(Vorgang vorgang,
ProtocolEntryProcessing entry,
IEntityContext ec)
|
static ProtocolEntryClient |
getNewFormVersionPe(Benutzer user,
FormVersion formversion)
Generates a protocol entry for indicating that a new Form version has been created
|
void |
removeClientUUIDToDelete(String clientUUID)
Unmarks a client and allows protocol entries for the client to be created again.
|
void |
removeMandantNameToDelete(String mandantName)
Deprecated.
|
<T extends AProtocolEntry> |
togglePreserveFlag(T entry,
IEntityContext ec)
Negates the
AProtocolEntry.isPreserve() flag of the given entry and saves the modifications to the
database. |
public static final ProtokollUtils INST
@Deprecated public void addMandantNameToDelete(String mandantName)
addClientUUIDToDelete(String)mandantName - the name of the client@Deprecated public void removeMandantNameToDelete(String mandantName)
removeClientUUIDToDelete(String)mandantName - the name of the clientpublic void removeClientUUIDToDelete(String clientUUID)
addClientUUIDToDelete(String), after the client was deleted.clientUUID - The client for which protocol entries may be created again.public void addClientUUIDToDelete(String clientUUID)
clientUUID - The Mandant.getUUIDObject() of the client for which no protocol entries are to be
created.@Deprecated public void addMandantPeBase(Mandant mandant, ProtocolEntryClient entry, IEntityContext ec)
AProtocolEntry-Objekt erfolgt innerhalb dieser Methode.mandant - - Mandant-Instanz, für welchen der Eintrag angelegt werden sollentry - - Der Protokolleintrag der angelegt werden sollec - - EntityContext der genutzt wird um Abfragen zu tätigen und den Protokolleintrag zu persistierenpublic void addClientProtocolEntry(Mandant client, ProtocolEntryClient entry, IEntityContext ec)
ProtocolEntryClient, and saves that entry in the database.client - The client for which the protocol entry is created.entry - The protocol entry to save. Specific data such as AProtocolEntry.getBemerkung() should be set.ec - An entity context for interacting with the database.public <T extends AProtocolEntry> T togglePreserveFlag(T entry, IEntityContext ec)
AProtocolEntry.isPreserve() flag of the given entry and saves the modifications to the
database.entry - Protocol entry to modify.ec - Current entity context for the database.@Deprecated public void addProjektPeBase(Projekt projekt, ProtocolEntryClient entry, IEntityContext ec)
Projekt-Instanz ist. Die Methode ruft intern AProtocolEntry.setProjektName(String) auf, und setzt
den Wert auf den Namen des Projekts. Der Mandant für die Abhängigkeit wird implizit gesetztprojekt - - Projekt-Instanz, dessen Projektname innerhalb des Protokolleintrags verwendet wirdentry - - Der Protokolleintrag der angelegt werden sollec - - EntityContext der genutzt wird um Abfragen zu tätigen und den Protokolleintrag zu persistierenpublic void addProjectProtocolEntry(Projekt project, ProtocolEntryClient entry, IEntityContext ec)
ProtocolEntryClient for a certain form, and saves that entry in
the database.project - The form for which to create a protocol entry.entry - The protocol entry to save. Specific data such as AProtocolEntry.getBemerkung() should be set.ec - An entity context for interacting with the database.@Deprecated public void addVorgangPeBase(Vorgang vorgang, ProtocolEntryProcessing entry, IEntityContext ec)
Vorgang-Instanz ist. Die Methode ruft intern ProtocolEntryProcessing.setVorgangId(String) auf, und
setzt den Wert auf die Prozess-Id des Vorgangs. Der Mandant für die Abhängigkeit wird implizit
gesetztvorgang - - Vorgang-Instanz, dessen Prozess-Id innerhalb des Protokolleintrags verwendet wirdentry - - Der Protokolleintrag der angelegt werden sollec - - EntityContext der genutzt wird um Abfragen zu tätigen und den Protokolleintrag zu persistierenpublic void addProcessProtocolEntry(Vorgang formRecord, ProtocolEntryProcessing entry, IEntityContext ec)
ProtocolEntryProcessing, and saves that entry in the database.formRecord - The form record for which the protocol entry is created.entry - The protocol entry to save. Specific data such as AProtocolEntry.getBemerkung() should be set.ec - An entity context for interacting with the database.public void addProcessProtocolEntry(Mandant client, ProcessProtocolParams params, ProtocolEntryProcessing entry, IEntityContext ec)
ProtocolEntryProcessing, and saves that entry in the database.client - The client for which to create the protocol entry.params - Additional details for the protocol entry. Specific data such as
AProtocolEntry.getBemerkung() should be set.entry - The protocol entry to save.ec - An entity context for interacting with the database.@Deprecated public void addSystemPeDokumentation(ProtocolEntrySystem entry, IEntityContext ec)
addSystemProtocolEntry(ProtocolEntrySystem, IEntityContext)AProtocolEntry-Objekt erfolgt innerhalb dieser Methode.entry - the protocol entry to writeec - the enity context to user for writing the protocol entrypublic void addSystemProtocolEntry(ProtocolEntrySystem entry, IEntityContext ec)
ProtocolEntrySystem, and saves that entry in the database.entry - The protocol entry to save. Specific data such as AProtocolEntry.getBemerkung() should be set.ec - An entity context for interacting with the database.public static final ProtocolEntryClient getNewFormVersionPe(Benutzer user, FormVersion formversion)
user - Benutzer that created the form versionformversion - FormVersion that has been newly createdProtocolEntryClient that is not yet persistedCopyright © 2021 XIMA MEDIA GmbH. All rights reserved.