public class BridgeHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ENDPOINT_KEY |
| Constructor and Description |
|---|
BridgeHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildElementMetadataSerialization(Set<gr.uoa.di.madgik.rr.element.IDaoElement> metadata) |
static String |
buildFieldDirectorySerialization(Set<gr.uoa.di.madgik.rr.element.IDaoElement> fields) |
static String |
buildFieldSerialization(gr.uoa.di.madgik.rr.element.IDaoElement field,
Set<gr.uoa.di.madgik.rr.element.IDaoElement> searchables,
Set<gr.uoa.di.madgik.rr.element.IDaoElement> presentables,
Set<String> deletedSearchables,
Set<String> deletedPresentables) |
static String |
buildStaticConfigSerialization(gr.uoa.di.madgik.rr.element.IDaoElement staticConfig) |
static void |
deleteFieldResource(org.gcube.common.resources.gcore.GenericResource resource,
Set<String> nonUpdateVOScopes) |
static Set<gr.uoa.di.madgik.rr.element.IDaoElement> |
getElement(Class<?> type) |
static List<String> |
getFieldModelScopes() |
static List<String> |
getGHNContextScopes() |
static List<String> |
getGHNContextStartScopes() |
static List<org.gcube.common.resources.gcore.GenericResource> |
getPublishedFieldResources() |
static List<org.gcube.common.resources.gcore.GenericResource> |
getPublishedFieldResources(String resourceName) |
static List<org.gcube.common.resources.gcore.GenericResource> |
getPublishedFieldResourcesForField(String fieldId) |
static List<org.gcube.common.resources.gcore.GenericResource> |
getPublishedMetadataResources() |
static List<org.gcube.common.resources.gcore.GenericResource> |
getPublishedStaticConfigResources() |
static Set<gr.uoa.di.madgik.rr.element.IDaoElement> |
getTreeCollections() |
static String |
getVOScope(String scope) |
static Set<String> |
getVOScopes(Collection<String> vreScopes) |
static void |
initializeIndexTypes() |
static void |
initializeIndexTypes(Properties config) |
static boolean |
isClientMode() |
static void |
main(String[] args) |
static void |
prefetchInMemoryItems(Set<Class<?>> itemTypes) |
static void |
publishFieldResource(org.gcube.common.resources.gcore.GenericResource resource,
boolean isNew,
Set<String> nonUpdateVOScopes) |
static void |
retrieveScopes() |
static boolean |
shouldUpdateField(gr.uoa.di.madgik.rr.element.IDaoElement field,
Set<gr.uoa.di.madgik.rr.element.IDaoElement> searchables,
Set<gr.uoa.di.madgik.rr.element.IDaoElement> presentables,
List<String> emptyScopedSearchables,
List<String> emptyScoperdPresentables) |
static Set<gr.uoa.di.madgik.rr.element.IDaoElement> |
updateFieldList(Set<gr.uoa.di.madgik.rr.element.IDaoElement> fields,
Set<gr.uoa.di.madgik.rr.element.IDaoElement> searchables,
Set<gr.uoa.di.madgik.rr.element.IDaoElement> presentables,
List<String> emptyScopedSearchables,
List<String> emptyScoperdPresentables) |
static String |
updateFieldSerialization(String originalSerialization,
gr.uoa.di.madgik.rr.element.IDaoElement field,
Set<gr.uoa.di.madgik.rr.element.IDaoElement> searchables,
Set<gr.uoa.di.madgik.rr.element.IDaoElement> presentables,
boolean updateFields,
boolean updateSearchables,
boolean updatePresentables,
Set<String> deletedSearchables,
Set<String> deletedPresentables) |
public static final String ENDPOINT_KEY
public static void initializeIndexTypes()
public static void initializeIndexTypes(Properties config) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static List<String> getFieldModelScopes() throws Exception
Exceptionpublic static Set<gr.uoa.di.madgik.rr.element.IDaoElement> getElement(Class<?> type) throws Exception
Exceptionpublic static Set<gr.uoa.di.madgik.rr.element.IDaoElement> getTreeCollections() throws Exception
Exceptionpublic static List<org.gcube.common.resources.gcore.GenericResource> getPublishedFieldResources() throws Exception
Exceptionpublic static List<org.gcube.common.resources.gcore.GenericResource> getPublishedMetadataResources() throws Exception
Exceptionpublic static List<org.gcube.common.resources.gcore.GenericResource> getPublishedStaticConfigResources() throws Exception
Exceptionpublic static List<org.gcube.common.resources.gcore.GenericResource> getPublishedFieldResourcesForField(String fieldId) throws Exception
Exceptionpublic static List<org.gcube.common.resources.gcore.GenericResource> getPublishedFieldResources(String resourceName) throws Exception
Exceptionpublic static Set<String> getVOScopes(Collection<String> vreScopes)
public static void publishFieldResource(org.gcube.common.resources.gcore.GenericResource resource,
boolean isNew,
Set<String> nonUpdateVOScopes)
throws Exception
Exceptionpublic static void deleteFieldResource(org.gcube.common.resources.gcore.GenericResource resource,
Set<String> nonUpdateVOScopes)
throws Exception
Exceptionpublic static String buildFieldDirectorySerialization(Set<gr.uoa.di.madgik.rr.element.IDaoElement> fields) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static String buildFieldSerialization(gr.uoa.di.madgik.rr.element.IDaoElement field, Set<gr.uoa.di.madgik.rr.element.IDaoElement> searchables, Set<gr.uoa.di.madgik.rr.element.IDaoElement> presentables, Set<String> deletedSearchables, Set<String> deletedPresentables) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static Set<gr.uoa.di.madgik.rr.element.IDaoElement> updateFieldList(Set<gr.uoa.di.madgik.rr.element.IDaoElement> fields, Set<gr.uoa.di.madgik.rr.element.IDaoElement> searchables, Set<gr.uoa.di.madgik.rr.element.IDaoElement> presentables, List<String> emptyScopedSearchables, List<String> emptyScoperdPresentables) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static boolean shouldUpdateField(gr.uoa.di.madgik.rr.element.IDaoElement field,
Set<gr.uoa.di.madgik.rr.element.IDaoElement> searchables,
Set<gr.uoa.di.madgik.rr.element.IDaoElement> presentables,
List<String> emptyScopedSearchables,
List<String> emptyScoperdPresentables)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static String updateFieldSerialization(String originalSerialization, gr.uoa.di.madgik.rr.element.IDaoElement field, Set<gr.uoa.di.madgik.rr.element.IDaoElement> searchables, Set<gr.uoa.di.madgik.rr.element.IDaoElement> presentables, boolean updateFields, boolean updateSearchables, boolean updatePresentables, Set<String> deletedSearchables, Set<String> deletedPresentables) throws Exception
Exceptionpublic static String buildElementMetadataSerialization(Set<gr.uoa.di.madgik.rr.element.IDaoElement> metadata) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static String buildStaticConfigSerialization(gr.uoa.di.madgik.rr.element.IDaoElement staticConfig) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static void prefetchInMemoryItems(Set<Class<?>> itemTypes) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static boolean isClientMode()
Copyright © 2014. All Rights Reserved.