Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.publisher.web
Class PublishActionsBean

java.lang.Object
  extended by org.nuxeo.ecm.platform.publisher.web.AbstractPublishActions
      extended by org.nuxeo.ecm.platform.publisher.web.PublishActionsBean
All Implemented Interfaces:
Serializable

@Name(value="publishActions")
@Scope(value=CONVERSATION)
public class PublishActionsBean
extends AbstractPublishActions
implements Serializable

This Seam bean manages the publishing tab.

Author:
Thomas Roger
See Also:
Serialized Form

Nested Class Summary
 class PublishActionsBean.ApproverWithoutRestriction
           
static class PublishActionsBean.PublicationTreeInformation
           
 
Constructor Summary
PublishActionsBean()
           
 
Method Summary
 String approveDocument()
           
 boolean canManagePublishing()
           
 boolean canPublishTo(PublicationNode publicationNode)
           
 boolean canUnpublish(PublishedDocument publishedDocument)
           
 void create()
           
 void destroy()
           
 void documentChanged()
           
 String doPublish(PublicationNode publicationNode)
           
 String doPublish(PublicationTree tree, PublicationNode publicationNode)
           
 List<PublishActionsBean.PublicationTreeInformation> getAvailablePublicationTrees()
           
 PublicationTree getCurrentPublicationTreeForPublishing()
           
 String getCurrentPublicationTreeIconCollapsed()
           
 String getCurrentPublicationTreeIconExpanded()
           
 String getCurrentPublicationTreeNameForPublishing()
           
 DocumentModel getDocumentModelFor(String path)
           
 String getDomainName(String treeName)
           
 String getFormattedPath(String path)
           
 Map<String,String> getPublicationParameters()
           
 List<PublishedDocument> getPublishedDocuments()
           
 List<PublishedDocument> getPublishedDocumentsFor(String treeName)
           
 String getPublishingComment()
           
 Set<String> getSectionTypes()
           
 boolean hasReadRight(String documentPath)
           
 boolean hasValidationTask()
           
 boolean isFileSystemPublishedDocument(PublishedDocument publishedDocument)
           
 boolean isLocalPublishedDocument(PublishedDocument publishedDocument)
           
 boolean isPending()
           
 boolean isPublishedDocument()
           
 boolean isRemotePublishedDocument(PublishedDocument publishedDocument)
           
static void notifyEvent(CoreSession session, String eventId, Map<String,Serializable> properties, String comment, String category, DocumentModel dm)
           
 void notifyEvent(String eventId, Map<String,Serializable> properties, String comment, String category, DocumentModel dm)
           
 String publishDocumentList(String listName)
           
 String publishWorkList()
           
 String rejectDocument()
           
 void setCurrentPublicationTreeNameForPublishing(String currentPublicationTreeNameForPublishing)
           
 void setPublishingComment(String publishingComment)
           
 String unPublish(PublishedDocument publishedDocument)
           
 void unpublishDocumentsFromCurrentSelection()
           
 
Methods inherited from class org.nuxeo.ecm.platform.publisher.web.AbstractPublishActions
getFormattedPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublishActionsBean

public PublishActionsBean()
Method Detail

create

@Create
public void create()

destroy

@Destroy
public void destroy()

getAvailablePublicationTrees

@Factory(value="availablePublicationTrees",
         scope=EVENT)
public List<PublishActionsBean.PublicationTreeInformation> getAvailablePublicationTrees()
                                                                                 throws ClientException
Throws:
ClientException

doPublish

public String doPublish(PublicationNode publicationNode)
                 throws ClientException
Throws:
ClientException

doPublish

public String doPublish(PublicationTree tree,
                        PublicationNode publicationNode)
                 throws ClientException
Throws:
ClientException

setCurrentPublicationTreeNameForPublishing

public void setCurrentPublicationTreeNameForPublishing(String currentPublicationTreeNameForPublishing)
                                                throws ClientException
