Publishing: Added "publish-content" action to provide easy access to the publishing service.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31057 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Brian Remmington
2011-10-07 17:13:47 +00:00
parent 10d2676d4c
commit e46fecc627
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ public class PublishingJsonParser implements PublishingWebScriptConstants
{
JSONObject json = getJson(jsonStr);
PublishingDetails details = publishingService.createPublishingDetails()
.setPublishChannel(json.optString(CHANNEL_ID))
.setPublishChannelId(json.optString(CHANNEL_ID))
.setComment(json.optString(COMMENT))
.setSchedule(getCalendar(json.optJSONObject(SCHEDULED_TIME)))
.addNodesToPublish(toNodes(json.optJSONArray(PUBLISH_NODES)))

View File

@@ -427,7 +427,7 @@ public class PublishingRestApiTest extends BaseWebScriptTest
// Create publishing event for textNode1.
String comment = "This is a comment";
PublishingDetails details = publishingService.createPublishingDetails()
.setPublishChannel(publishChannel.getId())
.setPublishChannelId(publishChannel.getId())
.addNodesToPublish(textNode1)
.setComment(comment);