org.gcube.execution.rr.bridge
Class BridgeHelper
java.lang.Object
org.gcube.execution.rr.bridge.BridgeHelper
public class BridgeHelper
- extends Object
|
Method Summary |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BridgeHelper
public BridgeHelper()
initializeIndexTypes
public static void initializeIndexTypes()
initializeIndexTypes
public static void initializeIndexTypes(Properties config)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
retrieveScopes
public static void retrieveScopes()
throws Exception
- Throws:
Exception
getFieldModelScopes
public static List<String> getFieldModelScopes()
throws Exception
- Throws:
Exception
getElement
public static Set<gr.uoa.di.madgik.rr.element.IDaoElement> getElement(Class<?> type)
throws Exception
- Throws:
Exception
getTreeCollections
public static Set<gr.uoa.di.madgik.rr.element.IDaoElement> getTreeCollections()
throws Exception
- Throws:
Exception
getPublishedFieldResources
public static List<org.gcube.common.resources.gcore.GenericResource> getPublishedFieldResources()
throws Exception
- Throws:
Exception
getPublishedMetadataResources
public static List<org.gcube.common.resources.gcore.GenericResource> getPublishedMetadataResources()
throws Exception
- Throws:
Exception
getPublishedStaticConfigResources
public static List<org.gcube.common.resources.gcore.GenericResource> getPublishedStaticConfigResources()
throws Exception
- Throws:
Exception
getPublishedFieldResourcesForField
public static List<org.gcube.common.resources.gcore.GenericResource> getPublishedFieldResourcesForField(String fieldId)
throws Exception
- Throws:
Exception
getPublishedFieldResources
public static List<org.gcube.common.resources.gcore.GenericResource> getPublishedFieldResources(String resourceName)
throws Exception
- Throws:
Exception
getVOScope
public static String getVOScope(String scope)
getVOScopes
public static Set<String> getVOScopes(Collection<String> vreScopes)
publishFieldResource
public static void publishFieldResource(org.gcube.common.resources.gcore.GenericResource resource,
boolean isNew,
Set<String> nonUpdateVOScopes)
throws Exception
- Throws:
Exception
deleteFieldResource
public static void deleteFieldResource(org.gcube.common.resources.gcore.GenericResource resource,
Set<String> nonUpdateVOScopes)
throws Exception
- Throws:
Exception
buildFieldDirectorySerialization
public static String buildFieldDirectorySerialization(Set<gr.uoa.di.madgik.rr.element.IDaoElement> fields)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
buildFieldSerialization
public 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
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
updateFieldList
public 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
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
shouldUpdateField
public 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
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
updateFieldSerialization
public 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
- Throws:
Exception
buildElementMetadataSerialization
public static String buildElementMetadataSerialization(Set<gr.uoa.di.madgik.rr.element.IDaoElement> metadata)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
buildStaticConfigSerialization
public static String buildStaticConfigSerialization(gr.uoa.di.madgik.rr.element.IDaoElement staticConfig)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
prefetchInMemoryItems
public static void prefetchInMemoryItems(Set<Class<?>> itemTypes)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getGHNContextStartScopes
public static List<String> getGHNContextStartScopes()
getGHNContextScopes
public static List<String> getGHNContextScopes()
isClientMode
public static boolean isClientMode()
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2013. All Rights Reserved.