Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.publisher.remoting.client
Class ClientRemotePublicationTree

java.lang.Object
  extended by org.nuxeo.ecm.platform.publisher.impl.service.AbstractRemotableTree
      extended by org.nuxeo.ecm.platform.publisher.remoting.client.ClientRemotePublicationTree
All Implemented Interfaces:
java.io.Serializable, PublicationNode, PublicationTree

public class ClientRemotePublicationTree
extends AbstractRemotableTree
implements PublicationTree

PublicationTree implementation that points to a remote tree on a remote server

Author:
tiry
See Also:
Serialized Form

Field Summary
static java.lang.String ICON_COLLAPSED_KEY
           
static java.lang.String ICON_EXPANDED_KEY
           
static java.lang.String TITLE_KEY
           
 
Constructor Summary
ClientRemotePublicationTree()
           
 
Method Summary
 java.util.List<PublishedDocument> getChildrenDocuments()
           
 java.util.List<PublicationNode> getChildrenNodes()
           
 java.util.List<PublishedDocument> getExistingPublishedDocument(DocumentLocation docLoc)
           
 java.lang.String getIconCollapsed()
           
 java.lang.String getIconExpanded()
           
 java.lang.String getName()
           
 java.lang.String getNodeType()
           
 java.lang.String getPath()
           
 java.lang.String getRemoteSessionId()
           
 java.lang.String getSessionId()
           
 java.lang.String getTitle()
           
 java.lang.String getTreeConfigName()
           
 java.lang.String getTreeTitle()
           
 java.lang.String getTreeType()
           
 java.lang.String getType()
           
 void initTree(java.lang.String sid, CoreSession coreSession, java.util.Map<java.lang.String,java.lang.String> parameters, PublishedDocumentFactory factory, java.lang.String configName, java.lang.String title)
           
 PublishedDocument publish(DocumentModel doc, PublicationNode targetNode, java.util.Map<java.lang.String,java.lang.String> params)
           
 
Methods inherited from class org.nuxeo.ecm.platform.publisher.impl.service.AbstractRemotableTree
canManagePublishing, canPublishTo, canUnpublish, getConfigName, getNodeByPath, getParent, getPublishedDocumentInNode, hasValidationTask, isPublicationNode, publish, release, setCurrentDocument, unpublish, unpublish, validatorPublishDocument, validatorRejectPublication, wrapToPublicationNode, wrapToPublishedDocument
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuxeo.ecm.platform.publisher.api.PublicationTree
canManagePublishing, canPublishTo, canUnpublish, getConfigName, getNodeByPath, getPublishedDocumentInNode, hasValidationTask, isPublicationNode, publish, release, setCurrentDocument, unpublish, unpublish, validatorPublishDocument, validatorRejectPublication, wrapToPublicationNode, wrapToPublishedDocument
 
Methods inherited from interface org.nuxeo.ecm.platform.publisher.api.PublicationNode
getParent
 

Field Detail

ICON_EXPANDED_KEY

public static final java.lang.String ICON_EXPANDED_KEY
See Also:
Constant Field Values

ICON_COLLAPSED_KEY

public static final java.lang.String ICON_COLLAPSED_KEY
See Also:
Constant Field Values

TITLE_KEY

public static final java.lang.String TITLE_KEY
See Also:
Constant Field Values
Constructor Detail

ClientRemotePublicationTree

public ClientRemotePublicationTree()
Method Detail

initTree

public void initTree(java.lang.String sid,
                     CoreSession coreSession,
                     java.util.Map<java.lang.String,java.lang.String> parameters,
                     PublishedDocumentFactory factory,
                     java.lang.String configName,
                     java.lang.String title)
              throws ClientException
Specified by:
initTree in interface PublicationTree
Throws:
ClientException

getChildrenDocuments

public java.util.List<PublishedDocument> getChildrenDocuments()
                                                       throws ClientException
Specified by:
getChildrenDocuments in interface PublicationNode
Throws:
ClientException

getPath

public java.lang.String getPath()
Specified by:
getPath in interface PublicationNode

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface PublicationNode

getTreeTitle

public java.lang.String getTreeTitle()
Specified by:
getTreeTitle in interface PublicationTree

getName

public java.lang.String getName()
Specified by:
getName in interface PublicationNode

getTreeType

public java.lang.String getTreeType()
Specified by:
getTreeType in interface PublicationTree

getNodeType

public java.lang.String getNodeType()
Specified by:
getNodeType in interface PublicationNode

getTreeConfigName

public java.lang.String getTreeConfigName()
Specified by:
getTreeConfigName in interface PublicationNode

getSessionId

public java.lang.String getSessionId()
Specified by:
getSessionId in interface PublicationNode

getRemoteSessionId

public java.lang.String getRemoteSessionId()

publish

public PublishedDocument publish(DocumentModel doc,
                                 PublicationNode targetNode,
                                 java.util.Map<java.lang.String,java.lang.String> params)
                          throws ClientException
Specified by:
publish in interface PublicationTree
Overrides:
publish in class AbstractRemotableTree
Throws:
ClientException

getChildrenNodes

public java.util.List<PublicationNode> getChildrenNodes()
                                                 throws ClientException
Specified by:
getChildrenNodes in interface PublicationNode
Throws:
ClientException

getType

public java.lang.String getType()
Specified by:
getType in interface PublicationNode

getExistingPublishedDocument

public java.util.List<PublishedDocument> getExistingPublishedDocument(DocumentLocation docLoc)
                                                               throws ClientException
Specified by:
getExistingPublishedDocument in interface PublicationTree
Overrides:
getExistingPublishedDocument in class AbstractRemotableTree
Throws:
ClientException

getIconExpanded

public java.lang.String getIconExpanded()
Specified by:
getIconExpanded in interface PublicationTree

getIconCollapsed

public java.lang.String getIconCollapsed()
Specified by:
getIconCollapsed in interface PublicationTree

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.