public class RemotePublicationTreeManagerRestProxy extends Object implements RemotePublicationTreeManager
RemotePublicationTreeManager service. This facade
 uses a invoker to do the actual calls to the remote back-end.| Constructor and Description | 
|---|
| RemotePublicationTreeManagerRestProxy(String baseURL,
                                     String userName,
                                     String password,
                                     RemotePublisherMarshaler marshaler) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | canManagePublishing(String sid,
                   PublishedDocument publishedDocument)Returns  trueif the current user can manage the publishing of the
 given published document, ie. | 
| boolean | canPublishTo(String sid,
            PublicationNode publicationNode)Returns  trueif the current user can publish to the specified
 publicationNode,falseotherwise. | 
| boolean | canUnpublish(String sid,
            PublishedDocument publishedDocument)Returns  trueif the current user can unpublish the given
 publishedDocument,falseotherwise. | 
| 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  trueif the givendocumentModelis a
 PublicationNode of the current tree,falseotherwise. | 
| 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) | 
public RemotePublicationTreeManagerRestProxy(String baseURL, String userName, String password, RemotePublisherMarshaler marshaler)
public List<PublishedDocument> getChildrenDocuments(PublicationNode node) throws ClientException
getChildrenDocuments in interface RemotePublicationTreeManagerClientExceptionpublic List<PublicationNode> getChildrenNodes(PublicationNode node) throws ClientException
getChildrenNodes in interface RemotePublicationTreeManagerClientExceptionpublic List<PublishedDocument> getExistingPublishedDocument(String sid, DocumentLocation docLoc) throws ClientException
getExistingPublishedDocument in interface RemotePublicationTreeManagerClientExceptionpublic PublicationNode getNodeByPath(String sid, String path) throws ClientException
getNodeByPath in interface RemotePublicationTreeManagerClientExceptionpublic PublicationNode getParent(PublicationNode node)
getParent in interface RemotePublicationTreeManagerpublic List<PublishedDocument> getPublishedDocumentInNode(PublicationNode node) throws ClientException
getPublishedDocumentInNode in interface RemotePublicationTreeManagerClientExceptionpublic PublishedDocument publish(DocumentModel doc, PublicationNode targetNode) throws ClientException
publish in interface RemotePublicationTreeManagerClientExceptionpublic PublishedDocument publish(DocumentModel doc, PublicationNode targetNode, Map<String,String> params) throws ClientException
publish in interface RemotePublicationTreeManagerClientExceptionpublic void unpublish(DocumentModel doc, PublicationNode targetNode) throws ClientException
unpublish in interface RemotePublicationTreeManagerClientExceptionpublic void unpublish(String sid, PublishedDocument publishedDocument) throws ClientException
unpublish in interface RemotePublicationTreeManagerClientExceptionpublic Map<String,String> initRemoteSession(String treeConfigName, Map<String,String> params) throws Exception
initRemoteSession in interface RemotePublicationTreeManagerExceptionpublic void setCurrentDocument(String sid, DocumentModel currentDocument) throws ClientException
RemotePublicationTreeManagersetCurrentDocument in interface RemotePublicationTreeManagercurrentDocument - the current documentClientExceptionpublic void validatorPublishDocument(String sid, PublishedDocument publishedDocument, String comment) throws PublishingException
RemotePublicationTreeManagervalidatorPublishDocument in interface RemotePublicationTreeManagerpublishedDocument - the current published document that will be
            approvedPublishingExceptionpublic void validatorRejectPublication(String sid, PublishedDocument publishedDocument, String comment) throws PublishingException
RemotePublicationTreeManagervalidatorRejectPublication in interface RemotePublicationTreeManagerpublishedDocument - the currently published document that will be
            rejectedPublishingExceptionpublic boolean canPublishTo(String sid, PublicationNode publicationNode) throws ClientException
RemotePublicationTreeManagertrue if the current user can publish to the specified
 publicationNode, false otherwise.canPublishTo in interface RemotePublicationTreeManagertrue if the current user can publish to the specified
         publicationNode, false otherwise.ClientExceptionpublic boolean canUnpublish(String sid, PublishedDocument publishedDocument) throws ClientException
RemotePublicationTreeManagertrue if the current user can unpublish the given
 publishedDocument, false otherwise.canUnpublish in interface RemotePublicationTreeManagertrue if the current user can unpublish the given
         publishedDocument, false otherwise.ClientExceptionpublic boolean canManagePublishing(String sid, PublishedDocument publishedDocument) throws ClientException
RemotePublicationTreeManagertrue if the current user can manage the publishing of the
 given published document, ie. approve or reject the document.canManagePublishing in interface RemotePublicationTreeManagerClientExceptionpublic boolean hasValidationTask(String sid, PublishedDocument publishedDocument) throws ClientException
hasValidationTask in interface RemotePublicationTreeManagerClientExceptionpublic PublishedDocument wrapToPublishedDocument(String sid, DocumentModel documentModel) throws ClientException
wrapToPublishedDocument in interface RemotePublicationTreeManagerClientExceptionpublic boolean isPublicationNode(String sid, DocumentModel documentModel)
RemotePublicationTreeManagertrue if the given documentModel is a
 PublicationNode of the current tree, false otherwise.isPublicationNode in interface RemotePublicationTreeManagerpublic PublicationNode wrapToPublicationNode(String sid, DocumentModel documentModel) throws ClientException
RemotePublicationTreeManagerdocumentModel.wrapToPublicationNode in interface RemotePublicationTreeManagerClientException - if the given documentModel cannot be a
             PublicationNode.public void release(String sid)
release in interface RemotePublicationTreeManagerCopyright © 2014 Nuxeo SA. All rights reserved.