public class SearchImpl extends ClientImpl implements BaseSearch, Serializable
Constructor and Description |
---|
SearchImpl(String host)
SearchImpl
|
Modifier and Type | Method and Description |
---|---|
InputStream |
csvExport(String lang,
QueryParams queryParams,
boolean compact)
Csv export input stream.
|
void |
deleteSearch(int qpId)
Delete search.
|
List<QueryResult> |
find(QueryParams queryParams,
String propertiesPlugin)
Find list.
|
List<QueryResult> |
find(QueryParams queryParams,
String sortField,
boolean sortReverse,
String propertiesPlugin)
Find list.
|
List<QueryParams> |
findAllDefaultByNodeClass(long ncId)
Find all default by node class list.
|
List<QueryResult> |
findByQuery(String query,
String propertiesPlugin)
Find by query list.
|
List<QueryResult> |
findByQuery(String query,
String sortField,
boolean sortReverse,
String propertiesPlugin)
Find by query list.
|
ResultSet |
findByQueryPaginated(String query,
int offset,
int limit,
String propertiesPlugin)
Find by query paginated result set.
|
ResultSet |
findByQueryPaginated(String query,
String sortField,
boolean sortReverse,
int offset,
int limit,
String propertiesPlugin)
Find by query paginated result set.
|
ResultSet |
findPaginated(QueryParams queryParams,
int offset,
int limit,
String propertiesPlugin)
Find paginated result set.
|
ResultSet |
findPaginated(QueryParams queryParams,
String sortField,
boolean sortReverse,
int offset,
int limit,
String propertiesPlugin)
Find paginated result set.
|
SimpleNodeBaseResultSet |
findSimpleNodeBaseByQueryPaginated(String query,
int offset,
int limit)
Find simple node base by query paginated simple node base result set.
|
SimpleNodeBaseResultSet |
findSimpleNodeBaseByQueryPaginated(String query,
String sortField,
boolean sortReverse,
int offset,
int limit)
Find simple node base by query paginated simple node base result set.
|
SimpleNodeBaseResultSet |
findSimpleNodeBasePaginated(QueryParams queryParams,
int offset,
int limit)
Find simple node base paginated simple node base result set.
|
SimpleNodeBaseResultSet |
findSimpleNodeBasePaginated(QueryParams queryParams,
String sortField,
boolean sortReverse,
int offset,
int limit)
Find simple node base paginated simple node base result set.
|
List<QueryResult> |
findWithMetadata(QueryParams queryParams,
String sortField,
boolean sortReverse,
String propertiesPlugin,
List<String> groups)
Find with metadata list.
|
List<QueryResult> |
findWithMetadata(QueryParams queryParams,
String propertiesPlugin,
List<String> groups)
Find with metadata list.
|
ResultSet |
findWithMetadataPaginated(QueryParams queryParams,
int offset,
int limit,
String propertiesPlugin,
List<String> groups)
Find with metadata paginated result set.
|
ResultSet |
findWithMetadataPaginated(QueryParams queryParams,
String sortField,
boolean sortReverse,
int offset,
int limit,
String propertiesPlugin,
List<String> groups)
Find with metadata paginated result set.
|
List<QueryParams> |
getAllSearchs()
Gets all searchs.
|
List<Document> |
getCategorizedDocuments(String categoryId)
Gets categorized documents.
|
Map<String,Integer> |
getKeywordMap(List<String> filter)
Gets keyword map.
|
List<MimeType> |
getMimeTypes()
Gets mime types.
|
QueryParams |
getSearch(int qpId)
Gets search.
|
long |
saveSearch(QueryParams params)
Save search long.
|
void |
setAuthorizationToken(String authorizationToken)
setAuthenticationToken
|
void |
updateSearch(QueryParams params)
Update search.
|
getClient, resource, resource
public SearchImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public List<QueryResult> find(QueryParams queryParams, String propertiesPlugin) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
find
in interface BaseSearch
queryParams
- the query paramspropertiesPlugin
- the properties pluginAccessDeniedException
- the access denied exceptionParseException
- the parse exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic List<QueryResult> find(QueryParams queryParams, String sortField, boolean sortReverse, String propertiesPlugin) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
find
in interface BaseSearch
queryParams
- the query paramssortField
- the sort fieldsortReverse
- the sort reversepropertiesPlugin
- the properties pluginAccessDeniedException
- the access denied exceptionParseException
- the parse exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic ResultSet findPaginated(QueryParams queryParams, int offset, int limit, String propertiesPlugin) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
findPaginated
in interface BaseSearch
queryParams
- the query paramsoffset
- the offsetlimit
- the limitpropertiesPlugin
- the properties pluginAccessDeniedException
- the access denied exceptionParseException
- the parse exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic ResultSet findPaginated(QueryParams queryParams, String sortField, boolean sortReverse, int offset, int limit, String propertiesPlugin) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
findPaginated
in interface BaseSearch
queryParams
- the query paramssortField
- the sort fieldsortReverse
- the sort reverseoffset
- the offsetlimit
- the limitpropertiesPlugin
- the properties pluginAccessDeniedException
- the access denied exceptionParseException
- the parse exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic SimpleNodeBaseResultSet findSimpleNodeBasePaginated(QueryParams queryParams, int offset, int limit) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
findSimpleNodeBasePaginated
in interface BaseSearch
queryParams
- the query paramsoffset
- the offsetlimit
- the limitAccessDeniedException
- the access denied exceptionParseException
- the parse exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic SimpleNodeBaseResultSet findSimpleNodeBasePaginated(QueryParams queryParams, String sortField, boolean sortReverse, int offset, int limit) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
findSimpleNodeBasePaginated
in interface BaseSearch
queryParams
- the query paramssortField
- the sort fieldsortReverse
- the sort reverseoffset
- the offsetlimit
- the limitAccessDeniedException
- the access denied exceptionParseException
- the parse exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic Map<String,Integer> getKeywordMap(List<String> filter) throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
getKeywordMap
in interface BaseSearch
filter
- the filterAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic List<Document> getCategorizedDocuments(String categoryId) throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
getCategorizedDocuments
in interface BaseSearch
categoryId
- the category idAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic long saveSearch(QueryParams params) throws RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
saveSearch
in interface BaseSearch
params
- the paramsRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void updateSearch(QueryParams params) throws RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
updateSearch
in interface BaseSearch
params
- the paramsRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic QueryParams getSearch(int qpId) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
getSearch
in interface BaseSearch
qpId
- the qp idAccessDeniedException
- the access denied exceptionPathNotFoundException
- the path not found exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic List<QueryParams> getAllSearchs() throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
getAllSearchs
in interface BaseSearch
AccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void deleteSearch(int qpId) throws RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
deleteSearch
in interface BaseSearch
qpId
- the qp idRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic List<QueryParams> findAllDefaultByNodeClass(long ncId) throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
findAllDefaultByNodeClass
in interface BaseSearch
ncId
- the nc idAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic List<QueryResult> findByQuery(String query, String propertiesPlugin) throws ParseException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
findByQuery
in interface BaseSearch
query
- the querypropertiesPlugin
- the properties pluginParseException
- the parse exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic List<QueryResult> findByQuery(String query, String sortField, boolean sortReverse, String propertiesPlugin) throws ParseException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
findByQuery
in interface BaseSearch
query
- the querysortField
- the sort fieldsortReverse
- the sort reversepropertiesPlugin
- the properties pluginParseException
- the parse exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic ResultSet findByQueryPaginated(String query, int offset, int limit, String propertiesPlugin) throws ParseException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
findByQueryPaginated
in interface BaseSearch
query
- the queryoffset
- the offsetlimit
- the limitpropertiesPlugin
- the properties pluginParseException
- the parse exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic ResultSet findByQueryPaginated(String query, String sortField, boolean sortReverse, int offset, int limit, String propertiesPlugin) throws ParseException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
findByQueryPaginated
in interface BaseSearch
query
- the querysortField
- the sort fieldsortReverse
- the sort reverseoffset
- the offsetlimit
- the limitpropertiesPlugin
- the properties pluginParseException
- the parse exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic SimpleNodeBaseResultSet findSimpleNodeBaseByQueryPaginated(String query, int offset, int limit) throws ParseException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
findSimpleNodeBaseByQueryPaginated
in interface BaseSearch
query
- the queryoffset
- the offsetlimit
- the limitParseException
- the parse exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic SimpleNodeBaseResultSet findSimpleNodeBaseByQueryPaginated(String query, String sortField, boolean sortReverse, int offset, int limit) throws ParseException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
findSimpleNodeBaseByQueryPaginated
in interface BaseSearch
query
- the querysortField
- the sort fieldsortReverse
- the sort reverseoffset
- the offsetlimit
- the limitParseException
- the parse exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic List<QueryResult> findWithMetadata(QueryParams queryParams, String propertiesPlugin, List<String> groups) throws ParseException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
findWithMetadata
in interface BaseSearch
queryParams
- the paramspropertiesPlugin
- the properties plugingroups
- the groupsParseException
- the parse exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic List<QueryResult> findWithMetadata(QueryParams queryParams, String sortField, boolean sortReverse, String propertiesPlugin, List<String> groups) throws ParseException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
findWithMetadata
in interface BaseSearch
queryParams
- the paramssortField
- the sort fieldsortReverse
- the sort reversepropertiesPlugin
- the properties plugingroups
- the groupsParseException
- the parse exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic ResultSet findWithMetadataPaginated(QueryParams queryParams, int offset, int limit, String propertiesPlugin, List<String> groups) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
findWithMetadataPaginated
in interface BaseSearch
queryParams
- the query paramsoffset
- the offsetlimit
- the limitpropertiesPlugin
- the properties plugingroups
- the groupsAccessDeniedException
- the access denied exceptionParseException
- the parse exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic ResultSet findWithMetadataPaginated(QueryParams queryParams, String sortField, boolean sortReverse, int offset, int limit, String propertiesPlugin, List<String> groups) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
findWithMetadataPaginated
in interface BaseSearch
queryParams
- the query paramssortField
- the sort fieldsortReverse
- the sort reverseoffset
- the offsetlimit
- the limitpropertiesPlugin
- the properties plugingroups
- the groupsAccessDeniedException
- the access denied exceptionParseException
- the parse exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic List<MimeType> getMimeTypes() throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
getMimeTypes
in interface BaseSearch
AccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic InputStream csvExport(String lang, QueryParams queryParams, boolean compact) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseSearch
csvExport
in interface BaseSearch
lang
- the langqueryParams
- the query paramscompact
- the compactAccessDeniedException
- the access denied exceptionParseException
- the parse exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionCopyright © 2021 Open Knowledge Management System S.L.. All Rights Reserved.