Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

java.lang.Object
  extended by org.nuxeo.ecm.platform.publisher.api.AbstractBasePublicationTree
      extended by org.nuxeo.ecm.platform.publisher.impl.core.SectionPublicationTree
          extended by org.nuxeo.ecm.platform.publisher.remoting.server.CoreTreeWithExternalDocs
All Implemented Interfaces:
Serializable, PublicationNode, PublicationTree

public class CoreTreeWithExternalDocs
extends SectionPublicationTree
implements PublicationTree

PublicationTree implementation that supports having plain Documents directly inside the sections. This is typically used for Remote PublicationTree implementation that will store proxies for locally published documents and complete DocumentModel for remote published Documents.

Author:
tiry
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.nuxeo.ecm.platform.publisher.api.AbstractBasePublicationTree
ICON_COLLAPSED_KEY, ICON_EXPANDED_KEY, ROOT_PATH_KEY, TITLE_KEY
 
Constructor Summary
CoreTreeWithExternalDocs()
           
 
Method Summary
 List<PublishedDocument> getExistingPublishedDocument(DocumentLocation docLoc)
           
 PublishedDocument publish(DocumentModel doc, PublicationNode targetNode)
           
 PublishedDocument publish(DocumentModel doc, PublicationNode targetNode, Map<String,String> params)
           
 void unpublish(DocumentModel doc, PublicationNode targetNode)
           
 void unpublish(PublishedDocument publishedDocument)
           
 PublishedDocument wrapToPublishedDocument(DocumentModel documentModel)
           
 
Methods inherited from class org.nuxeo.ecm.platform.publisher.impl.core.SectionPublicationTree
canPublishTo, canUnpublish, getNodeByPath, initTree, isPublicationNode, release, wrapToPublicationNode
 
Methods inherited from class org.nuxeo.ecm.platform.publisher.api.AbstractBasePublicationTree
canManagePublishing, getChildrenDocuments, getChildrenNodes, getConfigName, getIconCollapsed, getIconExpanded, getName, getNodeType, getParent, getPath, getPublishedDocumentInNode, getSessionId, getTitle, getTreeConfigName, getTreeTitle, getTreeType, getType, hasValidationTask, setCurrentDocument, 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.PublicationTree
canManagePublishing, canPublishTo, canUnpublish, getConfigName, getIconCollapsed, getIconExpanded, getNodeByPath, getPublishedDocumentInNode, getTreeTitle, getTreeType, hasValidationTask, initTree, isPublicationNode, release, setCurrentDocument, validatorPublishDocument, validatorRejectPublication, wrapToPublicationNode
 
Methods inherited from interface org.nuxeo.ecm.platform.publisher.api.PublicationNode
getChildrenDocuments, getChildrenNodes, getName, getNodeType, getParent, getPath, getSessionId, getTitle, getTreeConfigName, getType
 

Constructor Detail

CoreTreeWithExternalDocs

public CoreTreeWithExternalDocs()
Method Detail

getExistingPublishedDocument

public List<PublishedDocument> getExistingPublishedDocument(DocumentLocation docLoc)
                                                     throws ClientException
Specified by:
getExistingPublishedDocument in interface PublicationTree
Overrides:
getExistingPublishedDocument in class SectionPublicationTree
Throws:
ClientException

publish

public PublishedDocument publish(DocumentModel doc,
                                 PublicationNode targetNode)
                          throws ClientException
Specified by:
publish in interface PublicationTree
Overrides:
publish in class SectionPublicationTree
Throws:
ClientException

publish

public PublishedDocument publish(DocumentModel doc,
                                 PublicationNode targetNode,
                                 Map<String,String> params)
                          throws ClientException
Specified by:
publish in interface PublicationTree
Overrides:
publish in class SectionPublicationTree
Throws:
ClientException

unpublish

public void unpublish(PublishedDocument publishedDocument)
               throws ClientException
Specified by:
unpublish in interface PublicationTree
Overrides:
unpublish in class SectionPublicationTree
Throws:
ClientException

unpublish

public void unpublish(DocumentModel doc,
                      PublicationNode targetNode)
               throws ClientException
Specified by:
unpublish in interface PublicationTree
Overrides:
unpublish in class SectionPublicationTree
Throws:
ClientException

wrapToPublishedDocument

public PublishedDocument wrapToPublishedDocument(DocumentModel documentModel)
                                          throws ClientException
Specified by:
wrapToPublishedDocument in interface PublicationTree
Overrides:
wrapToPublishedDocument in class SectionPublicationTree
Throws:
ClientException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.