public class SearchImpl extends ClientImpl implements BaseSearch
| Constructor and Description |
|---|
SearchImpl(String host,
String user,
String password,
BeanHelper beanHelper)
SearchImpl
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteSearch(int qpId) |
List<QueryResult> |
find(QueryParams queryParams,
String propertiesPlugin) |
List<QueryResult> |
findByContent(String content) |
List<QueryResult> |
findByKeywords(List<String> keywords) |
List<QueryResult> |
findByName(String name) |
List<QueryResult> |
findByQuery(String query,
String propertiesPlugin) |
List<QueryResult> |
findByQueryPaginated(String query,
int offset,
int limit,
String propertiesPlugin) |
ResultSet |
findMoreLikeThis(String uuid,
int max) |
ResultSet |
findPaginated(QueryParams queryParams,
int offset,
int limit,
String propertiesPlugin) |
ResultSet |
findSimpleQueryPaginated(String statement,
int offset,
int limit) |
List<QueryParams> |
getAllSearchs() |
List<Document> |
getCategorizedDocuments(String categoryId) |
Map<String,Integer> |
getKeywordMap(List<String> filter) |
QueryParams |
getSearch(int qpId) |
long |
saveSearch(QueryParams params) |
void |
updateSearch(QueryParams params) |
getClientpublic SearchImpl(String host, String user, String password, BeanHelper beanHelper)
public List<QueryResult> findByContent(String content) throws AccessDeniedException, IOException, ParseException, RepositoryException, DatabaseException, UnknowException, WebserviceException
findByContent in interface BaseSearchAccessDeniedExceptionIOExceptionParseExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<QueryResult> findByName(String name) throws AccessDeniedException, IOException, ParseException, RepositoryException, DatabaseException, UnknowException, WebserviceException
findByName in interface BaseSearchAccessDeniedExceptionIOExceptionParseExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<QueryResult> findByKeywords(List<String> keywords) throws AccessDeniedException, IOException, ParseException, RepositoryException, DatabaseException, UnknowException, WebserviceException
findByKeywords in interface BaseSearchAccessDeniedExceptionIOExceptionParseExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<QueryResult> find(QueryParams queryParams, String propertiesPlugin) throws AccessDeniedException, IOException, ParseException, RepositoryException, DatabaseException, UnknowException, WebserviceException
find in interface BaseSearchAccessDeniedExceptionIOExceptionParseExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic ResultSet findPaginated(QueryParams queryParams, int offset, int limit, String propertiesPlugin) throws AccessDeniedException, IOException, ParseException, RepositoryException, DatabaseException, UnknowException, WebserviceException
findPaginated in interface BaseSearchAccessDeniedExceptionIOExceptionParseExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic ResultSet findSimpleQueryPaginated(String statement, int offset, int limit) throws AccessDeniedException, IOException, ParseException, RepositoryException, DatabaseException, UnknowException, WebserviceException
findSimpleQueryPaginated in interface BaseSearchAccessDeniedExceptionIOExceptionParseExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic ResultSet findMoreLikeThis(String uuid, int max) throws AccessDeniedException, IOException, ParseException, RepositoryException, DatabaseException, UnknowException, WebserviceException
findMoreLikeThis in interface BaseSearchAccessDeniedExceptionIOExceptionParseExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic Map<String,Integer> getKeywordMap(List<String> filter) throws AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
getKeywordMap in interface BaseSearchAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<Document> getCategorizedDocuments(String categoryId) throws AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
getCategorizedDocuments in interface BaseSearchAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic long saveSearch(QueryParams params) throws AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
saveSearch in interface BaseSearchAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void updateSearch(QueryParams params) throws AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
updateSearch in interface BaseSearchAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic QueryParams getSearch(int qpId) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknowException, WebserviceException
getSearch in interface BaseSearchAccessDeniedExceptionPathNotFoundExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<QueryParams> getAllSearchs() throws AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
getAllSearchs in interface BaseSearchAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void deleteSearch(int qpId)
throws AccessDeniedException,
RepositoryException,
DatabaseException,
UnknowException,
WebserviceException
deleteSearch in interface BaseSearchAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<QueryResult> findByQuery(String query, String propertiesPlugin) throws IOException, ParseException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
findByQuery in interface BaseSearchIOExceptionParseExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<QueryResult> findByQueryPaginated(String query, int offset, int limit, String propertiesPlugin) throws IOException, ParseException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
findByQueryPaginated in interface BaseSearchIOExceptionParseExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionCopyright © 2016 Open Knowledge Management System S.L.. All rights reserved.