| 
 | Nuxeo Enterprise Platform 5.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.ecm.platform.publisher.impl.service.AbstractRemotableTree
public abstract class AbstractRemotableTree
Abstract class for PublicationTree that delegates method calls to a
 remote service.
| Field Summary | |
|---|---|
| protected  String | configName | 
| protected  boolean | released | 
| protected  String | sessionId | 
| protected  RemotePublicationTreeManager | treeService | 
| Constructor Summary | |
|---|---|
| AbstractRemotableTree() | |
| Method Summary | |
|---|---|
|  boolean | canManagePublishing(PublishedDocument publishedDocument)Returns trueif the current user can mnage the publishing of the given publisheddocument, ie. approve or reject the document. | 
|  boolean | canPublishTo(PublicationNode publicationNode)Returns trueif the current user can publish to the specified publicationNode,falseotherwise. | 
|  boolean | canUnpublish(PublishedDocument publishedDocument)Returns trueif the current user can unpublish the given publishedDocument,falseotherwise. | 
|  String | getConfigName() | 
|  List<PublishedDocument> | getExistingPublishedDocument(DocumentLocation docLoc) | 
|  PublicationNode | getNodeByPath(String path) | 
|  PublicationNode | getParent() | 
|  List<PublishedDocument> | getPublishedDocumentInNode(PublicationNode node) | 
| protected abstract  String | getServerTreeSessionId() | 
| protected abstract  String | getTargetTreeName() | 
| protected abstract  RemotePublicationTreeManager | getTreeService() | 
|  boolean | hasValidationTask(PublishedDocument publishedDocument) | 
|  boolean | isPublicationNode(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() | 
|  void | setCurrentDocument(DocumentModel currentDocument)Sets the current document on which the tree will be based, if needed. | 
| protected abstract  PublicationNode | switchToClientNode(PublicationNode node) | 
| protected  List<PublicationNode> | switchToClientNodes(List<PublicationNode> nodes) | 
| protected abstract  PublicationNode | switchToServerNode(PublicationNode node) | 
|  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) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface org.nuxeo.ecm.platform.publisher.api.PublicationTree | 
|---|
| getIconCollapsed, getIconExpanded, getTreeTitle, getTreeType, initTree | 
| Methods inherited from interface org.nuxeo.ecm.platform.publisher.api.PublicationNode | 
|---|
| getChildrenDocuments, getChildrenNodes, getName, getNodeType, getPath, getSessionId, getTitle, getTreeConfigName, getType | 
| Field Detail | 
|---|
protected RemotePublicationTreeManager treeService
protected String sessionId
protected String configName
protected boolean released
| Constructor Detail | 
|---|
public AbstractRemotableTree()
| Method Detail | 
|---|
protected abstract RemotePublicationTreeManager getTreeService()
                                                        throws ClientException
ClientExceptionprotected abstract String getTargetTreeName()
protected abstract String getServerTreeSessionId()
public List<PublishedDocument> getExistingPublishedDocument(DocumentLocation docLoc)
                                                     throws ClientException
getExistingPublishedDocument in interface PublicationTreeClientException
public List<PublishedDocument> getPublishedDocumentInNode(PublicationNode node)
                                                   throws ClientException
getPublishedDocumentInNode in interface PublicationTreeClientException
public PublishedDocument publish(DocumentModel doc,
                                 PublicationNode targetNode)
                          throws ClientException
publish in interface PublicationTreeClientException
public PublishedDocument publish(DocumentModel doc,
                                 PublicationNode targetNode,
                                 Map<String,String> params)
                          throws ClientException
publish in interface PublicationTreeClientException
public void unpublish(DocumentModel doc,
                      PublicationNode targetNode)
               throws ClientException
unpublish in interface PublicationTreeClientException
public void unpublish(PublishedDocument publishedDocument)
               throws ClientException
unpublish in interface PublicationTreeClientException
protected abstract PublicationNode switchToClientNode(PublicationNode node)
                                               throws ClientException
ClientExceptionprotected abstract PublicationNode switchToServerNode(PublicationNode node)
protected List<PublicationNode> switchToClientNodes(List<PublicationNode> nodes)
                                             throws ClientException
ClientException
public PublicationNode getNodeByPath(String path)
                              throws ClientException
getNodeByPath in interface PublicationTreeClientExceptionpublic String getConfigName()
getConfigName in interface PublicationTreepublic PublicationNode getParent()
getParent in interface PublicationNode
public 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 document
ClientExceptionpublic void release()
release in interface PublicationTree
public void validatorPublishDocument(PublishedDocument publishedDocument,
                                     String comment)
                              throws ClientException
PublicationTree
validatorPublishDocument in interface PublicationTreepublishedDocument - the current published document that will be
            approved
PublishingException
ClientException
public void validatorRejectPublication(PublishedDocument publishedDocument,
                                       String comment)
                                throws ClientException
PublicationTree
validatorRejectPublication in interface PublicationTreepublishedDocument - the currently published document that will be
            rejected
PublishingException
ClientException
public 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.
ClientException
public 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.
ClientException
public boolean hasValidationTask(PublishedDocument publishedDocument)
                          throws ClientException
hasValidationTask in interface PublicationTreeClientException
public boolean canManagePublishing(PublishedDocument publishedDocument)
                            throws ClientException
PublicationTreetrue if the current user can mnage the publishing of the given publisheddocument, ie. approve or reject the document.
canManagePublishing in interface PublicationTreeClientException
public PublishedDocument wrapToPublishedDocument(DocumentModel documentModel)
                                          throws ClientException
wrapToPublishedDocument in interface PublicationTreeClientException
public boolean isPublicationNode(DocumentModel documentModel)
                          throws ClientException
PublicationTreetrue if the given documentModel is a PublicationNode of the current tree,
 false otherwise.
isPublicationNode in interface PublicationTreeClientException
public PublicationNode wrapToPublicationNode(DocumentModel documentModel)
                                      throws ClientException
PublicationTreedocumentModel.
wrapToPublicationNode in interface PublicationTreeClientException - if the given documentModel cannot be a PublicationNode| 
 | Nuxeo Enterprise Platform 5.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||