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(org.alfresco.service.cmr.publishing.PublishingService publishingService,
String jsonStr) |
org.alfresco.service.cmr.publishing.PublishingDetails |
setStatusUpdate(org.alfresco.service.cmr.publishing.PublishingDetails details,
org.json.JSONObject json) |
List<org.alfresco.service.cmr.repository.NodeRef> |
toNodes(org.json.JSONArray json) |
void |
updateChannel(org.alfresco.service.cmr.publishing.channels.Channel channel,
String jsonStr,
org.alfresco.service.cmr.publishing.channels.ChannelService channelService) |
public org.json.JSONObject getJson(String jsonStr) throws org.json.JSONException
org.json.JSONException
public void updateChannel(org.alfresco.service.cmr.publishing.channels.Channel channel, String jsonStr, org.alfresco.service.cmr.publishing.channels.ChannelService channelService) throws org.json.JSONException
org.json.JSONException
public String schedulePublishingEvent(org.alfresco.service.cmr.publishing.PublishingService publishingService, String jsonStr) throws ParseException, org.json.JSONException
ParseException
org.json.JSONException
public org.alfresco.service.cmr.publishing.PublishingDetails setStatusUpdate(org.alfresco.service.cmr.publishing.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.