Package de.xima.fc.pdf
Class ProcessLogExport
- java.lang.Object
-
- de.xima.fc.pdf.ProcessLogExport
-
public class ProcessLogExport extends Object
Exportor for creating Documents based onProtocolEntryProcessing
entities.- Since:
- 7.2.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description ProcessLogExport(List<ProtocolEntryProcessing> history, Locale locale)
Constructor of the exporter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
doExport()
Creates a document for the given history.ProcessLogExport
withFormat(EProcessLogFormat format)
A method to extend the exporter with a given format.ProcessLogExport
withProcess(Vorgang process)
A method to change the form record whose data will be exported.
-
-
-
Constructor Detail
-
ProcessLogExport
public ProcessLogExport(List<ProtocolEntryProcessing> history, Locale locale)
Constructor of the exporter.- Parameters:
history
- aList
ofProtocolEntryProcessing
entitieslocale
- the given locale
-
-
Method Detail
-
withFormat
public ProcessLogExport withFormat(EProcessLogFormat format)
A method to extend the exporter with a given format.- Parameters:
format
- Theprint format
to use.- Returns:
- This exporter instance for chaining method calls.
-
withProcess
public ProcessLogExport withProcess(Vorgang process)
A method to change the form record whose data will be exported.- Parameters:
process
- The form record to export.- Returns:
- This exporter instance for chaining method calls.
-
doExport
public byte[] doExport()
Creates a document for the given history.- Returns:
- byte array of the created history document
-
-