public class PublishServiceImpl extends java.lang.Object implements PublishingService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Constructor and Description |
|---|
PublishServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelPublishingEvent(java.lang.String id)
Request that the specified publishing event be cancelled.
|
java.util.Map |
checkPublishStatus(java.lang.String channelId,
java.util.Collection nodes) |
java.util.Map |
checkPublishStatus(java.lang.String channelId,
org.alfresco.service.cmr.repository.NodeRef[] nodes) |
PublishingDetails |
createPublishingDetails()
A factory method to create an empty publishing package that can be populated before being passed into
a call to the
PublishingQueue.scheduleNewEvent(PublishingDetails) operation. |
java.util.List |
getPublishEventsForNode(org.alfresco.service.cmr.repository.NodeRef publishedNode)
Retrieve a list of publishing events for which the specified
node was published. |
PublishingEvent |
getPublishingEvent(java.lang.String id)
Retrieve the publishing event that has the specified identifier
|
java.util.List |
getUnpublishEventsForNode(org.alfresco.service.cmr.repository.NodeRef unpublishedNode)
Retrieve a list of publishing events for which the specified
node was unpublished. |
java.lang.String |
scheduleNewEvent(PublishingDetails publishingDetails)
Adds the supplied publishing package onto the queue.
|
void |
setPublishingEventHelper(PublishingEventHelper publishingEventHelper) |
void |
setPublishingRootObject(PublishingRootObject rootObject) |
public static final java.lang.String NAME
public void setPublishingRootObject(PublishingRootObject rootObject)
rootObject - the rootObject to setpublic void setPublishingEventHelper(PublishingEventHelper publishingEventHelper)
publishingEventHelper - the publishingEventHelper to setpublic PublishingEvent getPublishingEvent(java.lang.String id)
getPublishingEvent in interface PublishingServiceid - The identifier of the required publishing eventnull if no such publishing event can
be locatedpublic java.util.List getPublishEventsForNode(org.alfresco.service.cmr.repository.NodeRef publishedNode)
node was published.getPublishEventsForNode in interface PublishingServicepublishedNode - The node that was published.PublishingEvents.public java.util.List getUnpublishEventsForNode(org.alfresco.service.cmr.repository.NodeRef unpublishedNode)
node was unpublished.getUnpublishEventsForNode in interface PublishingServiceunpublishedNode - The node that was unpublished.PublishingEvents.public void cancelPublishingEvent(java.lang.String id)
cancelPublishingEvent in interface PublishingServiceid - The identifier of the publishing event that is to be cancelled.public java.util.Map checkPublishStatus(java.lang.String channelId,
java.util.Collection nodes)
public java.util.Map checkPublishStatus(java.lang.String channelId,
org.alfresco.service.cmr.repository.NodeRef[] nodes)
public PublishingDetails createPublishingDetails()
PublishingServicePublishingQueue.scheduleNewEvent(PublishingDetails) operation.createPublishingDetails in interface PublishingServicepublic java.lang.String scheduleNewEvent(PublishingDetails publishingDetails)
scheduleNewEvent in interface PublishingServicepublishingDetails - The publishing package that is to be enqueuedCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.