mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
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:
@@ -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)))
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user