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) throws ClientException
ClientExceptionList<PublicationNode> getChildrenNodes(PublicationNode node) throws ClientException
ClientExceptionPublicationNode getParent(PublicationNode node)
PublicationNode getNodeByPath(String sid, String path) throws ClientException
ClientExceptionList<PublishedDocument> getExistingPublishedDocument(String sid, DocumentLocation docLoc) throws ClientException
ClientExceptionList<PublishedDocument> getPublishedDocumentInNode(PublicationNode node) 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(String sid, PublishedDocument publishedDocument) throws ClientException
ClientExceptionMap<String,String> initRemoteSession(String treeConfigName, Map<String,String> params) throws Exception
Exceptionvoid setCurrentDocument(String sid, DocumentModel currentDocument) throws ClientException
currentDocument - the current documentClientExceptionvoid release(String sid)
void validatorPublishDocument(String sid, PublishedDocument publishedDocument, String comment) throws ClientException
publishedDocument - the current published document that will be
approvedcomment - ClientExceptionvoid validatorRejectPublication(String sid, PublishedDocument publishedDocument, String comment) throws ClientException
publishedDocument - the currently published document that will be
rejectedcomment - ClientExceptionboolean canPublishTo(String sid, 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(String sid, 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(String sid, PublishedDocument publishedDocument) throws ClientException
ClientExceptionboolean canManagePublishing(String sid, PublishedDocument publishedDocument) throws ClientException
true if the current user can manage the publishing of the
given published document, ie. approve or reject the document.ClientExceptionPublishedDocument wrapToPublishedDocument(String sid, DocumentModel documentModel) throws ClientException
ClientExceptionboolean isPublicationNode(String sid, DocumentModel documentModel) throws ClientException
true if the given documentModel is a
PublicationNode of the current tree, false otherwise.ClientExceptionPublicationNode wrapToPublicationNode(String sid, DocumentModel documentModel) throws ClientException
documentModel.ClientException - if the given documentModel cannot be a
PublicationNode.Copyright © 2013 Nuxeo SA. All Rights Reserved.