org.alfresco.repo.publishing
Class PublishingQueueImpl

java.lang.Object
  extended by org.alfresco.repo.publishing.PublishingQueueImpl
All Implemented Interfaces:
PublishingQueue

public class PublishingQueueImpl
extends java.lang.Object
implements PublishingQueue

Since:
4.0

Constructor Summary
PublishingQueueImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef, PublishingEventHelper publishingEventHelper)
           
 
Method Summary
 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.
 PublishingEventFilter createPublishingEventFilter()
          
 StatusUpdate createStatusUpdate(java.lang.String message, org.alfresco.service.cmr.repository.NodeRef nodeToLinkTo, java.util.Collection channelNames)
          
 StatusUpdate createStatusUpdate(java.lang.String message, org.alfresco.service.cmr.repository.NodeRef nodeToLinkTo, java.lang.String[] channelNames)
          
 org.alfresco.service.cmr.repository.NodeRef getNodeRef()
           
 java.util.List getPublishingEvents(PublishingEventFilter filter)
          
 java.lang.String scheduleNewEvent(PublishingDetails publishingDetails)
          Adds the supplied publishing package onto the queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublishingQueueImpl

public PublishingQueueImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                           PublishingEventHelper publishingEventHelper)
Method Detail

createPublishingDetails

public 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.

Specified by:
createPublishingDetails in interface PublishingQueue
Returns:
A publishing package that can be populated before being placed on the publishing queue.

createStatusUpdate

public StatusUpdate createStatusUpdate(java.lang.String message,
                                       org.alfresco.service.cmr.repository.NodeRef nodeToLinkTo,
                                       java.lang.String[] channelNames)


createStatusUpdate

public StatusUpdate createStatusUpdate(java.lang.String message,
                                       org.alfresco.service.cmr.repository.NodeRef nodeToLinkTo,
                                       java.util.Collection channelNames)


getPublishingEvents

public java.util.List getPublishingEvents(PublishingEventFilter filter)


createPublishingEventFilter

public PublishingEventFilter createPublishingEventFilter()


scheduleNewEvent

public java.lang.String scheduleNewEvent(PublishingDetails publishingDetails)
Adds the supplied publishing package onto the queue.

Specified by:
scheduleNewEvent in interface PublishingQueue
Parameters:
publishingDetails - The publishing package that is to be enqueued
Returns:
The identifier of the newly scheduled event

getNodeRef

public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
Returns:
the nodeRef


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.