public class IOLogEntryBase extends Object
Could be overridden to externalize additional information of a redefined LogEntry.
Modifier and Type | Field and Description |
---|---|
static String |
DOCUMENT_TAG |
static String |
LOGENTRY_TAG |
Constructor and Description |
---|
IOLogEntryBase() |
Modifier and Type | Method and 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) |
public static final String DOCUMENT_TAG
public static final String LOGENTRY_TAG
public IOLogEntryBase()
public static void write(List<LogEntry> logEntries, OutputStream out) throws IOException
IOException
protected static void writeLogEntry(org.dom4j.Element logEntryElement, LogEntry logEntry)
public static List<LogEntry> read(InputStream in) throws IOException
IOException
protected static List<LogEntry> readDocument(org.dom4j.Document doc)
protected static LogEntry readLogEntry(AuditLogger audit, org.dom4j.Element logEntryElement)
logEntryElement
- protected static DateFormat getDateFormat()
protected static void writeXML(org.dom4j.Document doc, OutputStream out) throws IOException
IOException
Copyright © 2018 Nuxeo. All rights reserved.