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 org.gcube.com.fasterxml.jackson.databind.JsonNode |
addExtraField(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode,
String key,
String value) |
protected String |
addItemURLViaResolver(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode) |
org.gcube.com.fasterxml.jackson.databind.node.ObjectNode |
checkBaseInformation(String json) |
org.gcube.com.fasterxml.jackson.databind.node.ObjectNode |
checkBaseInformation(String json,
boolean allowPartialInfo) |
protected CKANOrganization |
checkGotOrganization(String gotOrganization) |
protected Map<String,String> |
checkListParameters(javax.ws.rs.core.MultivaluedMap<String,String> queryParameters,
Map<String,String> parameters) |
protected Set<String> |
checkOrganizationFilter(String q) |
int |
count() |
String |
create(String json) |
protected org.gcube.com.fasterxml.jackson.databind.node.ArrayNode |
createResources(org.gcube.com.fasterxml.jackson.databind.node.ArrayNode resourcesToBeCreated) |
protected void |
delete() |
protected String |
getCurrentContext() |
protected String |
getFilterForOrganizations() |
protected String |
getOrganizationName() |
protected static String |
getOrganizationName(org.gcube.common.scope.impl.ScopeBean scopeBean) |
protected CKANOrganization |
getPublishingOrganization(org.gcube.com.fasterxml.jackson.databind.node.ObjectNode objectNode) |
protected Set<String> |
getSupportedOrganizationsFromIS() |
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 org.gcube.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
public static final String GENERIC_RESOURCE_SECONDARY_TYPE_FOR_ORGANIZATIONS
public static final String GENERIC_RESOURCE_NAME_FOR_ORGANIZATIONS
public static final String GENERIC_RESOURCE_TAG_NAME
public static final String GENERIC_RESOURCE_TAG_NAME_PLURAL
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 org.gcube.common.scope.impl.ScopeBean currentScopeBean
protected String currentContext
protected String currentOrganizationName
protected static String[] allowedListQueryParameters
protected static String getOrganizationName(org.gcube.common.scope.impl.ScopeBean scopeBean)
protected String getCurrentContext()
protected String getOrganizationName()
protected CKANOrganization checkGotOrganization(String gotOrganization) throws javax.ws.rs.ForbiddenException
javax.ws.rs.ForbiddenExceptionprotected CKANOrganization getPublishingOrganization(org.gcube.com.fasterxml.jackson.databind.node.ObjectNode objectNode) throws javax.ws.rs.ForbiddenException
javax.ws.rs.ForbiddenExceptionpublic org.gcube.com.fasterxml.jackson.databind.node.ObjectNode checkBaseInformation(String json) throws Exception
Exceptionpublic org.gcube.com.fasterxml.jackson.databind.node.ObjectNode checkBaseInformation(String json, boolean allowPartialInfo) throws Exception
json - The json to checkallowPartialInfo - used for patch method which provide only partial information (i.e. the info to patch)Exceptionprotected org.gcube.com.fasterxml.jackson.databind.JsonNode validateJson(String json)
public int count()
protected String getFilterForOrganizations()
protected Map<String,String> checkListParameters(javax.ws.rs.core.MultivaluedMap<String,String> queryParameters, Map<String,String> parameters)
protected void rollbackManagedResources()
protected org.gcube.com.fasterxml.jackson.databind.node.ArrayNode createResources(org.gcube.com.fasterxml.jackson.databind.node.ArrayNode resourcesToBeCreated)
protected org.gcube.com.fasterxml.jackson.databind.JsonNode addExtraField(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode,
String key,
String value)
protected String addItemURLViaResolver(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)
Copyright © 2021. All Rights Reserved.