Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.publisher.impl.localfs
Class LocalFSPublicationTree

java.lang.Object
  extended by org.nuxeo.ecm.platform.publisher.api.AbstractBasePublicationTree
      extended by org.nuxeo.ecm.platform.publisher.impl.localfs.LocalFSPublicationTree
All Implemented Interfaces:
Serializable, PublicationNode, PublicationTree

public class LocalFSPublicationTree
extends AbstractBasePublicationTree
implements PublicationTree

See Also:
Serialized Form

Field Summary
static String INDEX_FILENAME
           
static String INDEX_FILENAME_TMP
           
 
Fields inherited from class org.nuxeo.ecm.platform.publisher.api.AbstractBasePublicationTree
ICON_COLLAPSED_KEY, ICON_EXPANDED_KEY, ROOT_PATH_KEY, TITLE_KEY
 
Constructor Summary
LocalFSPublicationTree()
           
 
Method Summary
 List<PublishedDocument> getExistingPublishedDocument(DocumentLocation docLoc)
           
 PublicationNode getNodeByPath(String path)
           
 void initTree(String sid, CoreSession coreSession, Map<String,String> parameters, PublishedDocumentFactory factory, String configName, String title)
           
 PublishedDocument publish(DocumentModel doc, PublicationNode targetNode)
           
 PublishedDocument publish(DocumentModel doc, PublicationNode targetNode, Map<String,String> params)
           
 void release()
           
 void unpublish(DocumentModel doc, PublicationNode targetNode)
           
 void unpublish(PublishedDocument pubDoc)
           
 
Methods inherited from class org.nuxeo.ecm.platform.publisher.api.AbstractBasePublicationTree
canManagePublishing, canPublishTo, canUnpublish, getChildrenDocuments, getChildrenNodes, getConfigName, getIconCollapsed, getIconExpanded, getName, getNodeType, getParent, getPath, getPublishedDocumentInNode, getSessionId, getTitle, getTreeConfigName, getTreeTitle, getTreeType, getType, hasValidationTask, isPublicationNode, setCurrentDocument, 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, getIconCollapsed, getIconExpanded, getPublishedDocumentInNode, getTreeTitle, getTreeType, hasValidationTask, isPublicationNode, setCurrentDocument, validatorPublishDocument, validatorRejectPublication, wrapToPublicationNode, wrapToPublishedDocument
 
Methods inherited from interface org.nuxeo.ecm.platform.publisher.api.PublicationNode
getChildrenDocuments, getChildrenNodes, getName, getNodeType, getParent, getPath, getSessionId, getTitle, getTreeConfigName, getType
 

Field Detail

INDEX_FILENAME

public static final String INDEX_FILENAME
See Also:
Constant Field Values

INDEX_FILENAME_TMP

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

LocalFSPublicationTree

public LocalFSPublicationTree()
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
Overrides:
initTree in class AbstractBasePublicationTree
Throws:
ClientException

getExistingPublishedDocument

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

getNodeByPath

public PublicationNode getNodeByPath(String path)
                              throws ClientException
Specified by:
getNodeByPath in interface PublicationTree
Throws:
ClientException

publish

public PublishedDocument publish(DocumentModel doc,
                                 PublicationNode targetNode)
                          throws ClientException
Specified by:
publish in interface PublicationTree
Overrides:
publish in class AbstractBasePublicationTree
Throws:
ClientException

publish

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

unpublish

public void unpublish(DocumentModel doc,
                      PublicationNode targetNode)
               throws ClientException
Specified by:
unpublish in interface PublicationTree
Throws:
ClientException

unpublish

public void unpublish(PublishedDocument pubDoc)
               throws ClientException
Specified by:
unpublish in interface PublicationTree
Throws:
ClientException

release

public void release()
Specified by:
release in interface PublicationTree

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.