org.gcube.application.framework.contentmanagement.util
Class FindInfo

java.lang.Object
  extended by org.gcube.application.framework.contentmanagement.util.FindInfo

public class FindInfo
extends Object

Author:
Valia Tsagkalidou (NKUA), Rena Tsantouli

Field Summary
static String ALL
           
static String DESCRIPTION
           
static String NAME
           
 
Constructor Summary
FindInfo()
           
 
Method Summary
static CollectionInfo findCollectionInfo(String colID, List<CollectionInfo>[] collections)
           
static CollectionInfo findCollectionInfoFromMetadata(String metadataColID, List<CollectionInfo>[] collections)
           
static int findCollectionSchema(String schemaName, CollectionInfo collection)
           
static int findCollectionSchema(String schemaName, String schemaLanguage, CollectionInfo collection)
           
static int findCriterion(String name, String schemaName, HashMap<String,List<org.gcube.application.framework.core.util.SearchField>> SchemaHashMap)
           
static HashMap<String,String> getCollectionNames(List<CollectionInfo>[] collections)
           
static String getMCOIDFromISID(String MCISID, org.gcube.common.core.scope.GCUBEScope scope)
           
static String getRandomMetadataContentOfView(String metadataViewID, String scope)
           
static List<CollectionInfo> searchCollectionInfo(String term, String whereToSearch, List<CollectionInfo>[] collections)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL

public static final String ALL
See Also:
Constant Field Values

NAME

public static final String NAME
See Also:
Constant Field Values

DESCRIPTION

public static final String DESCRIPTION
See Also:
Constant Field Values
Constructor Detail

FindInfo

public FindInfo()
Method Detail

findCollectionInfo

public static CollectionInfo findCollectionInfo(String colID,
                                                List<CollectionInfo>[] collections)
Parameters:
colID -
collections -
Returns:

findCollectionInfoFromMetadata

public static CollectionInfo findCollectionInfoFromMetadata(String metadataColID,
                                                            List<CollectionInfo>[] collections)
Parameters:
metadataColID -
collections -
Returns:

getMCOIDFromISID

public static String getMCOIDFromISID(String MCISID,
                                      org.gcube.common.core.scope.GCUBEScope scope)
                               throws Exception
Parameters:
MCISID - metadata collection id
scope - gcube scope
Returns:
String oid
Throws:
Exception

getRandomMetadataContentOfView

public static String getRandomMetadataContentOfView(String metadataViewID,
                                                    String scope)

searchCollectionInfo

public static List<CollectionInfo> searchCollectionInfo(String term,
                                                        String whereToSearch,
                                                        List<CollectionInfo>[] collections)
Parameters:
term -
whereToSearch -
collections -
Returns:

findCollectionSchema

public static int findCollectionSchema(String schemaName,
                                       CollectionInfo collection)
Parameters:
schemaName -
collection -
Returns:

findCollectionSchema

public static int findCollectionSchema(String schemaName,
                                       String schemaLanguage,
                                       CollectionInfo collection)

findCriterion

public static int findCriterion(String name,
                                String schemaName,
                                HashMap<String,List<org.gcube.application.framework.core.util.SearchField>> SchemaHashMap)
Parameters:
name -
schemaName -
SchemaHashMap -
Returns:

getCollectionNames

public static HashMap<String,String> getCollectionNames(List<CollectionInfo>[] collections)
Parameters:
collections - the available collections in a hierarchical structure
Returns:
a HashMap: contains pairs of


Copyright © 2013. All Rights Reserved.