Nuxeo ECM Projects 5.4.3-SNAPSHOT

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:
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 String ICON_COLLAPSED_KEY
           
static String ICON_EXPANDED_KEY
           
static String TITLE_KEY
           
 
Constructor Summary
ClientRemotePublicationTree()
           
 
Method Summary
 List<PublishedDocument> getChildrenDocuments()
           
 List<PublicationNode> getChildrenNodes()
           
 List<PublishedDocument> getExistingPublishedDocument(DocumentLocation docLoc)
           
 String getIconCollapsed()
           
 String getIconExpanded()
           
 String getName()
           
 String getNodeType()
           
 String getPath()
           
 String getRemoteSessionId()
           
 String getSessionId()
           
 String getTitle()
           
 String getTreeConfigName()
           
 String getTreeTitle()
           
 String getTreeType()
           
 String getType()
           
 void initTree(String sid, CoreSession coreSession, Map<String,String> parameters, PublishedDocumentFactory factory, String configName, String title)
           
 PublishedDocument publish(DocumentModel doc, PublicationNode targetNode, Map<String,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 String ICON_EXPANDED_KEY
See Also:
Constant Field Values

ICON_COLLAPSED_KEY

public static final String ICON_COLLAPSED_KEY
See Also:
Constant Field Values

TITLE_KEY

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

ClientRemotePublicationTree

public ClientRemotePublicationTree()
Method Detail

initTree

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

getChildrenDocuments

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

getPath

public String getPath()
Specified by:
getPath in interface PublicationNode

getTitle

public String getTitle()
Specified by:
getTitle in interface PublicationNode

getTreeTitle

public String getTreeTitle()
Specified by:
getTreeTitle in interface PublicationTree

getName

public String getName()
Specified by:
getName in interface PublicationNode

getTreeType

public String getTreeType()
Specified by:
getTreeType in interface PublicationTree

getNodeType

public String getNodeType()
Specified by:
getNodeType in interface PublicationNode

getTreeConfigName

public String getTreeConfigName()
Specified by:
getTreeConfigName in interface PublicationNode

getSessionId

public String getSessionId()
Specified by:
getSessionId in interface PublicationNode

getRemoteSessionId

public String getRemoteSessionId()

publish

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

getChildrenNodes

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

getType

public String getType()
Specified by:
getType in interface PublicationNode

getExistingPublishedDocument

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

getIconExpanded

public String getIconExpanded()
Specified by:
getIconExpanded in interface PublicationTree

getIconCollapsed

public String getIconCollapsed()
Specified by:
getIconCollapsed in interface PublicationTree

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.