Throws:
ClientException

getCurrentPublicationTreeNameForPublishing

public String getCurrentPublicationTreeNameForPublishing()
                                                  throws ClientException
Throws:
ClientException

getCurrentPublicationTreeForPublishing

public PublicationTree getCurrentPublicationTreeForPublishing()
                                                       throws ClientException
Throws:
ClientException

getCurrentPublicationTreeIconExpanded

public String getCurrentPublicationTreeIconExpanded()
                                             throws ClientException
Throws:
ClientException

getCurrentPublicationTreeIconCollapsed

public String getCurrentPublicationTreeIconCollapsed()
                                              throws ClientException
Throws:
ClientException

getPublishedDocuments

@Factory(value="publishedDocuments",
         scope=EVENT)
public List<PublishedDocument> getPublishedDocuments()
                                              throws ClientException
Throws:
ClientException

getPublishedDocumentsFor

public List<PublishedDocument> getPublishedDocumentsFor(String treeName)
                                                 throws ClientException
Throws:
ClientException

unPublish

public String unPublish(PublishedDocument publishedDocument)
                 throws ClientException
Throws:
ClientException

canPublishTo

public boolean canPublishTo(PublicationNode publicationNode)
                     throws ClientException
Throws:
ClientException

canUnpublish

public boolean canUnpublish(PublishedDocument publishedDocument)
                     throws ClientException
Throws:
ClientException

isPublishedDocument

public boolean isPublishedDocument()

canManagePublishing

public boolean canManagePublishing()
                            throws ClientException
Throws:
ClientException

hasValidationTask

public boolean hasValidationTask()
                          throws ClientException
Throws:
ClientException

isPending

public boolean isPending()
                  throws ClientException
Throws:
ClientException

getPublishingComment

public String getPublishingComment()

setPublishingComment

public void setPublishingComment(String publishingComment)

approveDocument

public String approveDocument()
                       throws ClientException
Throws:
ClientException

rejectDocument

public String rejectDocument()
                      throws ClientException
Throws:
ClientException

unpublishDocumentsFromCurrentSelection

public void unpublishDocumentsFromCurrentSelection()
                                            throws ClientException
Throws:
ClientException

isRemotePublishedDocument

public boolean isRemotePublishedDocument(PublishedDocument publishedDocument)

isFileSystemPublishedDocument

public boolean isFileSystemPublishedDocument(PublishedDocument publishedDocument)

isLocalPublishedDocument

public boolean isLocalPublishedDocument(PublishedDocument publishedDocument)

publishWorkList

public String publishWorkList()
                       throws ClientException
Throws:
ClientException

getDocumentModelFor

public DocumentModel getDocumentModelFor(String path)
                                  throws ClientException
Throws:
ClientException

hasReadRight

public boolean hasReadRight(String documentPath)
                     throws ClientException
Throws:
ClientException

getFormattedPath

public String getFormattedPath(String path)
                        throws ClientException
Throws:
ClientException

publishDocumentList

public String publishDocumentList(String listName)
                           throws ClientException
Throws:
ClientException

getSectionTypes

public Set<String> getSectionTypes()

getPublicationParameters

public Map<String,String> getPublicationParameters()

notifyEvent

public void notifyEvent(String eventId,
                        Map<String,Serializable> properties,
                        String comment,
                        String category,
                        DocumentModel dm)
                 throws ClientException
Throws:
ClientException

notifyEvent

public static void notifyEvent(CoreSession session,
                               String eventId,
                               Map<String,Serializable> properties,
                               String comment,
                               String category,
                               DocumentModel dm)
                        throws ClientException
Throws:
ClientException

getDomainName

public String getDomainName(String treeName)
                     throws ClientException
Throws:
ClientException

documentChanged

@Observer(value="documentSelectionChanged",
          create=false)
@BypassInterceptors
public void documentChanged()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.