public class FindFieldsInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ALL |
static String |
CATALINA_EXCLUDED_FIELDS_PROP_FILEPATH |
static String |
DESCRIPTION |
static DocumentBuilderFactory |
dfactory
Document factory instance
|
static String |
EXCLUDED_BROWSABLE_FIELD_NAMES_PROP |
static List<String> |
excludedBrowsableFieldNames |
static String |
LOCAL_EXCLUDED_FIELDS_PROP_FILEPATH |
static String |
NAME |
| Constructor and Description |
|---|
FindFieldsInfo() |
| Modifier and Type | Method and Description |
|---|---|
protected static List<gr.uoa.di.madgik.rr.element.search.Field> |
filterOutBrowsableFields(List<gr.uoa.di.madgik.rr.element.search.Field> initialList,
List<String> notAllowedFieldNames) |
static CollectionInfo |
findCollectionInfo(String colID,
HashMap<CollectionInfo,ArrayList<CollectionInfo>> collections) |
static String |
findCollectionName(String id,
String scope) |
protected static CollectionInfo |
getCollectionInfoById(String colId,
List<CollectionInfo> collections)
Finds the collection info object of the collection with the given id.
|
static ArrayList<Field> |
getCollectionPresentationFields(String colId,
org.gcube.application.framework.core.session.ASLSession session) |
static HashMap<CollectionInfo,ArrayList<CollectionInfo>> |
joinDynamicAndStaticConfiguration(String scope,
boolean refresh) |
protected static HashMap<CollectionInfo,ArrayList<CollectionInfo>> |
retrieveCollectionHierarchy(String VREname,
Document doc,
List<CollectionInfo> collections)
Retrieves the hierarchical structure of the available collections.
|
protected static void |
retrieveCollections(Document doc,
List<CollectionInfo> collections)
Retrieves the collections by joining information from static and dynamic
configuration.
|
static ArrayList<CollectionInfo> |
retrieveCollectionsFieldsInfos(String scope) |
protected static HashMap<CollectionInfo,ArrayList<CollectionInfo>> |
retrieveCollectionsInformation(String vre,
List<CollectionInfo> collections,
boolean refresh) |
static List<CollectionInfo> |
searchCollectionInfo(String term,
String whereToSearch,
HashMap<CollectionInfo,ArrayList<CollectionInfo>> collections) |
public static final String ALL
public static final String NAME
public static final String DESCRIPTION
public static final String LOCAL_EXCLUDED_FIELDS_PROP_FILEPATH
public static final String CATALINA_EXCLUDED_FIELDS_PROP_FILEPATH
public static final String EXCLUDED_BROWSABLE_FIELD_NAMES_PROP
public static final DocumentBuilderFactory dfactory
public static HashMap<CollectionInfo,ArrayList<CollectionInfo>> joinDynamicAndStaticConfiguration(String scope, boolean refresh) throws InitialBridgingNotCompleteException, InternalErrorException
public static ArrayList<CollectionInfo> retrieveCollectionsFieldsInfos(String scope) throws InitialBridgingNotCompleteException, InternalErrorException
protected static List<gr.uoa.di.madgik.rr.element.search.Field> filterOutBrowsableFields(List<gr.uoa.di.madgik.rr.element.search.Field> initialList, List<String> notAllowedFieldNames)
protected static HashMap<CollectionInfo,ArrayList<CollectionInfo>> retrieveCollectionsInformation(String vre, List<CollectionInfo> collections, boolean refresh) throws Exception
Exceptionprotected static void retrieveCollections(Document doc, List<CollectionInfo> collections)
doc - document which holds the collectionscollections - the list containing the collectionsprotected static HashMap<CollectionInfo,ArrayList<CollectionInfo>> retrieveCollectionHierarchy(String VREname, Document doc, List<CollectionInfo> collections) throws Exception
VREname - the VRE name of the active VREdoc - document which holds the collectionscollections - the available collectionsException - an Exception occurred during processingprotected static CollectionInfo getCollectionInfoById(String colId, List<CollectionInfo> collections)
collectionId - the id of the collectioncollections - a list containing all the collectionspublic static ArrayList<Field> getCollectionPresentationFields(String colId, org.gcube.application.framework.core.session.ASLSession session) throws InitialBridgingNotCompleteException, InternalErrorException
public static CollectionInfo findCollectionInfo(String colID, HashMap<CollectionInfo,ArrayList<CollectionInfo>> collections)
colID - collections - public static List<CollectionInfo> searchCollectionInfo(String term, String whereToSearch, HashMap<CollectionInfo,ArrayList<CollectionInfo>> collections)
term - whereToSearch - collections - Copyright © 2014. All Rights Reserved.