Nuxeo Enterprise Platform 5.1

org.nuxeo.ecm.platform.audit.api
Interface LogEntryFactory

All Superinterfaces:
Serializable
All Known Implementing Classes:
LogEntryFactoryImpl

public interface LogEntryFactory
extends Serializable

Log entry factory.

Author:
Julien Anguenot

Method Summary
 LogEntry computeLogEntryFrom(DocumentMessage doc)
          Computes a a log entry from a document message.
 LogEntryBase createLogEntryBase(LogEntry entry)
          Converts a log entry entity to a log entry base.
 Class<LogEntry> getLogEntryClass()
          Returns the class this factory will instantiate.
 

Method Detail

computeLogEntryFrom

LogEntry computeLogEntryFrom(DocumentMessage doc)
                             throws Exception
Computes a a log entry from a document message.

Parameters:
doc - the document message instance
Returns:
a LogEntry instance.
Throws:
Exception

getLogEntryClass

Class<LogEntry> getLogEntryClass()
Returns the class this factory will instantiate.

Returns:
a LogEntry class definition.

createLogEntryBase

LogEntryBase createLogEntryBase(LogEntry entry)
Converts a log entry entity to a log entry base.

This method is used to generate remotable object for the API by LogsBean internals.

Parameters:
entry - : a log entry entity
Returns:
a a log entry base instance.

Nuxeo Enterprise Platform 5.1

Copyright ? 2007 Nuxeo SAS. All Rights Reserved.