Added a new REST method, publishing-events-query.post which allows you to query for publishing events based on id or published nodes.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28846 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
N Smith
2011-07-07 11:53:12 +00:00
parent 32938984cb
commit 0138ee4a45
17 changed files with 156 additions and 32 deletions

View File

@@ -84,4 +84,9 @@ public interface NodeSnapshot
* @return A set of QName objects, each identifying an aspect that is applied to the node
*/
Set<QName> getAspects();
/**
* @return the version of the node when the snapshot was taken.
*/
String getVersion();
}

View File

@@ -19,6 +19,7 @@
package org.alfresco.service.cmr.publishing;
import java.util.Collection;
import java.util.Set;
import org.alfresco.service.cmr.repository.NodeRef;
@@ -31,9 +32,19 @@ public interface PublishingEventFilter
{
PublishingEventFilter setIds(String... ids);
PublishingEventFilter setIds(Collection<String> ids);
Set<String> getIds();
PublishingEventFilter setPublishedNodes(NodeRef... publishedNodes);
PublishingEventFilter setPublishedNodes(Collection<NodeRef> publishedNodes);
Set<NodeRef> getPublishedNodes();
PublishingEventFilter setUnpublishedNodes(NodeRef... unpublishedNodes);
PublishingEventFilter setUnpublishedNodes(Collection<NodeRef> unpublishedNodes);
Set<NodeRef> getUnpublishedNodes();
}

View File

@@ -19,6 +19,7 @@
package org.alfresco.service.cmr.publishing;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
import org.alfresco.service.cmr.repository.NodeRef;
@@ -30,6 +31,7 @@ public interface PublishingPackage
* @return The collection of publishing package entries. Never <code>null</code>.
*/
Collection<PublishingPackageEntry> getEntries();
Map<NodeRef,PublishingPackageEntry> getEntryMap();
Set<NodeRef> getNodesToPublish();
Set<NodeRef> getNodesToUnpublish();
}