|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.ecm.platform.publisher.remoting.restProxies.RemotePublicationTreeManagerRestProxy
public class RemotePublicationTreeManagerRestProxy
HTTP facade for the RemotePublicationTreeManager service. This facade
uses a invoker to do the actual calls to the remote back-end.
| Constructor Summary | |
|---|---|
RemotePublicationTreeManagerRestProxy(java.lang.String baseURL,
java.lang.String userName,
java.lang.String password,
RemotePublisherMarshaler marshaler)
|
|
| Method Summary | |
|---|---|
boolean |
canManagePublishing(java.lang.String sid,
PublishedDocument publishedDocument)
Returns true if the current user can manage the publishing of the
given published document, ie. approve or reject the document. |
boolean |
canPublishTo(java.lang.String sid,
PublicationNode publicationNode)
Returns true if the current user can publish to the specified
publicationNode, false otherwise. |
boolean |
canUnpublish(java.lang.String sid,
PublishedDocument publishedDocument)
Returns true if the current user can unpublish the given
publishedDocument, false otherwise. |
java.util.List<PublishedDocument> |
getChildrenDocuments(PublicationNode node)
|
java.util.List<PublicationNode> |
getChildrenNodes(PublicationNode node)
|
java.util.List<PublishedDocument> |
getExistingPublishedDocument(java.lang.String sid,
DocumentLocation docLoc)
|
PublicationNode |
getNodeByPath(java.lang.String sid,
java.lang.String path)
|
PublicationNode |
getParent(PublicationNode node)
|
java.util.List<PublishedDocument> |
getPublishedDocumentInNode(PublicationNode node)
|
boolean |
hasValidationTask(java.lang.String sid,
PublishedDocument publishedDocument)
|
java.util.Map<java.lang.String,java.lang.String> |
initRemoteSession(java.lang.String treeConfigName,
java.util.Map<java.lang.String,java.lang.String> params)
|
boolean |
isPublicationNode(java.lang.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,
java.util.Map<java.lang.String,java.lang.String> params)
|
void |
release(java.lang.String sid)
|
void |
setCurrentDocument(java.lang.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(java.lang.String sid,
PublishedDocument publishedDocument)
|
void |
validatorPublishDocument(java.lang.String sid,
PublishedDocument publishedDocument,
java.lang.String comment)
A validator (the current user) approves the publication. |
void |
validatorRejectPublication(java.lang.String sid,
PublishedDocument publishedDocument,
java.lang.String comment)
A validator (the current user) rejects the publication. |
PublicationNode |
wrapToPublicationNode(java.lang.String sid,
DocumentModel documentModel)
Returns a PublicationNode for the current tree built on the given documentModel. |
PublishedDocument |
wrapToPublishedDocument(java.lang.String sid,
DocumentModel documentModel)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemotePublicationTreeManagerRestProxy(java.lang.String baseURL,
java.lang.String userName,
java.lang.String password,
RemotePublisherMarshaler marshaler)
| Method Detail |
|---|
public java.util.List<PublishedDocument> getChildrenDocuments(PublicationNode node)
throws ClientException
getChildrenDocuments in interface RemotePublicationTreeManagerClientException
public java.util.List<PublicationNode> getChildrenNodes(PublicationNode node)
throws ClientException
getChildrenNodes in interface RemotePublicationTreeManagerClientException
public java.util.List<PublishedDocument> getExistingPublishedDocument(java.lang.String sid,
DocumentLocation docLoc)
throws ClientException
getExistingPublishedDocument in interface RemotePublicationTreeManagerClientException
public PublicationNode getNodeByPath(java.lang.String sid,
java.lang.String path)
throws ClientException
getNodeByPath in interface RemotePublicationTreeManagerClientExceptionpublic PublicationNode getParent(PublicationNode node)
getParent in interface RemotePublicationTreeManager
public java.util.List<PublishedDocument> getPublishedDocumentInNode(PublicationNode node)
throws ClientException
getPublishedDocumentInNode in interface RemotePublicationTreeManagerClientException
public PublishedDocument publish(DocumentModel doc,
PublicationNode targetNode)
throws ClientException
publish in interface RemotePublicationTreeManagerClientException
public PublishedDocument publish(DocumentModel doc,
PublicationNode targetNode,
java.util.Map<java.lang.String,java.lang.String> params)
throws ClientException
publish in interface RemotePublicationTreeManagerClientException
public void unpublish(DocumentModel doc,
PublicationNode targetNode)
throws ClientException
unpublish in interface RemotePublicationTreeManagerClientException
public void unpublish(java.lang.String sid,
PublishedDocument publishedDocument)
throws ClientException
unpublish in interface RemotePublicationTreeManagerClientException
public java.util.Map<java.lang.String,java.lang.String> initRemoteSession(java.lang.String treeConfigName,
java.util.Map<java.lang.String,java.lang.String> params)
throws java.lang.Exception
initRemoteSession in interface RemotePublicationTreeManagerjava.lang.Exception
public void setCurrentDocument(java.lang.String sid,
DocumentModel currentDocument)
throws ClientException
RemotePublicationTreeManager
setCurrentDocument in interface RemotePublicationTreeManagercurrentDocument - the current document
ClientException
public void validatorPublishDocument(java.lang.String sid,
PublishedDocument publishedDocument,
java.lang.String comment)
throws PublishingException
RemotePublicationTreeManager
validatorPublishDocument in interface RemotePublicationTreeManagerpublishedDocument - the current published document that will be
approved
PublishingException
public void validatorRejectPublication(java.lang.String sid,
PublishedDocument publishedDocument,
java.lang.String comment)
throws PublishingException
RemotePublicationTreeManager
validatorRejectPublication in interface RemotePublicationTreeManagerpublishedDocument - the currently published document that will be
rejected
PublishingException
public boolean canPublishTo(java.lang.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.
ClientException
public boolean canUnpublish(java.lang.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.
ClientException
public boolean canManagePublishing(java.lang.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 RemotePublicationTreeManagerClientException
public boolean hasValidationTask(java.lang.String sid,
PublishedDocument publishedDocument)
throws ClientException
hasValidationTask in interface RemotePublicationTreeManagerClientException
public PublishedDocument wrapToPublishedDocument(java.lang.String sid,
DocumentModel documentModel)
throws ClientException
wrapToPublishedDocument in interface RemotePublicationTreeManagerClientException
public boolean isPublicationNode(java.lang.String sid,
DocumentModel documentModel)
RemotePublicationTreeManagertrue if the given documentModel is a
PublicationNode of the current tree, false otherwise.
isPublicationNode in interface RemotePublicationTreeManager
public PublicationNode wrapToPublicationNode(java.lang.String sid,
DocumentModel documentModel)
throws ClientException
RemotePublicationTreeManagerdocumentModel.
wrapToPublicationNode in interface RemotePublicationTreeManagerClientException - if the given documentModel cannot be a
PublicationNode.public void release(java.lang.String sid)
release in interface RemotePublicationTreeManager
|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||