mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Updated the Javadoc on the Publishing Foundation API
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29407 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -92,6 +92,7 @@ import org.alfresco.service.cmr.publishing.PublishingPackage;
|
|||||||
import org.alfresco.service.cmr.publishing.PublishingPackageEntry;
|
import org.alfresco.service.cmr.publishing.PublishingPackageEntry;
|
||||||
import org.alfresco.service.cmr.publishing.PublishingQueue;
|
import org.alfresco.service.cmr.publishing.PublishingQueue;
|
||||||
import org.alfresco.service.cmr.publishing.PublishingService;
|
import org.alfresco.service.cmr.publishing.PublishingService;
|
||||||
|
import org.alfresco.service.cmr.publishing.Status;
|
||||||
import org.alfresco.service.cmr.publishing.StatusUpdate;
|
import org.alfresco.service.cmr.publishing.StatusUpdate;
|
||||||
import org.alfresco.service.cmr.publishing.channels.Channel;
|
import org.alfresco.service.cmr.publishing.channels.Channel;
|
||||||
import org.alfresco.service.cmr.publishing.channels.ChannelService;
|
import org.alfresco.service.cmr.publishing.channels.ChannelService;
|
||||||
@@ -265,7 +266,7 @@ public class PublishingRestApiTest extends BaseWebScriptTest
|
|||||||
PublishingEvent event = publishedEvents.get(0);
|
PublishingEvent event = publishedEvents.get(0);
|
||||||
assertEquals(publishChannel.getId(), event.getChannelId());
|
assertEquals(publishChannel.getId(), event.getChannelId());
|
||||||
assertEquals(comment, event.getComment());
|
assertEquals(comment, event.getComment());
|
||||||
assertEquals(PublishingEvent.Status.SCHEDULED, event.getStatus());
|
assertEquals(Status.SCHEDULED, event.getStatus());
|
||||||
|
|
||||||
// Check Package
|
// Check Package
|
||||||
PublishingPackage pckg = event.getPackage();
|
PublishingPackage pckg = event.getPackage();
|
||||||
@@ -320,7 +321,7 @@ public class PublishingRestApiTest extends BaseWebScriptTest
|
|||||||
events.addAll(publishingService.getEventsForPublishedNode(textNode));
|
events.addAll(publishingService.getEventsForPublishedNode(textNode));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testPublishingEventsForNodeGet() throws Exception
|
public void testPublishingEventsGet() throws Exception
|
||||||
{
|
{
|
||||||
Channel publishChannel = createChannel(publishAnyType);
|
Channel publishChannel = createChannel(publishAnyType);
|
||||||
NodeRef textNode1 = createContentNode("plain1.txt", "This is some plain text", MimetypeMap.MIMETYPE_TEXT_PLAIN);
|
NodeRef textNode1 = createContentNode("plain1.txt", "This is some plain text", MimetypeMap.MIMETYPE_TEXT_PLAIN);
|
||||||
|
Reference in New Issue
Block a user