public class SearchService extends Object
Constructor and Description |
---|
SearchService() |
Modifier and Type | Method and Description |
---|---|
void |
deleteSearch(String token,
int qpId) |
QueryResult[] |
find(String token,
QueryParams params) |
QueryResult[] |
findByContent(String token,
String content) |
QueryResult[] |
findByKeywords(String token,
String[] keywords) |
QueryResult[] |
findByName(String token,
String name) |
QueryParams[] |
getAllSearchs(String token) |
Document[] |
getCategorizedDocuments(String token,
String categoryId) |
IntegerPair[] |
getKeywordMap(String token,
String[] filter) |
QueryParams |
getSearch(String token,
int qpId) |
long |
saveSearch(String token,
QueryParams params) |
void |
updateSearch(String token,
QueryParams params) |
public QueryResult[] findByContent(String token, String content) throws IOException, ParseException, RepositoryException, DatabaseException
public QueryResult[] findByName(String token, String name) throws IOException, ParseException, RepositoryException, DatabaseException
public QueryResult[] findByKeywords(String token, String[] keywords) throws IOException, ParseException, RepositoryException, DatabaseException
public QueryResult[] find(String token, QueryParams params) throws IOException, ParseException, RepositoryException, DatabaseException
public IntegerPair[] getKeywordMap(String token, String[] filter) throws RepositoryException, DatabaseException
RepositoryException
DatabaseException
public Document[] getCategorizedDocuments(String token, String categoryId) throws RepositoryException, DatabaseException
RepositoryException
DatabaseException
public long saveSearch(String token, QueryParams params) throws AccessDeniedException, RepositoryException, DatabaseException
public void updateSearch(String token, QueryParams params) throws AccessDeniedException, RepositoryException, DatabaseException
public QueryParams getSearch(String token, int qpId) throws PathNotFoundException, RepositoryException, DatabaseException
public QueryParams[] getAllSearchs(String token) throws RepositoryException, DatabaseException
RepositoryException
DatabaseException
public void deleteSearch(String token, int qpId) throws AccessDeniedException, RepositoryException, DatabaseException
Copyright © 2015. All Rights Reserved.