public class PublishServiceImpl extends Object implements PublishingService
Constructor and Description |
---|
PublishServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
cancelPublishingEvent(String id)
Request that the specified publishing event be cancelled.
|
Map<org.alfresco.service.cmr.repository.NodeRef,NodePublishStatus> |
checkPublishStatus(String channelId,
Collection<org.alfresco.service.cmr.repository.NodeRef> nodes) |
Map<org.alfresco.service.cmr.repository.NodeRef,NodePublishStatus> |
checkPublishStatus(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. |
List<PublishingEvent> |
getPublishEventsForNode(org.alfresco.service.cmr.repository.NodeRef publishedNode)
Retrieve a list of publishing events for which the specified
node was published. |
PublishingEvent |
getPublishingEvent(String id)
Retrieve the publishing event that has the specified identifier
|
List<PublishingEvent> |
getUnpublishEventsForNode(org.alfresco.service.cmr.repository.NodeRef unpublishedNode)
Retrieve a list of publishing events for which the specified
node was unpublished. |
String |
scheduleNewEvent(PublishingDetails publishingDetails)
Adds the supplied publishing package onto the queue.
|
void |
setPublishingEventHelper(PublishingEventHelper publishingEventHelper) |
void |
setPublishingRootObject(PublishingRootObject rootObject) |
public static final String NAME
public void setPublishingRootObject(PublishingRootObject rootObject)
rootObject
- the rootObject to setpublic void setPublishingEventHelper(PublishingEventHelper publishingEventHelper)
publishingEventHelper
- the publishingEventHelper to setpublic PublishingEvent getPublishingEvent(String id)
getPublishingEvent
in interface PublishingService
id
- The identifier of the required publishing eventnull
if no such publishing event can
be locatedpublic List<PublishingEvent> getPublishEventsForNode(org.alfresco.service.cmr.repository.NodeRef publishedNode)
node
was published.getPublishEventsForNode
in interface PublishingService
publishedNode
- The node that was published.PublishingEvent
s.public List<PublishingEvent> getUnpublishEventsForNode(org.alfresco.service.cmr.repository.NodeRef unpublishedNode)
node
was unpublished.getUnpublishEventsForNode
in interface PublishingService
unpublishedNode
- The node that was unpublished.PublishingEvent
s.public void cancelPublishingEvent(String id)
cancelPublishingEvent
in interface PublishingService
id
- The identifier of the publishing event that is to be cancelled.public Map<org.alfresco.service.cmr.repository.NodeRef,NodePublishStatus> checkPublishStatus(String channelId, Collection<org.alfresco.service.cmr.repository.NodeRef> nodes)
public Map<org.alfresco.service.cmr.repository.NodeRef,NodePublishStatus> checkPublishStatus(String channelId, org.alfresco.service.cmr.repository.NodeRef... nodes)
public PublishingDetails createPublishingDetails()
PublishingService
PublishingQueue.scheduleNewEvent(PublishingDetails)
operation.createPublishingDetails
in interface PublishingService
public String scheduleNewEvent(PublishingDetails publishingDetails)
scheduleNewEvent
in interface PublishingService
publishingDetails
- The publishing package that is to be enqueuedCopyright © 2005–2017 Alfresco Software. All rights reserved.