Package org.nuxeo.audit.io
Class LogEntryCSVWriter
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.csv.AbstractCSVWriter<LogEntry>
org.nuxeo.audit.io.LogEntryCSVWriter
- All Implemented Interfaces:
Marshaller<LogEntry>,Writer<LogEntry>
@Setup(mode=SINGLETON,
priority=2000)
public class LogEntryCSVWriter
extends AbstractCSVWriter<LogEntry>
Convert
LogEntry to CSV only keeping default and fetched properties if any.- Since:
- 11.1
-
Field Summary
FieldsFields inherited from class org.nuxeo.ecm.core.io.marshallers.csv.AbstractCSVWriter
ctx, registry, TEXT_CSV, TEXT_CSV_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the properties to fetch if specified.protected voidstatic voidwriteHeader(org.apache.commons.csv.CSVPrinter printer, RenderingContext ctx) protected voidwriteHeader(LogEntry entity, org.apache.commons.csv.CSVPrinter printer) Methods inherited from class org.nuxeo.ecm.core.io.marshallers.csv.AbstractCSVWriter
accept, getCSVPrinter, printCalendar, write
-
Field Details
-
DEFAULT_PROPERTIES
-
-
Constructor Details
-
LogEntryCSVWriter
public LogEntryCSVWriter()
-
-
Method Details
-
write
- Specified by:
writein classAbstractCSVWriter<LogEntry>- Throws:
IOException
-
writeHeader
protected void writeHeader(LogEntry entity, org.apache.commons.csv.CSVPrinter printer) throws IOException - Specified by:
writeHeaderin classAbstractCSVWriter<LogEntry>- Throws:
IOException
-
getPropertiesToFetch
Gets the properties to fetch if specified. Otherwise returns all default properties.- Returns:
- the list of properties to fetch
-
writeHeader
public static void writeHeader(org.apache.commons.csv.CSVPrinter printer, RenderingContext ctx) throws IOException - Throws:
IOException
-