Package org.nuxeo.ecm.platform.audit.io
Class LogEntryCSVWriter
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.csv.AbstractCSVWriter<LogEntry>
org.nuxeo.ecm.platform.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
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.csv.AbstractCSVWriter
ctx, registry, schemaManager, TEXT_CSV, TEXT_CSV_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the properties to fetch if specified.protected void
static void
writeHeader
(org.apache.commons.csv.CSVPrinter printer, RenderingContext ctx) protected void
writeHeader
(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:
write
in classAbstractCSVWriter<LogEntry>
- Throws:
IOException
-
writeHeader
protected void writeHeader(LogEntry entity, org.apache.commons.csv.CSVPrinter printer) throws IOException - Specified by:
writeHeader
in 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
-