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
ClientException
List<PublicationNode> getChildrenNodes(PublicationNode node) throws ClientException
ClientException
PublicationNode getParent(PublicationNode node)
PublicationNode getNodeByPath(String sid, String path) throws ClientException
ClientException
List<PublishedDocument> getExistingPublishedDocument(String sid, DocumentLocation docLoc) throws ClientException
ClientException
List<PublishedDocument> getPublishedDocumentInNode(PublicationNode node) throws ClientException
ClientException
PublishedDocument publish(DocumentModel doc, PublicationNode targetNode) throws ClientException
ClientException
PublishedDocument publish(DocumentModel doc, PublicationNode targetNode, Map<String,String> params) throws ClientException
ClientException
void unpublish(DocumentModel doc, PublicationNode targetNode) throws ClientException
ClientException
void unpublish(String sid, PublishedDocument publishedDocument) throws ClientException
ClientException
Map<String,String> initRemoteSession(String treeConfigName, Map<String,String> params) throws ClientException
ClientException
void setCurrentDocument(String sid, DocumentModel currentDocument) throws ClientException
currentDocument
- the current documentClientException
void release(String sid)
void validatorPublishDocument(String sid, PublishedDocument publishedDocument, String comment) throws ClientException
publishedDocument
- the current published document that will be approvedcomment
- ClientException
void validatorRejectPublication(String sid, PublishedDocument publishedDocument, String comment) throws ClientException
publishedDocument
- the currently published document that will be rejectedcomment
- ClientException
boolean 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.ClientException
boolean 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.ClientException
boolean hasValidationTask(String sid, PublishedDocument publishedDocument) throws ClientException
ClientException
boolean 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.ClientException
PublishedDocument wrapToPublishedDocument(String sid, DocumentModel documentModel) throws ClientException
ClientException
boolean isPublicationNode(String sid, DocumentModel documentModel) throws ClientException
true
if the given documentModel
is a PublicationNode of the current tree, false
otherwise.ClientException
PublicationNode wrapToPublicationNode(String sid, DocumentModel documentModel) throws ClientException
documentModel
.ClientException
- if the given documentModel cannot be a PublicationNode.Copyright © 2015 Nuxeo SA. All rights reserved.