org.gcube.execution.rr.bridge
Class BridgeHelper
java.lang.Object
org.gcube.execution.rr.bridge.BridgeHelper
public class BridgeHelper
- extends java.lang.Object
Method Summary |
static void |
bufferItems(java.util.Set<gr.uoa.di.madgik.rr.element.IDaoElement> items)
|
static java.lang.String |
buildElementMetadataSerialization(java.util.Set<gr.uoa.di.madgik.rr.element.IDaoElement> metadata)
|
static java.lang.String |
buildFieldDirectorySerialization(java.util.Set<gr.uoa.di.madgik.rr.element.IDaoElement> fields)
|
static java.lang.String |
buildFieldSerialization(gr.uoa.di.madgik.rr.element.IDaoElement field,
java.util.Set<gr.uoa.di.madgik.rr.element.IDaoElement> searchables,
java.util.Set<gr.uoa.di.madgik.rr.element.IDaoElement> presentables)
|
static gr.uoa.di.madgik.rr.element.metadata.ElementMetadata |
createElementMetadataForDataSource(java.lang.String dataSourceId,
long timestamp)
|
static void |
deleteFieldResource(org.gcube.common.core.resources.GCUBEGenericResource resource)
|
static java.util.Set<gr.uoa.di.madgik.rr.element.IDaoElement> |
getElement(java.lang.Class<?> type)
|
static org.gcube.common.core.scope.GCUBEScope[] |
getFieldModelScopes()
|
static java.util.List<org.gcube.common.core.resources.GCUBEGenericResource> |
getPublishedFieldResources()
|
static java.util.List<org.gcube.common.core.resources.GCUBEGenericResource> |
getPublishedFieldResources(java.lang.String resourceName)
|
static java.util.List<org.gcube.common.core.resources.GCUBEGenericResource> |
getPublishedFieldResourcesForField(java.lang.String fieldId)
|
static java.util.List<org.gcube.common.core.resources.GCUBEGenericResource> |
getPublishedMetadataResources()
|
static void |
initializeIndexTypes()
|
static void |
initializeIndexTypes(java.util.Properties config)
|
static void |
prefetchInMemoryItems(java.util.Set<java.lang.Class<?>> itemTypes)
|
static void |
publishFieldResource(org.gcube.common.core.resources.GCUBEGenericResource resource,
boolean isNew)
|
static void |
retrieveScopes()
|
static java.lang.String |
updateFieldSerialization(java.lang.String originalSerialization,
gr.uoa.di.madgik.rr.element.IDaoElement field,
java.util.Set<gr.uoa.di.madgik.rr.element.IDaoElement> searchables,
java.util.Set<gr.uoa.di.madgik.rr.element.IDaoElement> presentables,
boolean updateFields,
boolean updateSearchables,
boolean updatePresentables)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BridgeHelper
public BridgeHelper()
initializeIndexTypes
public static void initializeIndexTypes()
initializeIndexTypes
public static void initializeIndexTypes(java.util.Properties config)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
retrieveScopes
public static void retrieveScopes()
throws java.lang.Exception
- Throws:
java.lang.Exception
getFieldModelScopes
public static org.gcube.common.core.scope.GCUBEScope[] getFieldModelScopes()
throws java.lang.Exception
- Throws:
java.lang.Exception
getElement
public static java.util.Set<gr.uoa.di.madgik.rr.element.IDaoElement> getElement(java.lang.Class<?> type)
throws java.lang.Exception
- Throws:
java.lang.Exception
createElementMetadataForDataSource
public static gr.uoa.di.madgik.rr.element.metadata.ElementMetadata createElementMetadataForDataSource(java.lang.String dataSourceId,
long timestamp)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getPublishedFieldResources
public static java.util.List<org.gcube.common.core.resources.GCUBEGenericResource> getPublishedFieldResources()
throws java.lang.Exception
- Throws:
java.lang.Exception
getPublishedMetadataResources
public static java.util.List<org.gcube.common.core.resources.GCUBEGenericResource> getPublishedMetadataResources()
throws java.lang.Exception
- Throws:
java.lang.Exception
getPublishedFieldResourcesForField
public static java.util.List<org.gcube.common.core.resources.GCUBEGenericResource> getPublishedFieldResourcesForField(java.lang.String fieldId)
throws java.lang.Exception
- Throws:
java.lang.Exception
getPublishedFieldResources
public static java.util.List<org.gcube.common.core.resources.GCUBEGenericResource> getPublishedFieldResources(java.lang.String resourceName)
throws java.lang.Exception
- Throws:
java.lang.Exception
publishFieldResource
public static void publishFieldResource(org.gcube.common.core.resources.GCUBEGenericResource resource,
boolean isNew)
throws java.lang.Exception
- Throws:
java.lang.Exception
deleteFieldResource
public static void deleteFieldResource(org.gcube.common.core.resources.GCUBEGenericResource resource)
throws java.lang.Exception
- Throws:
java.lang.Exception
buildFieldDirectorySerialization
public static java.lang.String buildFieldDirectorySerialization(java.util.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 java.lang.String buildFieldSerialization(gr.uoa.di.madgik.rr.element.IDaoElement field,
java.util.Set<gr.uoa.di.madgik.rr.element.IDaoElement> searchables,
java.util.Set<gr.uoa.di.madgik.rr.element.IDaoElement> presentables)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
updateFieldSerialization
public static java.lang.String updateFieldSerialization(java.lang.String originalSerialization,
gr.uoa.di.madgik.rr.element.IDaoElement field,
java.util.Set<gr.uoa.di.madgik.rr.element.IDaoElement> searchables,
java.util.Set<gr.uoa.di.madgik.rr.element.IDaoElement> presentables,
boolean updateFields,
boolean updateSearchables,
boolean updatePresentables)
throws java.lang.Exception
- Throws:
java.lang.Exception
buildElementMetadataSerialization
public static java.lang.String buildElementMetadataSerialization(java.util.Set<gr.uoa.di.madgik.rr.element.IDaoElement> metadata)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
bufferItems
public static void bufferItems(java.util.Set<gr.uoa.di.madgik.rr.element.IDaoElement> items)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
prefetchInMemoryItems
public static void prefetchInMemoryItems(java.util.Set<java.lang.Class<?>> itemTypes)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException