Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.publisher.remoting.server
Class SimpleExternalDocumentModelFactory

java.lang.Object
  extended by org.nuxeo.ecm.platform.publisher.api.AbstractBasePublishedDocumentFactory
      extended by org.nuxeo.ecm.platform.publisher.remoting.server.SimpleExternalDocumentModelFactory
All Implemented Interfaces:
PublishedDocumentFactory

public class SimpleExternalDocumentModelFactory
extends AbstractBasePublishedDocumentFactory
implements PublishedDocumentFactory

PublishedDocumentFactory implementation that creates DocumentModel instead of simple proxies.

Author:
tiry

Field Summary
 
Fields inherited from class org.nuxeo.ecm.platform.publisher.api.AbstractBasePublishedDocumentFactory
ENABLE_SNAPSHOT, TARGET_PUBLISHED_DOCUMENT_STATE
 
Constructor Summary
SimpleExternalDocumentModelFactory()
           
 
Method Summary
 PublishedDocument publishDocument(DocumentModel doc, PublicationNode targetNode, java.util.Map<java.lang.String,java.lang.String> params)
           
 PublishedDocument wrapDocumentModel(DocumentModel doc)
           
 
Methods inherited from class org.nuxeo.ecm.platform.publisher.api.AbstractBasePublishedDocumentFactory
canManagePublishing, getName, getValidatorsFor, getValidatorsRule, hasValidationTask, init, init, publishDocument, snapshotDocumentBeforePublish, validatorPublishDocument, validatorRejectPublication
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuxeo.ecm.platform.publisher.api.PublishedDocumentFactory
canManagePublishing, getName, getValidatorsFor, getValidatorsRule, hasValidationTask, init, init, publishDocument, snapshotDocumentBeforePublish, validatorPublishDocument, validatorRejectPublication
 

Constructor Detail

SimpleExternalDocumentModelFactory

public SimpleExternalDocumentModelFactory()
Method Detail

publishDocument

public PublishedDocument publishDocument(DocumentModel doc,
                                         PublicationNode targetNode,
                                         java.util.Map<java.lang.String,java.lang.String> params)
                                  throws ClientException
Specified by:
publishDocument in interface PublishedDocumentFactory
Throws:
ClientException

wrapDocumentModel

public PublishedDocument wrapDocumentModel(DocumentModel doc)
                                    throws ClientException
Specified by:
wrapDocumentModel in interface PublishedDocumentFactory
Throws:
ClientException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.