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.CAN_ASK_FOR_PUBLISHING, DEFAULT_ROOT_PATH, sessionId, treeRoot
configName, coreSession, factory, ICON_COLLAPSED_KEY, ICON_EXPANDED_KEY, iconCollapsed, iconExpanded, ROOT_PATH_KEY, rootNode, rootPath, sid, TITLE_KEY, treeTitle
Constructor and Description |
---|
CoreTreeWithExternalDocs() |
Modifier and Type | Method and Description |
---|---|
protected List<DocumentModel> |
findDocumentsCommingFromExternalRef(DocumentModel root,
String extRef) |
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) |
accept, canPublishTo, canUnpublish, getCoreSession, getDefaultFactory, getDefaultRootPath, getNodeByPath, initTree, isPublicationNode, release, wrapToPublicationNode
canManagePublishing, getChildrenDocuments, getChildrenNodes, getConfigName, getIconCollapsed, getIconExpanded, getName, getNodeType, getParent, getPath, getPublishedDocumentInNode, getSessionId, getTitle, getTreeConfigName, getTreeTitle, getTreeType, getType, hasValidationTask, setCurrentDocument, validatorPublishDocument, validatorRejectPublication
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canManagePublishing, canPublishTo, canUnpublish, getConfigName, getIconCollapsed, getIconExpanded, getNodeByPath, getPublishedDocumentInNode, getTreeTitle, getTreeType, hasValidationTask, initTree, isPublicationNode, release, setCurrentDocument, validatorPublishDocument, validatorRejectPublication, wrapToPublicationNode
getChildrenDocuments, getChildrenNodes, getName, getNodeType, getParent, getPath, getSessionId, getTitle, getTreeConfigName, getType
public CoreTreeWithExternalDocs()
public List<PublishedDocument> getExistingPublishedDocument(DocumentLocation docLoc)
getExistingPublishedDocument
in interface PublicationTree
getExistingPublishedDocument
in class SectionPublicationTree
protected List<DocumentModel> findDocumentsCommingFromExternalRef(DocumentModel root, String extRef)
public PublishedDocument publish(DocumentModel doc, PublicationNode targetNode)
publish
in interface PublicationTree
publish
in class SectionPublicationTree
public PublishedDocument publish(DocumentModel doc, PublicationNode targetNode, Map<String,String> params)
publish
in interface PublicationTree
publish
in class SectionPublicationTree
public void unpublish(PublishedDocument publishedDocument)
unpublish
in interface PublicationTree
unpublish
in class SectionPublicationTree
public void unpublish(DocumentModel doc, PublicationNode targetNode)
unpublish
in interface PublicationTree
unpublish
in class SectionPublicationTree
public PublishedDocument wrapToPublishedDocument(DocumentModel documentModel)
wrapToPublishedDocument
in interface PublicationTree
wrapToPublishedDocument
in class SectionPublicationTree
Copyright © 2016 Nuxeo SA. All rights reserved.