org.alfresco.repo.publishing
Class StatusUpdateImpl

java.lang.Object
  extended by org.alfresco.repo.publishing.StatusUpdateImpl
All Implemented Interfaces:
StatusUpdate

public class StatusUpdateImpl
extends java.lang.Object
implements StatusUpdate

Since:
4.0

Constructor Summary
StatusUpdateImpl(java.lang.String message, org.alfresco.service.cmr.repository.NodeRef nodeToLinkTo, java.util.Collection channelNames)
           
 
Method Summary
 java.util.Set getChannelIds()
          
 java.lang.String getMessage()
          
 org.alfresco.service.cmr.repository.NodeRef getNodeToLinkTo()
          Returns a NodeRef.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusUpdateImpl

public StatusUpdateImpl(java.lang.String message,
                        org.alfresco.service.cmr.repository.NodeRef nodeToLinkTo,
                        java.util.Collection channelNames)
Method Detail

getMessage

public java.lang.String getMessage()

Specified by:
getMessage in interface StatusUpdate
Returns:
the status message to be published.

getChannelIds

public java.util.Set getChannelIds()

Specified by:
getChannelIds in interface StatusUpdate
Returns:
a Set of String identifiers indicating which Channel the status update will be published to.

getNodeToLinkTo

public org.alfresco.service.cmr.repository.NodeRef getNodeToLinkTo()
Returns a NodeRef. The returned NodeRef is one of the NodeRefs to be published by the associated PublishingEvent. The status update message will have a URL appended to it which links to the published resource represented by this NodeRef.

Specified by:
getNodeToLinkTo in interface StatusUpdate
Returns:
the NodeRef to link to.


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