public class PublishingJsonParser extends Object implements PublishingWebScriptConstants
CAN_PUBLISH, CAN_PUBLISH_STATUS_UPDATES, CAN_UNPUBLISH, CHANNEL, CHANNEL_AUTH_STATUS, CHANNEL_ID, CHANNEL_IDS, CHANNEL_NAME, CHANNEL_NODE_TYPE, CHANNEL_TYPE, COMMENT, CONTENT_ROOT_NODE_TYPE, CREATED_TIME, CREATOR, EVENT_TYPE, ICON, ID, MAX_STATUS_LENGTH, MESSAGE, NAME, NODE_REF, NODEREF, PUBLISH_NODES, PUBLISHING_CHANNELS, SCHEDULED_TIME, STATUS, STATUS_UPDATE, STATUS_UPDATE_CHANNELS, SUPPORTED_CONTENT_TYPES, SUPPORTED_MIME_TYPES, TITLE, UNPUBLISH_NODES, URL, URL_LENGTH, VERSION
Constructor and Description |
---|
PublishingJsonParser() |
Modifier and Type | Method and Description |
---|---|
org.json.JSONObject |
getJson(String jsonStr) |
String |
schedulePublishingEvent(PublishingService publishingService,
String jsonStr) |
PublishingDetails |
setStatusUpdate(PublishingDetails details,
org.json.JSONObject json) |
List<org.alfresco.service.cmr.repository.NodeRef> |
toNodes(org.json.JSONArray json) |
void |
updateChannel(Channel channel,
String jsonStr,
ChannelService channelService) |
public org.json.JSONObject getJson(String jsonStr) throws org.json.JSONException
org.json.JSONException
public void updateChannel(Channel channel, String jsonStr, ChannelService channelService) throws org.json.JSONException
org.json.JSONException
public String schedulePublishingEvent(PublishingService publishingService, String jsonStr) throws ParseException, org.json.JSONException
ParseException
org.json.JSONException
public PublishingDetails setStatusUpdate(PublishingDetails details, org.json.JSONObject json)
public List<org.alfresco.service.cmr.repository.NodeRef> toNodes(org.json.JSONArray json)
Copyright © 2005–2017 Alfresco Software. All rights reserved.