Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.publisher.impl.core
Class CoreProxyFactory

java.lang.Object
  extended by org.nuxeo.ecm.platform.publisher.api.AbstractBasePublishedDocumentFactory
      extended by org.nuxeo.ecm.platform.publisher.impl.core.CoreProxyFactory
All Implemented Interfaces:
PublishedDocumentFactory
Direct Known Subclasses:
CoreProxyWithWorkflowFactory

public class CoreProxyFactory
extends AbstractBasePublishedDocumentFactory
implements PublishedDocumentFactory

Implementation of the PublishedDocumentFactory for simple core implementation using native proxy system.

Author:
tiry

Field Summary
 
Fields inherited from class org.nuxeo.ecm.platform.publisher.api.AbstractBasePublishedDocumentFactory
ENABLE_SNAPSHOT, TARGET_PUBLISHED_DOCUMENT_STATE
 
Constructor Summary
CoreProxyFactory()
           
 
Method Summary
 PublishedDocument publishDocument(DocumentModel doc, PublicationNode targetNode, Map<String,String> params)
           
 DocumentModel snapshotDocumentBeforePublish(DocumentModel doc)
           
 DocumentModel unwrapPublishedDocument(PublishedDocument pubDoc)
           
 PublishedDocument wrapDocumentModel(DocumentModel doc)
           
 
Methods inherited from class org.nuxeo.ecm.platform.publisher.api.AbstractBasePublishedDocumentFactory
canManagePublishing, getName, getValidatorsFor, getValidatorsRule, hasValidationTask, init, init, publishDocument, 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, validatorPublishDocument, validatorRejectPublication
 

Constructor Detail

CoreProxyFactory

public CoreProxyFactory()
Method Detail

publishDocument

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

snapshotDocumentBeforePublish

public DocumentModel snapshotDocumentBeforePublish(DocumentModel doc)
Specified by:
snapshotDocumentBeforePublish in interface PublishedDocumentFactory
Overrides:
snapshotDocumentBeforePublish in class AbstractBasePublishedDocumentFactory

unwrapPublishedDocument

public DocumentModel unwrapPublishedDocument(PublishedDocument pubDoc)
                                      throws ClientException
Throws:
ClientException

wrapDocumentModel

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.