public class SearchHelper extends Object implements SearchInfoI
| Modifier and Type | Field and Description |
|---|---|
static DocumentBuilderFactory |
dfactory
Document factory instance
|
| Constructor and Description |
|---|
SearchHelper(org.gcube.application.framework.core.session.ASLSession session) |
SearchHelper(String username,
String extSessionID) |
| Modifier and Type | Method and Description |
|---|---|
int |
addQuery(QueryGroup query) |
int |
createQuery(int qid,
boolean... previous) |
CollectionInfo |
findCollectionInfo(String collectionId) |
QueryGroup |
getActiveQueryGroup() |
int |
getActiveQueryGroupNo() |
List<QueryGroup> |
getAllQueries() |
HashMap<CollectionInfo,ArrayList<CollectionInfo>> |
getAvailableCollections() |
HashMap<CollectionInfo,ArrayList<CollectionInfo>> |
getAvailableFTSCollections() |
ArrayList<CollectionInfo> |
getExternalCollectionInfos() |
ArrayList<String> |
getExternalCollections() |
int |
getNumberOfQueryGroups() |
QueryGroup |
getQuery(int qid) |
HashMap<CollectionInfo,ArrayList<CollectionInfo>> |
refreshAvailableCollections() |
void |
removeQuery(int qid) |
List<CollectionInfo> |
searchCollections(String term,
String whereToSearch) |
void |
setActiveQueryGroup(int i) |
public static final DocumentBuilderFactory dfactory
public SearchHelper(String username, String extSessionID)
username - the username of the user that makes the requestextSessionID - the external session ID. In case of a web aplication using ASL, this is the http session IDpublic SearchHelper(org.gcube.application.framework.core.session.ASLSession session)
session - public List<QueryGroup> getAllQueries()
public HashMap<CollectionInfo,ArrayList<CollectionInfo>> getAvailableFTSCollections() throws InitialBridgingNotCompleteException, InternalErrorException
public HashMap<CollectionInfo,ArrayList<CollectionInfo>> getAvailableCollections() throws InitialBridgingNotCompleteException, InternalErrorException
public ArrayList<String> getExternalCollections() throws InitialBridgingNotCompleteException, InternalErrorException
public ArrayList<CollectionInfo> getExternalCollectionInfos() throws InitialBridgingNotCompleteException, InternalErrorException
public QueryGroup getQuery(int qid)
public int addQuery(QueryGroup query)
public void removeQuery(int qid)
public int createQuery(int qid,
boolean... previous)
public int getNumberOfQueryGroups()
public QueryGroup getActiveQueryGroup()
public int getActiveQueryGroupNo()
public void setActiveQueryGroup(int i)
public HashMap<CollectionInfo,ArrayList<CollectionInfo>> refreshAvailableCollections() throws InitialBridgingNotCompleteException, InternalErrorException
public CollectionInfo findCollectionInfo(String collectionId) throws InitialBridgingNotCompleteException, InternalErrorException
public List<CollectionInfo> searchCollections(String term, String whereToSearch) throws InitialBridgingNotCompleteException, InternalErrorException
Copyright © 2014. All Rights Reserved.