public class SectionPublicationTree extends AbstractBasePublicationTree implements PublicationTree
PublicationTree
using the Core Sections.Modifier and Type | Field and Description |
---|---|
static String |
CAN_ASK_FOR_PUBLISHING |
ICON_COLLAPSED_KEY, ICON_EXPANDED_KEY, ROOT_PATH_KEY, TITLE_KEY
Constructor and Description |
---|
SectionPublicationTree() |
Modifier and Type | Method and Description |
---|---|
boolean |
canPublishTo(PublicationNode publicationNode)
Returns
true if the current user can publish to the specified publicationNode, false otherwise. |
boolean |
canUnpublish(PublishedDocument publishedDocument)
Returns
true if the current user can unpublish the given publishedDocument, false otherwise. |
List<PublishedDocument> |
getExistingPublishedDocument(DocumentLocation docLoc) |
PublicationNode |
getNodeByPath(String path) |
void |
initTree(String sid,
CoreSession coreSession,
Map<String,String> parameters,
PublishedDocumentFactory factory,
String configName,
String title) |
boolean |
isPublicationNode(DocumentModel documentModel)
Returns
true if the given documentModel is a PublicationNode of the current tree, false
otherwise. |
PublishedDocument |
publish(DocumentModel doc,
PublicationNode targetNode) |
PublishedDocument |
publish(DocumentModel doc,
PublicationNode targetNode,
Map<String,String> params) |
void |
release() |
void |
unpublish(DocumentModel doc,
PublicationNode targetNode) |
void |
unpublish(PublishedDocument publishedDocument) |
PublicationNode |
wrapToPublicationNode(DocumentModel documentModel)
Returns a PublicationNode for the current tree built on the given
documentModel . |
PublishedDocument |
wrapToPublishedDocument(DocumentModel documentModel) |
canManagePublishing, getChildrenDocuments, getChildrenNodes, getConfigName, getIconCollapsed, getIconExpanded, getName, getNodeType, getParent, getPath, getPublishedDocumentInNode, getSessionId, getTitle, getTreeConfigName, getTreeTitle, getTreeType, getType, hasValidationTask, setCurrentDocument, validatorPublishDocument, validatorRejectPublication
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canManagePublishing, getConfigName, getIconCollapsed, getIconExpanded, getPublishedDocumentInNode, getTreeTitle, getTreeType, hasValidationTask, setCurrentDocument, validatorPublishDocument, validatorRejectPublication
getChildrenDocuments, getChildrenNodes, getName, getNodeType, getParent, getPath, getSessionId, getTitle, getTreeConfigName, getType
public static final String CAN_ASK_FOR_PUBLISHING
public void initTree(String sid, CoreSession coreSession, Map<String,String> parameters, PublishedDocumentFactory factory, String configName, String title) throws ClientException
initTree
in interface PublicationTree
initTree
in class AbstractBasePublicationTree
ClientException
public List<PublishedDocument> getExistingPublishedDocument(DocumentLocation docLoc) throws ClientException
getExistingPublishedDocument
in interface PublicationTree
ClientException
public PublishedDocument publish(DocumentModel doc, PublicationNode targetNode) throws ClientException
publish
in interface PublicationTree
publish
in class AbstractBasePublicationTree
ClientException
public PublishedDocument publish(DocumentModel doc, PublicationNode targetNode, Map<String,String> params) throws ClientException
publish
in interface PublicationTree
publish
in class AbstractBasePublicationTree
ClientException
public void unpublish(DocumentModel doc, PublicationNode targetNode) throws ClientException
unpublish
in interface PublicationTree
ClientException
public void unpublish(PublishedDocument publishedDocument) throws ClientException
unpublish
in interface PublicationTree
ClientException
public PublicationNode getNodeByPath(String path) throws ClientException
getNodeByPath
in interface PublicationTree
ClientException
public void release()
release
in interface PublicationTree
public boolean canPublishTo(PublicationNode publicationNode) throws ClientException
PublicationTree
true
if the current user can publish to the specified publicationNode, false
otherwise.canPublishTo
in interface PublicationTree
canPublishTo
in class AbstractBasePublicationTree
true
if the current user can publish to the specified publicationNode, false
otherwise.ClientException
public boolean canUnpublish(PublishedDocument publishedDocument) throws ClientException
PublicationTree
true
if the current user can unpublish the given publishedDocument, false
otherwise.canUnpublish
in interface PublicationTree
canUnpublish
in class AbstractBasePublicationTree
true
if the current user can unpublish the given publishedDocument, false
otherwise.ClientException
public PublishedDocument wrapToPublishedDocument(DocumentModel documentModel) throws ClientException
wrapToPublishedDocument
in interface PublicationTree
wrapToPublishedDocument
in class AbstractBasePublicationTree
ClientException
public boolean isPublicationNode(DocumentModel documentModel) throws ClientException
PublicationTree
true
if the given documentModel
is a PublicationNode of the current tree, false
otherwise.isPublicationNode
in interface PublicationTree
isPublicationNode
in class AbstractBasePublicationTree
ClientException
public PublicationNode wrapToPublicationNode(DocumentModel documentModel) throws ClientException
PublicationTree
documentModel
.wrapToPublicationNode
in interface PublicationTree
wrapToPublicationNode
in class AbstractBasePublicationTree
ClientException
- if the given documentModel cannot be a PublicationNodeCopyright © 2015 Nuxeo SA. All rights reserved.