package org.alfresco.service.cmr.publishing; import java.util.Calendar; import java.util.Collection; import java.util.Set; import org.alfresco.service.cmr.repository.NodeRef; /** * A simple DTO used to gather parameters for scheduling a Publishing Event. * * @author Brian * @author Nick Smith * * @since 4.0 */ public interface PublishingDetails { PublishingDetails addNodesToUnpublish(NodeRef... nodesToRemove); PublishingDetails addNodesToUnpublish(Collection nodesToRemove); PublishingDetails addNodesToPublish(NodeRef... nodesToPublish); PublishingDetails addNodesToPublish(Collection nodesToPublish); PublishingDetails setPublishChannelId(String channelId); PublishingDetails setComment(String comment); PublishingDetails setSchedule(Calendar schedule); PublishingDetails setStatusMessage(String message); PublishingDetails setStatusNodeToLinkTo(NodeRef nodeToLinkTo); PublishingDetails addStatusUpdateChannels(Collection channelIds); PublishingDetails addStatusUpdateChannels(String... channelIds); /** * @return the comment */ String getComment(); /** * @return the message */ String getStatusMessage(); /** * @return the nodeToLinkTo */ NodeRef getNodeToLinkTo(); /** * @return the publishChannelId */ String getPublishChannelId(); /** * @return the schedule */ Calendar getSchedule(); Set getStatusUpdateChannels(); /** * @return a {@link Set} of all the {@link NodeRef}s to be published. */ Set getNodesToPublish(); /** * @return a {@link Set} of all the {@link NodeRef}s to be unpublished. */ Set getNodesToUnpublish(); }