@Override public AllowableActions getAllowableActions(String repositoryId, String objectId, ExtensionsData extension) { // build URL UrlBuilder url = getObjectUrl(repositoryId, objectId, Constants.SELECTOR_ALLOWABLEACTIONS); // read and parse Response resp = read(url); Map<String, Object> json = parseObject(resp.getStream(), resp.getCharset()); return JSONConverter.convertAllowableActions(json); }
@Override public AllowableActions getAllowableActions(String repositoryId, String objectId, ExtensionsData extension) { // build URL UrlBuilder url = getObjectUrl(repositoryId, objectId, Constants.SELECTOR_ALLOWABLEACTIONS); // read and parse Response resp = read(url); Map<String, Object> json = parseObject(resp.getStream(), resp.getCharset()); return JSONConverter.convertAllowableActions(json); }
result.setAllowableActions(convertAllowableActions(getMap(json.get(JSON_OBJECT_ALLOWABLE_ACTIONS)))); Map<String, Object> jsonChangeEventInfo = getMap(json.get(JSON_OBJECT_CHANGE_EVENT_INFO)); if (jsonChangeEventInfo != null) {
result.setAllowableActions(convertAllowableActions(getMap(json.get(JSON_OBJECT_ALLOWABLE_ACTIONS)))); Map<String, Object> jsonChangeEventInfo = getMap(json.get(JSON_OBJECT_CHANGE_EVENT_INFO)); if (jsonChangeEventInfo != null) {