gr.uoa.di.madgik.rr.element.query
Class QueryHelper
java.lang.Object
gr.uoa.di.madgik.rr.element.query.QueryHelper
public class QueryHelper
- extends Object
|
Method Summary |
static Set<String> |
getCapabilitiesByFieldCollection(Field f,
String collection)
|
static Set<String> |
getCollectionByFieldRelationLang(Map<String,List<String>> fieldRelationMap,
String language,
List<String> projections,
String scope)
|
static Set<String> |
getCollectionByFieldRelationLang(String field,
List<String> relations,
String language,
List<String> projections,
String scope)
|
static Map<String,Set<Field>> |
getCollectionFieldsByPresentationInfo(Set<String> info)
|
static Map<String,Set<String>> |
getCollectionLangsByFieldRelation(Map<String,List<String>> fieldRelationMap,
List<String> projections,
String scope)
|
static Set<DataCollection> |
getExternalCollections()
|
static Set<DataCollection> |
getExternalCollectionsOfScope(String scope)
|
static String |
GetFieldNameById(String id)
|
static Set<Field> |
getFieldsByPresentationInfo(Set<String> info)
|
static Set<String> |
getLanguageByFieldRelationCol(Map<String,List<String>> fieldRelationMap,
String collection,
List<String> projections,
String scope)
|
static Set<String> |
getLanguageByFieldRelationCol(String field,
List<String> relations,
String collection,
List<String> projections,
String scope)
|
static Set<String> |
getPresentationInfoOfField(Field f)
|
static HashMap<String,HashSet<String>> |
getProjectionsPerSource(Set<String> sources,
Set<String> projectionsNeeded,
HashMap<String,HashSet<String>> colLangs,
String scope)
|
static DataSource |
GetSourceById(String id)
|
static List<String> |
getSourceIdsForFieldRelationCollectionLanguage(String field,
String relation,
String collection,
String language,
String scope)
|
static List<DataSource> |
GetSources(String type)
|
static DataSourceService |
GetSourceServiceById(String id)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryHelper
public QueryHelper()
getCollectionLangsByFieldRelation
public static Map<String,Set<String>> getCollectionLangsByFieldRelation(Map<String,List<String>> fieldRelationMap,
List<String> projections,
String scope)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getLanguageByFieldRelationCol
public static Set<String> getLanguageByFieldRelationCol(Map<String,List<String>> fieldRelationMap,
String collection,
List<String> projections,
String scope)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getCollectionByFieldRelationLang
public static Set<String> getCollectionByFieldRelationLang(Map<String,List<String>> fieldRelationMap,
String language,
List<String> projections,
String scope)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getLanguageByFieldRelationCol
public static Set<String> getLanguageByFieldRelationCol(String field,
List<String> relations,
String collection,
List<String> projections,
String scope)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getCollectionByFieldRelationLang
public static Set<String> getCollectionByFieldRelationLang(String field,
List<String> relations,
String language,
List<String> projections,
String scope)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getCollectionFieldsByPresentationInfo
public static Map<String,Set<Field>> getCollectionFieldsByPresentationInfo(Set<String> info)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getFieldsByPresentationInfo
public static Set<Field> getFieldsByPresentationInfo(Set<String> info)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getPresentationInfoOfField
public static Set<String> getPresentationInfoOfField(Field f)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getExternalCollectionsOfScope
public static Set<DataCollection> getExternalCollectionsOfScope(String scope)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getExternalCollections
public static Set<DataCollection> getExternalCollections()
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getCapabilitiesByFieldCollection
public static Set<String> getCapabilitiesByFieldCollection(Field f,
String collection)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getSourceIdsForFieldRelationCollectionLanguage
public static List<String> getSourceIdsForFieldRelationCollectionLanguage(String field,
String relation,
String collection,
String language,
String scope)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getProjectionsPerSource
public static HashMap<String,HashSet<String>> getProjectionsPerSource(Set<String> sources,
Set<String> projectionsNeeded,
HashMap<String,HashSet<String>> colLangs,
String scope)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
GetSourceById
public static DataSource GetSourceById(String id)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
GetSourceServiceById
public static DataSourceService GetSourceServiceById(String id)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
GetFieldNameById
public static String GetFieldNameById(String id)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
GetSources
public static List<DataSource> GetSources(String type)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
Copyright © 2012. All Rights Reserved.