public class ResourceRegistryAdapter extends Object implements EnvironmentAdaptor
| Constructor and Description |
|---|
ResourceRegistryAdapter(gr.uoa.di.madgik.environment.hint.EnvHintCollection hints)
Default constructor which takes the working scope for the ResourceRegistry
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getAllCollections(String scope) |
Map<String,String> |
getAllCollectionsTypes(String scope) |
Map<String,Set<String>> |
getAllPresentableFieldsPerCollection(String scope) |
Map<String,Set<String>> |
getAllSearchableFieldsPerCollection(String scope) |
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.
|
String |
getFieldIDFromName(String fieldName) |
Map<String,String> |
getFieldsMapping(String scope) |
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.
|
long |
getLastUpdate() |
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() |
public ResourceRegistryAdapter(gr.uoa.di.madgik.environment.hint.EnvHintCollection hints)
scope - - the working scopepublic Map<String,String> getFieldsMapping(String scope) throws Exception
Exceptionpublic String getFieldIDFromName(String fieldName) throws Exception
Exceptionpublic Map<String,String> getAllCollections(String scope) throws Exception
Exceptionpublic Map<String,String> getAllCollectionsTypes(String scope) throws Exception
Exceptionpublic Map<String,Set<String>> getAllSearchableFieldsPerCollection(String scope) throws Exception
Exceptionpublic Map<String,Set<String>> getAllPresentableFieldsPerCollection(String scope) throws Exception
Exceptionpublic HashMap<String,HashSet<String>> getProjectionsPerSource(Set<String> sources, Set<String> projectionsNeeded, HashMap<String,HashSet<String>> colLangs) throws Exception
EnvironmentAdaptorgetProjectionsPerSource in interface EnvironmentAdaptorsources - - the sources of interestprojectionsNeeded - - the fields of interestcolLangs - - the collection-language pairs of interestExceptionpublic Map<String,Set<String>> getCollectionLangsByFieldRelation(Map<String,List<String>> fieldRelationMap, List<String> projections) throws Exception
EnvironmentAdaptorgetCollectionLangsByFieldRelation in interface EnvironmentAdaptorfieldRelationMap - - the search criteria specifiedprojections - - the presentation criteria specifiedExceptionpublic Set<String> getCollectionByFieldRelationLang(Map<String,List<String>> fieldRelationMap, String language, List<String> projections) throws Exception
EnvironmentAdaptorgetCollectionByFieldRelationLang in interface EnvironmentAdaptorfieldRelationMap - - the search criteria specifiedlanguage - - the language specifedprojections - - the presentation criteria specifiedExceptionpublic Set<String> getLanguageByFieldRelationCol(Map<String,List<String>> fieldRelationMap, String collection, List<String> projections) throws Exception
EnvironmentAdaptorgetLanguageByFieldRelationCol in interface EnvironmentAdaptorfieldRelationMap - - the search criteria specifiedcollection - - the collection specifiedprojections - - the presentation criteria specifiedExceptionpublic Set<String> getSourceIdsForFieldRelationCollectionLanguage(String field, String relation, String collection, String language, String indication) throws Exception
EnvironmentAdaptorgetSourceIdsForFieldRelationCollectionLanguage in interface EnvironmentAdaptorfield - - the searchable field specifiedrelation - - the relation specifiedcollection - - the collection specifiedlanguage - - the language specifiedindication - - the capability specifiedExceptionpublic long getLastUpdate()
getLastUpdate in interface EnvironmentAdaptorCopyright © 2015. All Rights Reserved.