Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.publisher.remoting.client
Class ClientProxyFactory

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

public class ClientProxyFactory
extends AbstractBasePublishedDocumentFactory
implements PublishedDocumentFactory

Implementation of PublishedDocumentFactory for local tree pointing to a remote tree. This basically means that the only job done by the PublishedDocumentFactory is snaphoting the document before sending it for remote publishing.

Author:
tiry

Field Summary
 
Fields inherited from class org.nuxeo.ecm.platform.publisher.api.AbstractBasePublishedDocumentFactory
ENABLE_SNAPSHOT, TARGET_PUBLISHED_DOCUMENT_STATE
 
Constructor Summary
ClientProxyFactory()
           
 
Method Summary
 PublishedDocument publishDocument(DocumentModel doc, PublicationNode targetNode)
           
 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, 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, snapshotDocumentBeforePublish, validatorPublishDocument, validatorRejectPublication
 

Constructor Detail

ClientProxyFactory

public ClientProxyFactory()
Method Detail

publishDocument

public PublishedDocument publishDocument(DocumentModel doc,
                                         PublicationNode targetNode)
                                  throws ClientException
Specified by:
publishDocument in interface PublishedDocumentFactory
Overrides:
publishDocument in class AbstractBasePublishedDocumentFactory
Throws:
ClientException

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.