Package de.xima.fc.handler.entity
Class ProtokollHandler
- java.lang.Object
 - 
- de.xima.fc.handler.AMSApiHandler
 - 
- de.xima.fc.handler.entity.ProtokollHandler
 
 
 
- 
- All Implemented Interfaces:
 IAPIHandler,IProtokollHandler,Serializable
public class ProtokollHandler extends AMSApiHandler implements IProtokollHandler
The Class ProtokollHandler.- Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ProtokollHandler() 
- 
Method Summary
All Methods Instance Methods Concrete 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)Creates an HTML string that represents the history of a given form record.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 class de.xima.fc.handler.AMSApiHandler
getName 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface de.xima.fc.com.interfaces.IAPIHandler
getName 
 - 
 
 - 
 
- 
- 
Method Detail
- 
addProcessProtocolEntry
public void addProcessProtocolEntry(UserContext uc, Vorgang vorgang, ProtocolEntryProcessing entry)
- Specified by:
 addProcessProtocolEntryin interfaceIProtokollHandler
 
- 
addClientProtocolEntry
public void addClientProtocolEntry(UserContext uc, Projekt projekt, ProtocolEntryClient entry)
- Specified by:
 addClientProtocolEntryin interfaceIProtokollHandler
 
- 
addClientProtocolEntry
public void addClientProtocolEntry(UserContext uc, Mandant mandant, ProtocolEntryClient entry)
- Specified by:
 addClientProtocolEntryin interfaceIProtokollHandler
 
- 
addSystemProtocolEntry
public void addSystemProtocolEntry(UserContext uc, ProtocolEntrySystem entry)
- Specified by:
 addSystemProtocolEntryin interfaceIProtokollHandler
 
- 
getProcessProtocol
public List<ProtocolEntryProcessing> getProcessProtocol(UserContext uc, Long formRecordMetaID)
- Specified by:
 getProcessProtocolin interfaceIProtokollHandler
 
- 
getProcessProtocolPdf
public byte[] getProcessProtocolPdf(UserContext uc, Vorgang process, Locale locale)
Description copied from interface:IProtokollHandlerReturns a byte array, that represents the history of a given process as a PDF file.- Specified by:
 getProcessProtocolPdfin interfaceIProtokollHandler- Parameters:
 uc- The current user to get the PDF fileprocess- The form record for which to create a protocol entry.locale- the given locale- Returns:
 - The byte array that represents the PDF file
 
 
- 
getProcessProtocolHtml
public byte[] getProcessProtocolHtml(UserContext uc, Vorgang process, Locale locale)
Description copied from interface:IProtokollHandlerCreates an HTML string that represents the history of a given form record.- Specified by:
 getProcessProtocolHtmlin interfaceIProtokollHandler- Parameters:
 uc- User context for accessing the API and database.process- Form record for which to retrieve the history.locale- Locale for rendering the history.- Returns:
 - The HTML string with the protocol data.
 
 
- 
getClientProtocol
public List<ProtocolEntryClient> getClientProtocol(UserContext uc, Long clientId)
- Specified by:
 getClientProtocolin interfaceIProtokollHandler
 
- 
getSystemProtocol
public List<ProtocolEntrySystem> getSystemProtocol(UserContext uc)
- Specified by:
 getSystemProtocolin interfaceIProtokollHandler
 
- 
addMalwareDetectedProtocolEntry
public void addMalwareDetectedProtocolEntry(UserContext uc, String scannedItem, MalwareScanReport report)
Description copied from interface:IProtokollHandlerAdds a system protocol entry when malware was detected in a file or some data.- Specified by:
 addMalwareDetectedProtocolEntryin interfaceIProtokollHandler- 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
public void addMalwareDetectedProtocolEntry(UserContext uc, String scannedItem, MalwareScanReport report, Mandant client)
Description copied from interface:IProtokollHandlerAdds a client protocol entry when malware was detected in a file or some data.- Specified by:
 addMalwareDetectedProtocolEntryin interfaceIProtokollHandler- 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
public void addMalwareDetectedProtocolEntry(UserContext uc, String scannedItem, MalwareScanReport report, Vorgang formRecord)
Description copied from interface:IProtokollHandlerAdds a processing protocol entry when malware was detected in a file or some data.- Specified by:
 addMalwareDetectedProtocolEntryin interfaceIProtokollHandler- 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.
 
 - 
 
 -