Nuxeo Enterprise Platform 5.1

org.nuxeo.ecm.platform.archive.ejb
Class ArchiveRecordFactoryImpl

java.lang.Object
  extended by org.nuxeo.ecm.platform.archive.ejb.ArchiveRecordFactoryImpl
All Implemented Interfaces:
Serializable, ArchiveRecordFactory

public class ArchiveRecordFactoryImpl
extends Object
implements ArchiveRecordFactory

The default archive record factory.

Author:
Bogdan Tatar
See Also:
Serialized Form

Constructor Summary
ArchiveRecordFactoryImpl()
           
 
Method Summary
 ArchiveRecord generateArchiveRecordFrom(Object currentDocument)
          This method is used to generate the archive record from the current document model.
 Class getArchiveRecordClass()
          This method returns the class this factory will instantiate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchiveRecordFactoryImpl

public ArchiveRecordFactoryImpl()
Method Detail

generateArchiveRecordFrom

public ArchiveRecord generateArchiveRecordFrom(Object currentDocument)
                                        throws Exception
Description copied from interface: ArchiveRecordFactory
This method is used to generate the archive record from the current document model.

Specified by:
generateArchiveRecordFrom in interface ArchiveRecordFactory
Parameters:
currentDocument - -the current document instance
Returns:
an archive record instance populated with information from the current document model.
Throws:
Exception

getArchiveRecordClass

public Class getArchiveRecordClass()
Description copied from interface: ArchiveRecordFactory
This method returns the class this factory will instantiate.

Specified by:
getArchiveRecordClass in interface ArchiveRecordFactory
Returns:
- an ArchiveRecord class definition.

Nuxeo Enterprise Platform 5.1

Copyright ? 2007 Nuxeo SAS. All Rights Reserved.