public interface RemotePublicationTreeManager
Modifier and Type | Method and Description |
---|---|
boolean |
canManagePublishing(String sid,
PublishedDocument publishedDocument)
Returns
true if the current user can manage the publishing of the given published document, ie. |
boolean |
canPublishTo(String sid,
PublicationNode publicationNode)
Returns
true if the current user can publish to the specified publicationNode, false otherwise. |
boolean |
canUnpublish(String sid,
PublishedDocument publishedDocument)
Returns
true if the current user can unpublish the given publishedDocument, false otherwise. |
List<PublishedDocument> |
getChildrenDocuments(PublicationNode node) |
List<PublicationNode> |
getChildrenNodes(PublicationNode node) |
List<PublishedDocument> |
getExistingPublishedDocument(String sid,
DocumentLocation docLoc) |
PublicationNode |
getNodeByPath(String sid,
String path) |
PublicationNode |
getParent(PublicationNode node) |
List<PublishedDocument> |
getPublishedDocumentInNode(PublicationNode node) |
boolean |
hasValidationTask(String sid,
PublishedDocument publishedDocument) |
Map<String,String> |
initRemoteSession(String treeConfigName,
Map<String,String> params) |
boolean |
isPublicationNode(String sid,
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(String sid) |
void |
setCurrentDocument(String sid,
DocumentModel currentDocument)
Sets the current document on which the tree will be based, if needed.
|
void |
unpublish(DocumentModel doc,
PublicationNode targetNode) |
void |
unpublish(String sid,
PublishedDocument publishedDocument) |
void |
validatorPublishDocument(String sid,
PublishedDocument publishedDocument,
String comment)
A validator (the current user) approves the publication.
|
void |
validatorRejectPublication(String sid,
PublishedDocument publishedDocument,
String comment)
A validator (the current user) rejects the publication.
|
PublicationNode |
wrapToPublicationNode(String sid,
DocumentModel documentModel)
Returns a PublicationNode for the current tree built on the given
documentModel . |
PublishedDocument |
wrapToPublishedDocument(String sid,
DocumentModel documentModel) |
List<PublishedDocument> getChildrenDocuments(PublicationNode node)
List<PublicationNode> getChildrenNodes(PublicationNode node)
PublicationNode getParent(PublicationNode node)
PublicationNode getNodeByPath(String sid, String path)
List<PublishedDocument> getExistingPublishedDocument(String sid, DocumentLocation docLoc)
List<PublishedDocument> getPublishedDocumentInNode(PublicationNode node)
PublishedDocument publish(DocumentModel doc, PublicationNode targetNode)
PublishedDocument publish(DocumentModel doc, PublicationNode targetNode, Map<String,String> params)
void unpublish(DocumentModel doc, PublicationNode targetNode)
void unpublish(String sid, PublishedDocument publishedDocument)
Map<String,String> initRemoteSession(String treeConfigName, Map<String,String> params)
void setCurrentDocument(String sid, DocumentModel currentDocument)
currentDocument
- the current documentvoid validatorPublishDocument(String sid, PublishedDocument publishedDocument, String comment)
publishedDocument
- the current published document that will be approvedcomment
- void validatorRejectPublication(String sid, PublishedDocument publishedDocument, String comment)
publishedDocument
- the currently published document that will be rejectedcomment
- boolean canPublishTo(String sid, PublicationNode publicationNode)
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.boolean canUnpublish(String sid, PublishedDocument publishedDocument)
true
if the current user can unpublish the given publishedDocument, false
otherwise.true
if the current user can unpublish the given publishedDocument, false
otherwise.boolean hasValidationTask(String sid, PublishedDocument publishedDocument)
boolean canManagePublishing(String sid, PublishedDocument publishedDocument)
true
if the current user can manage the publishing of the given published document, ie. approve
or reject the document.PublishedDocument wrapToPublishedDocument(String sid, DocumentModel documentModel)
boolean isPublicationNode(String sid, DocumentModel documentModel)
true
if the given documentModel
is a PublicationNode of the current tree, false
otherwise.PublicationNode wrapToPublicationNode(String sid, DocumentModel documentModel)
documentModel
.Copyright © 2016 Nuxeo SA. All rights reserved.