public class CKANPackage extends CKAN
apiKey, AUTH_CKAN_HEADER, AUTHORIZATION_ERROR, CKAN_API_PATH, CREATE, DELETE, ERROR_KEY, ERROR_TYPE_KEY, ID_KEY, LIMIT_KEY, LIST, mapper, MESSAGE_KEY, name, NAME_KEY, NAME_REGEX, nameRegex, NOT_FOUND_ERROR, OFFSET_KEY, PATCH, PURGE, READ, result, RESULT_KEY, SUCCESS_KEY, UPDATE, uriInfo, VALIDATION_ERROR| Constructor and Description |
|---|
CKANPackage() |
| Modifier and Type | Method and Description |
|---|---|
protected com.fasterxml.jackson.databind.JsonNode |
addExtraField(com.fasterxml.jackson.databind.JsonNode jsonNode,
String key,
String value) |
protected String |
addItemURLViaResolver(com.fasterxml.jackson.databind.JsonNode jsonNode) |
com.fasterxml.jackson.databind.node.ObjectNode |
checkBaseInformation(String json) |
protected Map<String,String> |
checkListParameters(javax.ws.rs.core.MultivaluedMap<String,String> queryParameters,
Map<String,String> parameters) |
protected void |
checkOrganizationFilter(String q) |
String |
create(String json) |
protected com.fasterxml.jackson.databind.node.ArrayNode |
createResources(com.fasterxml.jackson.databind.node.ArrayNode resourcesToBeCreated) |
protected void |
delete() |
protected String |
getOrganizationName() |
protected String |
getOrganizationName(org.gcube.common.scope.impl.ScopeBean scopeBean) |
String |
list(int limit,
int offset) |
String |
list(Map<String,String> parameters) |
String |
patch(String json) |
void |
purge() |
protected void |
rollbackManagedResources() |
protected void |
sendSocialPost(String title,
String catalogueItemURL) |
String |
update(String json) |
protected com.fasterxml.jackson.databind.JsonNode |
validateJson(String json) |
checkName, checkName, createJsonNodeWithID, createJsonNodeWithNameAsID, delete, getApiKey, getAsJsonNode, getAsString, getGXHTTPStringRequest, getJsonNodeResult, getMapper, getMapWithID, getMapWithNameAsID, getName, getResultAndValidate, read, sendGetRequest, sendPostRequest, sendPostRequest, setApiKey, setName, setUriInfo, validateCKANResponsepublic static final String ITEM_LIST
public static final String ITEM_CREATE
public static final String ITEM_SHOW
public static final String ITEM_UPDATE
public static final String ITEM_PATCH
public static final String ITEM_DELETE
public static final String ITEM_PURGE
protected static final String ROWS_KEY
protected static final String START_KEY
protected static final String ORGANIZATION_FILTER_TEMPLATE
protected static final String ORGANIZATION_REGEX
protected static final Pattern ORGANIZATION_REGEX_PATTERN
protected static final String LICENSE_KEY
protected static final String EXTRAS_ITEM_URL_KEY
protected static final String AUTHOR_KEY
protected static final String AUTHOR_EMAIL_KEY
protected static final String OWNER_ORG_KEY
protected static final String RESOURCES_KEY
protected static final String TITLE_KEY
public static final String EXTRAS_KEY
public static final String EXTRAS_KEY_KEY
public static final String EXTRAS_KEY_VALUE_SYSTEM_TYPE
public static final String EXTRAS_VALUE_KEY
protected static final String PRIVATE_KEY
protected static final String SEARCHABLE_KEY
protected static final String CAPACITY_KEY
public static final String GROUPS_KEY
public static final String TAGS_KEY
protected final List<CKANResource> managedResources
protected String itemID
protected static String[] allowedListQueryParameters
protected String getOrganizationName(org.gcube.common.scope.impl.ScopeBean scopeBean)
protected String getOrganizationName()
public com.fasterxml.jackson.databind.node.ObjectNode checkBaseInformation(String json) throws Exception
Exceptionprotected com.fasterxml.jackson.databind.JsonNode validateJson(String json)
protected void checkOrganizationFilter(String q)
protected Map<String,String> checkListParameters(javax.ws.rs.core.MultivaluedMap<String,String> queryParameters, Map<String,String> parameters)
protected void rollbackManagedResources()
protected com.fasterxml.jackson.databind.node.ArrayNode createResources(com.fasterxml.jackson.databind.node.ArrayNode resourcesToBeCreated)
protected com.fasterxml.jackson.databind.JsonNode addExtraField(com.fasterxml.jackson.databind.JsonNode jsonNode,
String key,
String value)
protected String addItemURLViaResolver(com.fasterxml.jackson.databind.JsonNode jsonNode)
Copyright © 2020. All Rights Reserved.