Interface IProtokollHandler
-
- All Superinterfaces:
IAPIHandler,Serializable
- All Known Implementing Classes:
ProtokollHandler
public interface IProtokollHandler extends IAPIHandler
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddClientProtocolEntry(UserContext uc, Mandant mandant, ProtocolEntryClient entry)voidaddClientProtocolEntry(UserContext uc, Projekt projekt, ProtocolEntryClient entry)voidaddMalwareDetectedProtocolEntry(UserContext uc, String scannedItem, MalwareScanReport report)Adds a system protocol entry when malware was detected in a file or some data.voidaddMalwareDetectedProtocolEntry(UserContext uc, String scannedItem, MalwareScanReport report, Mandant client)Adds a client protocol entry when malware was detected in a file or some data.voidaddMalwareDetectedProtocolEntry(UserContext uc, String scannedItem, MalwareScanReport report, Vorgang formRecord)Adds a processing protocol entry when malware was detected in a file or some data.voidaddProcessProtocolEntry(UserContext uc, Vorgang vorgang, ProtocolEntryProcessing entry)voidaddSystemProtocolEntry(UserContext uc, ProtocolEntrySystem entry)List<ProtocolEntryClient>getClientProtocol(UserContext uc, Long clientId)List<ProtocolEntryProcessing>getProcessProtocol(UserContext uc, Long formRecordMetaID)byte[]getProcessProtocolHtml(UserContext uc, Vorgang process, Locale locale)Returns a string, that represents the history of a given process as a html file.byte[]getProcessProtocolPdf(UserContext uc, Vorgang process, Locale locale)Returns a byte array, that represents the history of a given process as a pdf file.List<ProtocolEntrySystem>getSystemProtocol(UserContext uc)-
Methods inherited from interface de.xima.fc.com.interfaces.IAPIHandler
getName
-
-
-
-
Method Detail
-
addProcessProtocolEntry
void addProcessProtocolEntry(UserContext uc, Vorgang vorgang, ProtocolEntryProcessing entry)
-
addClientProtocolEntry
void addClientProtocolEntry(UserContext uc, Projekt projekt, ProtocolEntryClient entry)
-
addClientProtocolEntry
void addClientProtocolEntry(UserContext uc, Mandant mandant, ProtocolEntryClient entry)
-
addSystemProtocolEntry
void addSystemProtocolEntry(UserContext uc, ProtocolEntrySystem entry)
-
addMalwareDetectedProtocolEntry
void addMalwareDetectedProtocolEntry(UserContext uc, String scannedItem, MalwareScanReport report)
Adds a system protocol entry when malware was detected in a file or some data.- Parameters:
uc- The current user who uploaded the file containing malware.scannedItem- A description of the scanned file that was found to contain malware, e.g. the name of an upload element or the name of an attachment.report- The malware scan report. WhenMalwareScanReport.isSafe()istrue, no protocol entry
-
addMalwareDetectedProtocolEntry
void addMalwareDetectedProtocolEntry(UserContext uc, String scannedItem, MalwareScanReport report, Mandant client)
Adds a client protocol entry when malware was detected in a file or some data.- Parameters:
uc- The current user who uploaded the file containing malware.scannedItem- A description of the scanned file that was found to contain malware, e.g. the name of an upload element or the name of an attachment.report- The malware scan report. WhenMalwareScanReport.isSafe()istrue, no protocol entry is added.client- The client scope containing the file or data with malware.
-
addMalwareDetectedProtocolEntry
void addMalwareDetectedProtocolEntry(UserContext uc, String scannedItem, MalwareScanReport report, Vorgang formRecord)
Adds a processing protocol entry when malware was detected in a file or some data.- Parameters:
uc- The current user who uploaded the file containing malware.scannedItem- A description of the scanned file that was found to contain malware, e.g. the name of an upload element or the name of an attachment.report- The malware scan report. WhenMalwareScanReport.isSafe()istrue, no protocol entry is added.formRecord- The form record to which the file belongs.
-
getProcessProtocol
List<ProtocolEntryProcessing> getProcessProtocol(UserContext uc, Long formRecordMetaID)
-
getProcessProtocolPdf
byte[] getProcessProtocolPdf(UserContext uc, Vorgang process, Locale locale)
Returns a byte array, that represents the history of a given process as a pdf file.- Parameters:
uc- The current user to get the pdf fileformRecordMetaID- The id of the processlocale- the given locale- Returns:
- The byte array that represents the pdf file
-
getProcessProtocolHtml
byte[] getProcessProtocolHtml(UserContext uc, Vorgang process, Locale locale)
Returns a string, that represents the history of a given process as a html file.- Parameters:
uc- The current user to get the html fileprocess- the processlocale- the given locale- Returns:
- The string of the html
-
getClientProtocol
List<ProtocolEntryClient> getClientProtocol(UserContext uc, Long clientId)
-
getSystemProtocol
List<ProtocolEntrySystem> getSystemProtocol(UserContext uc)
-
-