Publishing: Tidied PublishingService and ChannelService interface to remove obsolete operations.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30437 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Brian Remmington
2011-09-12 15:38:47 +00:00
parent a48be26668
commit b94e282177
13 changed files with 6 additions and 410 deletions

View File

@@ -18,11 +18,8 @@
*/
package org.alfresco.service.cmr.publishing;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import org.alfresco.service.cmr.publishing.channels.Channel;
import org.alfresco.service.cmr.repository.NodeRef;
/**
@@ -46,14 +43,14 @@ public interface PublishingService
* @param publishedNode The node that was published.
* @return A list of {@link PublishingEvent}s.
*/
List<PublishingEvent> getEventsForPublishedNode(NodeRef publishedNode);
List<PublishingEvent> getPublishEventsForNode(NodeRef publishedNode);
/**
* Retrieve a list of publishing events for which the specified <code>node</code> was unpublished.
* @param unpublishedNode The node that was unpublished.
* @return A list of {@link PublishingEvent}s.
*/
List<PublishingEvent> getEventsForUnpublishedNode(NodeRef unpublishedNode);
List<PublishingEvent> getUnpublishEventsForNode(NodeRef unpublishedNode);
/**
* Request that the specified publishing event be cancelled. This call will
@@ -70,20 +67,4 @@ public interface PublishingService
* @return A PublishingQueue object corresponding tho this environment's publishing queue
*/
PublishingQueue getPublishingQueue();
/**
* Discover the publishing status of each of the specified nodes
* @param channelId an identifier indicating which {@link Channel} to check the status for.
* @param nodes The nodes whose publishing status is being sought
* @return A map associating a NodePublishStatus object with each of the supplied NodeRef objects
*/
Map<NodeRef,NodePublishStatus> checkPublishStatus(String channelId, Collection<NodeRef> nodes);
/**
* Discover the publishing status of each of the specified nodes
* @param channelId an identifier indicating which {@link Channel} to check the status for.
* @param nodes The nodes whose publishing status is being sought
* @return A map associating a NodePublishStatus object with each of the supplied NodeRef objects
*/
Map<NodeRef,NodePublishStatus> checkPublishStatus(String channelId, NodeRef... nodes);
}

View File

@@ -24,8 +24,6 @@ import java.util.Map;
import java.util.Set;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.transfer.NodeFilter;
import org.alfresco.service.cmr.transfer.NodeFinder;
import org.alfresco.service.namespace.QName;
import org.springframework.core.io.Resource;
@@ -39,8 +37,7 @@ public interface ChannelType
String getId();
QName getChannelNodeType();
NodeFinder getNodeFinder();
NodeFilter getNodeFilter();
void publish(NodeRef nodeToPublish, Map<QName, Serializable> properties);
void unpublish(NodeRef nodeToUnpublish, Map<QName, Serializable> properties);
void updateStatus(Channel channel, String status, Map<QName, Serializable> properties);