public class SectionPublicationTree extends AbstractBasePublicationTree implements PublicationTree
PublicationTree using the Core Sections.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  trueif the current user can publish to the specified publicationNode,falseotherwise. | 
| boolean | canUnpublish(PublishedDocument publishedDocument)Returns  trueif the current user can unpublish the given publishedDocument,falseotherwise. | 
| 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  trueif the givendocumentModelis a PublicationNode of the current tree,falseotherwise. | 
| 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, validatorRejectPublicationequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanManagePublishing, getConfigName, getIconCollapsed, getIconExpanded, getPublishedDocumentInNode, getTreeTitle, getTreeType, hasValidationTask, setCurrentDocument, validatorPublishDocument, validatorRejectPublicationgetChildrenDocuments, getChildrenNodes, getName, getNodeType, getParent, getPath, getSessionId, getTitle, getTreeConfigName, getTypepublic void initTree(String sid, CoreSession coreSession, Map<String,String> parameters, PublishedDocumentFactory factory, String configName, String title) throws ClientException
initTree in interface PublicationTreeinitTree in class AbstractBasePublicationTreeClientExceptionpublic List<PublishedDocument> getExistingPublishedDocument(DocumentLocation docLoc) throws ClientException
getExistingPublishedDocument in interface PublicationTreeClientExceptionpublic PublishedDocument publish(DocumentModel doc, PublicationNode targetNode) throws ClientException
publish in interface PublicationTreepublish in class AbstractBasePublicationTreeClientExceptionpublic PublishedDocument publish(DocumentModel doc, PublicationNode targetNode, Map<String,String> params) throws ClientException
publish in interface PublicationTreepublish in class AbstractBasePublicationTreeClientExceptionpublic void unpublish(DocumentModel doc, PublicationNode targetNode) throws ClientException
unpublish in interface PublicationTreeClientExceptionpublic void unpublish(PublishedDocument publishedDocument) throws ClientException
unpublish in interface PublicationTreeClientExceptionpublic PublicationNode getNodeByPath(String path) throws ClientException
getNodeByPath in interface PublicationTreeClientExceptionpublic void release()
release in interface PublicationTreepublic boolean canPublishTo(PublicationNode publicationNode) throws ClientException
PublicationTreetrue if the current user can publish to the specified publicationNode,
 false otherwise.canPublishTo in interface PublicationTreecanPublishTo in class AbstractBasePublicationTreetrue if the current user can publish to the specified publicationNode, false otherwise.ClientExceptionpublic boolean canUnpublish(PublishedDocument publishedDocument) throws ClientException
PublicationTreetrue if the current user can unpublish the given publishedDocument,
 false otherwise.canUnpublish in interface PublicationTreecanUnpublish in class AbstractBasePublicationTreetrue if the current user can unpublish the given publishedDocument, false otherwise.ClientExceptionpublic PublishedDocument wrapToPublishedDocument(DocumentModel documentModel) throws ClientException
wrapToPublishedDocument in interface PublicationTreewrapToPublishedDocument in class AbstractBasePublicationTreeClientExceptionpublic boolean isPublicationNode(DocumentModel documentModel) throws ClientException
PublicationTreetrue if the given documentModel is a PublicationNode of the current tree,
 false otherwise.isPublicationNode in interface PublicationTreeisPublicationNode in class AbstractBasePublicationTreeClientExceptionpublic PublicationNode wrapToPublicationNode(DocumentModel documentModel) throws ClientException
PublicationTreedocumentModel.wrapToPublicationNode in interface PublicationTreewrapToPublicationNode in class AbstractBasePublicationTreeClientException - if the given documentModel cannot be a PublicationNodeCopyright © 2012 Nuxeo SA. All Rights Reserved.