Added facilities to simplify new IS adoption

This commit is contained in:
Luca Frosini 2022-12-01 16:18:56 +01:00
parent faf102e5d7
commit 0dfd0000d9
2 changed files with 20 additions and 0 deletions

View File

@ -11,6 +11,8 @@ public class GCatConstants {
public final static String CONFIGURATION_CATEGORY = GCatConstants.SERVICE_CLASS;
public final static String CONFIGURATION_NAME = GCatConstants.SERVICE_NAME + "-configuration";
public final static String CATALOGUE_SERVICE_VIRTUAL_SERVICE_ID = "catalogue-virtual-service";
public static final String SERVICE_ENTRY_NAME = "org.gcube.gcat.ResourceInitializer";
public static final String PURGE_QUERY_PARAMETER = "purge";
public static final String APPLICATION_JSON_CHARSET_UTF_8 = "application/json;charset=UTF-8";

View File

@ -30,6 +30,24 @@ public class CatalogueConfiguration {
public static final String CKAN_DB_KEY = "ckanDB";
public static final Set<String> KNOWN_PROPERTIES;
static {
KNOWN_PROPERTIES = new HashSet<>();
KNOWN_PROPERTIES.add(ID_KEY);
KNOWN_PROPERTIES.add(CONTEXT_KEY);
KNOWN_PROPERTIES.add(DEFAULT_ORGANIZATION_KEY);
KNOWN_PROPERTIES.add(SUPPORTED_ORGANIZATIONS_KEY);
KNOWN_PROPERTIES.add(SYS_ADMIN_TOKEN_KEY);
KNOWN_PROPERTIES.add(SOCIAL_POST_ENABLED_KEY);
KNOWN_PROPERTIES.add(NOTIFICATION_TO_USER_ENABLED_KEY);
KNOWN_PROPERTIES.add(MODERATION_ENABLED_KEY);
KNOWN_PROPERTIES.add(CKAN_URL_KEY);
KNOWN_PROPERTIES.add(SOLR_URL_KEY);
KNOWN_PROPERTIES.add(CKAN_DB_KEY);
}
protected String id;
protected String context;