@Name(value="publishActions") @Scope(value=CONVERSATION) public class PublishActionsBean extends AbstractPublishActions implements Serializable
Modifier and Type | Class and Description |
---|---|
class |
PublishActionsBean.ApproverWithoutRestriction |
static class |
PublishActionsBean.PublicationTreeInformation |
Constructor and Description |
---|
PublishActionsBean() |
getFormattedPath
@Create public void create()
@Destroy public void destroy()
@Factory(value="availablePublicationTrees", scope=EVENT) public List<PublishActionsBean.PublicationTreeInformation> getAvailablePublicationTrees() throws ClientException
ClientException
public String doPublish(PublicationNode publicationNode) throws ClientException
ClientException
public String doPublish(PublicationTree tree, PublicationNode publicationNode) throws ClientException
ClientException
public void setCurrentPublicationTreeNameForPublishing(String currentPublicationTreeNameForPublishing) throws ClientException
ClientException
public String getCurrentPublicationTreeNameForPublishing() throws ClientException
ClientException
public List<PublicationTree> getCurrentPublicationTreesForPublishing() throws ClientException
Needed on top of getCurrentPublicationTreeForPublishing()
because RichFaces tree now requires roots to
be a list.
ClientException
public PublicationTree getCurrentPublicationTreeForPublishing() throws ClientException
ClientException
public String getCurrentPublicationTreeIconExpanded() throws ClientException
ClientException
public String getCurrentPublicationTreeIconCollapsed() throws ClientException
ClientException
@Factory(value="publishedDocuments", scope=EVENT) public List<PublishedDocument> getPublishedDocuments() throws ClientException
ClientException
public List<PublishedDocument> getPublishedDocumentsFor(String treeName) throws ClientException
ClientException
public String unPublish(PublishedDocument publishedDocument) throws ClientException
ClientException
public String rePublish(PublishedDocument publishedDocument) throws ClientException
ClientException
public boolean canPublishTo(PublicationNode publicationNode) throws ClientException
ClientException
public boolean canUnpublish(PublishedDocument publishedDocument) throws ClientException
ClientException
public boolean canRepublish(PublishedDocument publishedDocument) throws ClientException
ClientException
public boolean isPublishedDocument()
public boolean canManagePublishing() throws ClientException
ClientException
public boolean hasValidationTask() throws ClientException
ClientException
public boolean isPending() throws ClientException
ClientException
public String getPublishingComment()
public void setPublishingComment(String publishingComment)
public String approveDocument() throws ClientException
ClientException
public String rejectDocument() throws ClientException
ClientException
public void unpublishDocumentsFromCurrentSelection() throws ClientException
ClientException
public boolean isRemotePublishedDocument(PublishedDocument publishedDocument)
public boolean isFileSystemPublishedDocument(PublishedDocument publishedDocument)
public boolean isLocalPublishedDocument(PublishedDocument publishedDocument)
public String publishWorkList() throws ClientException
ClientException
public DocumentModel getDocumentModelFor(String path) throws ClientException
ClientException
public boolean hasReadRight(String documentPath) throws ClientException
ClientException
public String getFormattedPath(String path) throws ClientException
ClientException
public String publishDocumentList(String listName) throws ClientException
ClientException
public void notifyEvent(String eventId, Map<String,Serializable> properties, String comment, String category, DocumentModel dm) throws ClientException
ClientException
public static void notifyEvent(CoreSession session, String eventId, Map<String,Serializable> properties, String comment, String category, DocumentModel dm) throws ClientException
ClientException
public String getDomainName(String treeName) throws ClientException
ClientException
@Observer(value="documentSelectionChanged", create=false) @BypassInterceptors public void documentChanged()
Copyright © 2015 Nuxeo SA. All rights reserved.