|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.searchsystem.environmentadaptor.ResourceRegistryAdapter
public class ResourceRegistryAdapter
| Constructor Summary | |
|---|---|
ResourceRegistryAdapter(gr.uoa.di.madgik.environment.hint.EnvHintCollection hints)
Default constructor which takes the working scope for the ResourceRegistry |
|
| Method Summary | |
|---|---|
Set<String> |
getCollectionByFieldRelationLang(Map<String,List<String>> fieldRelationMap,
String language,
List<String> projections)
Get the collections for a number of criteria and a specific language. |
Map<String,Set<String>> |
getCollectionLangsByFieldRelation(Map<String,List<String>> fieldRelationMap,
List<String> projections)
Get the collection-languages pairs for a number of criteria. |
Set<String> |
getLanguageByFieldRelationCol(Map<String,List<String>> fieldRelationMap,
String collection,
List<String> projections)
Get the languages for a number of criteria and a specific collection. |
HashMap<String,HashSet<String>> |
getProjectionsPerSource(Set<String> sources,
Set<String> projectionsNeeded,
HashMap<String,HashSet<String>> colLangs)
Get the fields projected by each of the sources of the input. |
Set<String> |
getSourceIdsForFieldRelationCollectionLanguage(String field,
String relation,
String collection,
String language,
String indication)
Get source identifiers for all the sources that publish a searchable field for a specific collection and language AND they also support the specified relation, and they provide the capability(e.g. |
static boolean |
initializeAdapter()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceRegistryAdapter(gr.uoa.di.madgik.environment.hint.EnvHintCollection hints)
scope - - the working scope| Method Detail |
|---|
public static boolean initializeAdapter()
throws Exception
Exception
public HashMap<String,HashSet<String>> getProjectionsPerSource(Set<String> sources,
Set<String> projectionsNeeded,
HashMap<String,HashSet<String>> colLangs)
throws Exception
EnvironmentAdaptor
getProjectionsPerSource in interface EnvironmentAdaptorsources - - the sources of interestprojectionsNeeded - - the fields of interestcolLangs - - the collection-language pairs of interest
Exception
public Map<String,Set<String>> getCollectionLangsByFieldRelation(Map<String,List<String>> fieldRelationMap,
List<String> projections)
throws Exception
EnvironmentAdaptor
getCollectionLangsByFieldRelation in interface EnvironmentAdaptorfieldRelationMap - - the search criteria specifiedprojections - - the presentation criteria specified
Exception
public Set<String> getCollectionByFieldRelationLang(Map<String,List<String>> fieldRelationMap,
String language,
List<String> projections)
throws Exception
EnvironmentAdaptor
getCollectionByFieldRelationLang in interface EnvironmentAdaptorfieldRelationMap - - the search criteria specifiedlanguage - - the language specifedprojections - - the presentation criteria specified
Exception
public Set<String> getLanguageByFieldRelationCol(Map<String,List<String>> fieldRelationMap,
String collection,
List<String> projections)
throws Exception
EnvironmentAdaptor
getLanguageByFieldRelationCol in interface EnvironmentAdaptorfieldRelationMap - - the search criteria specifiedcollection - - the collection specifiedprojections - - the presentation criteria specified
Exception
public Set<String> getSourceIdsForFieldRelationCollectionLanguage(String field,
String relation,
String collection,
String language,
String indication)
throws Exception
EnvironmentAdaptor
getSourceIdsForFieldRelationCollectionLanguage in interface EnvironmentAdaptorfield - - the searchable field specifiedrelation - - the relation specifiedcollection - - the collection specifiedlanguage - - the language specifiedindication - - the capability specified
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||