mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +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:
@@ -38,6 +38,7 @@ import org.alfresco.service.cmr.dictionary.DictionaryService;
|
||||
import org.alfresco.service.cmr.publishing.NodeSnapshot;
|
||||
import org.alfresco.service.cmr.publishing.PublishingEvent;
|
||||
import org.alfresco.service.cmr.publishing.PublishingPackageEntry;
|
||||
import org.alfresco.service.cmr.publishing.Status;
|
||||
import org.alfresco.service.cmr.publishing.StatusUpdate;
|
||||
import org.alfresco.service.cmr.publishing.channels.Channel;
|
||||
import org.alfresco.service.cmr.publishing.channels.ChannelService;
|
||||
@@ -71,7 +72,7 @@ public class PublishingEventProcessor
|
||||
try
|
||||
{
|
||||
behaviourFilter.disableAllBehaviours();
|
||||
String inProgressStatus = PublishingEvent.Status.IN_PROGRESS.name();
|
||||
String inProgressStatus = Status.IN_PROGRESS.name();
|
||||
nodeService.setProperty(eventNode, PublishingModel.PROP_PUBLISHING_EVENT_STATUS, inProgressStatus);
|
||||
PublishingEvent event = eventHelper.getPublishingEvent(eventNode);
|
||||
String channelName = event.getChannelId();
|
||||
@@ -84,7 +85,7 @@ public class PublishingEventProcessor
|
||||
{
|
||||
publishEvent(channel, event);
|
||||
updateStatus(channel, event.getStatusUpdate());
|
||||
String completedStatus = PublishingEvent.Status.COMPLETED.name();
|
||||
String completedStatus = Status.COMPLETED.name();
|
||||
nodeService.setProperty(eventNode, PublishingModel.PROP_PUBLISHING_EVENT_STATUS, completedStatus);
|
||||
}
|
||||
}
|
||||
@@ -150,7 +151,7 @@ public class PublishingEventProcessor
|
||||
|
||||
public void fail(NodeRef eventNode, String msg)
|
||||
{
|
||||
String completedStatus = PublishingEvent.Status.FAILED.name();
|
||||
String completedStatus = Status.FAILED.name();
|
||||
nodeService.setProperty(eventNode, PublishingModel.PROP_PUBLISHING_EVENT_STATUS, completedStatus);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user