public abstract class AbstractRemotableTree extends Object implements PublicationTree
PublicationTree that delegates method calls to a
remote service.| Constructor and Description |
|---|
AbstractRemotableTree() |
| 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) |
PublicationNode |
getNodeByPath(String path) |
PublicationNode |
getParent() |
List<PublishedDocument> |
getPublishedDocumentInNode(PublicationNode node) |
boolean |
hasValidationTask(PublishedDocument publishedDocument) |
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) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIconCollapsed, getIconExpanded, getTreeTitle, getTreeType, initTreegetChildrenDocuments, getChildrenNodes, getName, getNodeType, getPath, getSessionId, getTitle, getTreeConfigName, getTypepublic List<PublishedDocument> getExistingPublishedDocument(DocumentLocation docLoc) throws ClientException
getExistingPublishedDocument in interface PublicationTreeClientExceptionpublic List<PublishedDocument> getPublishedDocumentInNode(PublicationNode node) throws ClientException
getPublishedDocumentInNode in interface PublicationTreeClientExceptionpublic PublishedDocument publish(DocumentModel doc, PublicationNode targetNode) throws ClientException
publish in interface PublicationTreeClientExceptionpublic PublishedDocument publish(DocumentModel doc, PublicationNode targetNode, Map<String,String> params) throws ClientException
publish in interface PublicationTreeClientExceptionpublic 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 String getConfigName()
getConfigName in interface PublicationTreepublic PublicationNode getParent()
getParent in interface PublicationNodepublic void setCurrentDocument(DocumentModel currentDocument) throws ClientException
PublicationTreeCan be useful for some implementations that need to know on which document the user is.
setCurrentDocument in interface PublicationTreecurrentDocument - the current documentClientExceptionpublic void release()
release in interface PublicationTreepublic void validatorPublishDocument(PublishedDocument publishedDocument, String comment) throws ClientException
PublicationTreevalidatorPublishDocument in interface PublicationTreepublishedDocument - the current published document that will be
approvedClientExceptionpublic void validatorRejectPublication(PublishedDocument publishedDocument, String comment) throws ClientException
PublicationTreevalidatorRejectPublication in interface PublicationTreepublishedDocument - the currently published document that will be
rejectedClientExceptionpublic boolean canPublishTo(PublicationNode publicationNode) throws ClientException
PublicationTreetrue if the current user can publish to the specified publicationNode,
false otherwise.canPublishTo in interface PublicationTreetrue 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 PublicationTreetrue if the current user can unpublish the given publishedDocument, false otherwise.ClientExceptionpublic boolean hasValidationTask(PublishedDocument publishedDocument) throws ClientException
hasValidationTask in interface PublicationTreeClientExceptionpublic boolean canManagePublishing(PublishedDocument publishedDocument) throws ClientException
PublicationTreetrue if the current user can manage the publishing of the given publishedDocument,
ie approve or reject the document.canManagePublishing in interface PublicationTreeClientExceptionpublic PublishedDocument wrapToPublishedDocument(DocumentModel documentModel) throws ClientException
wrapToPublishedDocument in interface PublicationTreeClientExceptionpublic boolean isPublicationNode(DocumentModel documentModel) throws ClientException
PublicationTreetrue if the given documentModel is a PublicationNode of the current tree,
false otherwise.isPublicationNode in interface PublicationTreeClientExceptionpublic PublicationNode wrapToPublicationNode(DocumentModel documentModel) throws ClientException
PublicationTreedocumentModel.wrapToPublicationNode in interface PublicationTreeClientException - if the given documentModel cannot be a PublicationNodeCopyright © 2014 Nuxeo SA. All rights reserved.