public interface PublicationTree extends PublicationNode
| Modifier and Type | Method and Description |
|---|---|
boolean |
canManagePublishing(PublishedDocument publishedDocument)
Returns
true if the current user can manage the publishing of the given publishedDocument,
ie approve or reject the document. |
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. |
String |
getConfigName() |
List<PublishedDocument> |
getExistingPublishedDocument(DocumentLocation docLoc) |
String |
getIconCollapsed() |
String |
getIconExpanded() |
PublicationNode |
getNodeByPath(String path) |
List<PublishedDocument> |
getPublishedDocumentInNode(PublicationNode node) |
String |
getTreeTitle() |
String |
getTreeType() |
boolean |
hasValidationTask(PublishedDocument publishedDocument) |
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 |
setCurrentDocument(DocumentModel currentDocument)
Sets the current document on which the tree will be based, if needed.
|
void |
unpublish(DocumentModel doc,
PublicationNode targetNode) |
void |
unpublish(PublishedDocument publishedDocument) |
void |
validatorPublishDocument(PublishedDocument publishedDocument,
String comment)
A validator (the current user) approves the publication.
|
void |
validatorRejectPublication(PublishedDocument publishedDocument,
String comment)
A validator (the current user) rejects the publication.
|
PublicationNode |
wrapToPublicationNode(DocumentModel documentModel)
Returns a PublicationNode for the current tree built on the given
documentModel. |
PublishedDocument |
wrapToPublishedDocument(DocumentModel documentModel) |
getChildrenDocuments, getChildrenNodes, getName, getNodeType, getParent, getPath, getSessionId, getTitle, getTreeConfigName, getTypePublicationNode getNodeByPath(String path) throws ClientException
ClientExceptionPublishedDocument publish(DocumentModel doc, PublicationNode targetNode) throws ClientException
ClientExceptionPublishedDocument publish(DocumentModel doc, PublicationNode targetNode, Map<String,String> params) throws ClientException
ClientExceptionvoid unpublish(DocumentModel doc, PublicationNode targetNode) throws ClientException
ClientExceptionvoid unpublish(PublishedDocument publishedDocument) throws ClientException
ClientExceptionList<PublishedDocument> getExistingPublishedDocument(DocumentLocation docLoc) throws ClientException
ClientExceptionList<PublishedDocument> getPublishedDocumentInNode(PublicationNode node) throws ClientException
ClientExceptionString getConfigName()
String getTreeType()
String getTreeTitle()
void initTree(String sid, CoreSession coreSession, Map<String,String> parameters, PublishedDocumentFactory factory, String configName, String title) throws ClientException
ClientExceptionvoid setCurrentDocument(DocumentModel currentDocument) throws ClientException
Can be useful for some implementations that need to know on which document the user is.
currentDocument - the current documentClientExceptionvoid release()
String getIconExpanded()
String getIconCollapsed()
void validatorPublishDocument(PublishedDocument publishedDocument, String comment) throws ClientException
publishedDocument - the current published document that will be
approvedcomment - ClientExceptionvoid validatorRejectPublication(PublishedDocument publishedDocument, String comment) throws ClientException
publishedDocument - the currently published document that will be
rejectedcomment - ClientExceptionboolean canPublishTo(PublicationNode publicationNode) throws ClientException
true if the current user can publish to the specified publicationNode,
false otherwise.true if the current user can publish to the specified publicationNode, false otherwise.ClientExceptionboolean canUnpublish(PublishedDocument publishedDocument) throws ClientException
true if the current user can unpublish the given publishedDocument,
false otherwise.true if the current user can unpublish the given publishedDocument, false otherwise.ClientExceptionboolean hasValidationTask(PublishedDocument publishedDocument) throws ClientException
ClientExceptionboolean canManagePublishing(PublishedDocument publishedDocument) throws ClientException
true if the current user can manage the publishing of the given publishedDocument,
ie approve or reject the document.ClientExceptionPublishedDocument wrapToPublishedDocument(DocumentModel documentModel) throws ClientException
ClientExceptionboolean isPublicationNode(DocumentModel documentModel) throws ClientException
true if the given documentModel is a PublicationNode of the current tree,
false otherwise.ClientExceptionPublicationNode wrapToPublicationNode(DocumentModel documentModel) throws ClientException
documentModel.ClientException - if the given documentModel cannot be a PublicationNodeCopyright © 2012 Nuxeo SA. All Rights Reserved.