Package org.nuxeo.ecm.platform.audit.io
Class IOLogEntryBase
- java.lang.Object
-
- org.nuxeo.ecm.platform.audit.io.IOLogEntryBase
-
public class IOLogEntryBase extends Object
Audit log entry importer/exporter.Could be overridden to externalize additional information of a redefined LogEntry.
- Author:
- DM
-
-
Field Summary
Fields Modifier and Type Field Description static String
DOCUMENT_TAG
static String
LOGENTRY_TAG
-
Constructor Summary
Constructors Constructor Description IOLogEntryBase()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static DateFormat
getDateFormat()
Specifies date-string conversion.static List<LogEntry>
read(InputStream in)
protected static List<LogEntry>
readDocument(org.dom4j.Document doc)
Will translate from a jdoc to a list of LogEntry objects.protected static LogEntry
readLogEntry(AuditLogger audit, org.dom4j.Element logEntryElement)
Could be overridden to get other (additional) data.static List<LogEntry>
translate(List<LogEntry> docLogs, DocumentRef newRef)
static void
write(List<LogEntry> logEntries, OutputStream out)
protected static void
writeLogEntry(org.dom4j.Element logEntryElement, LogEntry logEntry)
Could be overridden to put other (additional) data.protected static void
writeXML(org.dom4j.Document doc, OutputStream out)
-
-
-
Field Detail
-
DOCUMENT_TAG
public static final String DOCUMENT_TAG
- See Also:
- Constant Field Values
-
LOGENTRY_TAG
public static final String LOGENTRY_TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
write
public static void write(List<LogEntry> logEntries, OutputStream out) throws IOException
- Throws:
IOException
-
writeLogEntry
protected static void writeLogEntry(org.dom4j.Element logEntryElement, LogEntry logEntry)
Could be overridden to put other (additional) data.
-
read
public static List<LogEntry> read(InputStream in) throws IOException
- Throws:
IOException
-
readDocument
protected static List<LogEntry> readDocument(org.dom4j.Document doc)
Will translate from a jdoc to a list of LogEntry objects.
-
readLogEntry
protected static LogEntry readLogEntry(AuditLogger audit, org.dom4j.Element logEntryElement)
Could be overridden to get other (additional) data.
-
getDateFormat
protected static DateFormat getDateFormat()
Specifies date-string conversion.
-
writeXML
protected static void writeXML(org.dom4j.Document doc, OutputStream out) throws IOException
- Throws:
IOException
-
translate
public static List<LogEntry> translate(List<LogEntry> docLogs, DocumentRef newRef)
-
-