Package com.openkm.sdk4j.definition
Interface BaseSearch
-
- All Known Implementing Classes:
SearchImpl
public interface BaseSearchBaseSearch- Author:
- sochoa
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamcsvExport(String lang, QueryParams queryParams, boolean compact)Csv export input stream.voiddeleteSearch(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.SimpleNodeBaseResultSetfindSimpleNodeBaseByQueryPaginated(String query, int offset, int limit)Find simple node base by query paginated simple node base result set.SimpleNodeBaseResultSetfindSimpleNodeBaseByQueryPaginated(String query, String sortField, boolean sortReverse, int offset, int limit)Find simple node base by query paginated simple node base result set.SimpleNodeBaseResultSetfindSimpleNodeBasePaginated(QueryParams queryParams, int offset, int limit)Find simple node base paginated simple node base result set.SimpleNodeBaseResultSetfindSimpleNodeBasePaginated(QueryParams queryParams, String sortField, boolean sortReverse, int offset, int limit)Find simple node base paginated simple node base result set.SimpleNodeBaseResultSetfindSimpleNodeBasePaginated(QueryParams queryParams, String sortField, boolean sortReverse, int offset, int limit, String pluginName)Find simple node base paginated simple node base result set.List<QueryResult>findWithMetadata(QueryParams params, String sortField, boolean sortReverse, String propertiesPlugin, List<String> groups)Find with metadata list.List<QueryResult>findWithMetadata(QueryParams params, String propertiesPlugin, List<String> groups)Find with metadata list.ResultSetfindWithMetadataPaginated(QueryParams queryParams, int offset, int limit, String propertiesPlugin, List<String> groups)Find with metadata paginated result set.ResultSetfindWithMetadataPaginated(QueryParams queryParams, String sortField, boolean sortReverse, int offset, int limit, String propertiesPlugin, List<String> groups)Find with metadata paginated result set.List<QueryParams>getAllSearches()Gets all searches.List<Document>getCategorizedDocuments(String categoryId)Gets categorized documents.QueryParamsgetSearch(int qpId)Gets search.NodeSearchConfiggetSearchConfig(String pluginName)Gets search config.longsaveSearch(QueryParams params)Save search long.voidupdateSearch(QueryParams params)Update search.
-
-
-
Method Detail
-
find
List<QueryResult> find(QueryParams queryParams, String propertiesPlugin) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Find list.- Parameters:
queryParams- the query paramspropertiesPlugin- the properties plugin- Returns:
- the list
- Throws:
AccessDeniedException- the access denied exceptionParseException- the parse exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
find
List<QueryResult> find(QueryParams queryParams, String sortField, boolean sortReverse, String propertiesPlugin) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Find list.- Parameters:
queryParams- the query paramssortField- the sort fieldsortReverse- the sort reversepropertiesPlugin- the properties plugin- Returns:
- the list
- Throws:
AccessDeniedException- the access denied exceptionParseException- the parse exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
findSimpleNodeBasePaginated
SimpleNodeBaseResultSet findSimpleNodeBasePaginated(QueryParams queryParams, int offset, int limit) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Find simple node base paginated simple node base result set.- Parameters:
queryParams- the query paramsoffset- the offsetlimit- the limit- Returns:
- the simple node base result set
- Throws:
AccessDeniedException- the access denied exceptionParseException- the parse exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
findSimpleNodeBasePaginated
SimpleNodeBaseResultSet findSimpleNodeBasePaginated(QueryParams queryParams, String sortField, boolean sortReverse, int offset, int limit) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Find simple node base paginated simple node base result set.- Parameters:
queryParams- the query paramssortField- the sort fieldsortReverse- the sort reverseoffset- the offsetlimit- the limit- Returns:
- the simple node base result set
- Throws:
AccessDeniedException- the access denied exceptionParseException- the parse exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
findSimpleNodeBasePaginated
SimpleNodeBaseResultSet findSimpleNodeBasePaginated(QueryParams queryParams, String sortField, boolean sortReverse, int offset, int limit, String pluginName) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Find simple node base paginated simple node base result set.- Parameters:
queryParams- the query paramssortField- the sort fieldsortReverse- the sort reverseoffset- the offsetlimit- the limitpluginName- the plugin name- Returns:
- the simple node base result set
- Throws:
AccessDeniedException- the access denied exceptionParseException- the parse exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
findWithMetadata
List<QueryResult> findWithMetadata(QueryParams params, String propertiesPlugin, List<String> groups) throws ParseException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Find with metadata list.- Parameters:
params- the paramspropertiesPlugin- the properties plugingroups- the groups- Returns:
- the list
- Throws:
ParseException- the parse exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
findWithMetadata
List<QueryResult> findWithMetadata(QueryParams params, String sortField, boolean sortReverse, String propertiesPlugin, List<String> groups) throws ParseException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Find with metadata list.- Parameters:
params- the paramssortField- the sort fieldsortReverse- the sort reversepropertiesPlugin- the properties plugingroups- the groups- Returns:
- the list
- Throws:
ParseException- the parse exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
findWithMetadataPaginated
ResultSet findWithMetadataPaginated(QueryParams queryParams, int offset, int limit, String propertiesPlugin, List<String> groups) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Find with metadata paginated result set.- Parameters:
queryParams- the query paramsoffset- the offsetlimit- the limitpropertiesPlugin- the properties plugingroups- the groups- Returns:
- the result set
- Throws:
AccessDeniedException- the access denied exceptionParseException- the parse exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
findWithMetadataPaginated
ResultSet findWithMetadataPaginated(QueryParams queryParams, String sortField, boolean sortReverse, int offset, int limit, String propertiesPlugin, List<String> groups) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Find with metadata paginated result set.- Parameters:
queryParams- the query paramssortField- the sort fieldsortReverse- the sort reverseoffset- the offsetlimit- the limitpropertiesPlugin- the properties plugingroups- the groups- Returns:
- the result set
- Throws:
AccessDeniedException- the access denied exceptionParseException- the parse exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
findByQuery
List<QueryResult> findByQuery(String query, String propertiesPlugin) throws ParseException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Find by query list.- Parameters:
query- the querypropertiesPlugin- the properties plugin- Returns:
- the list
- Throws:
ParseException- the parse exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
findByQuery
List<QueryResult> findByQuery(String query, String sortField, boolean sortReverse, String propertiesPlugin) throws ParseException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Find by query list.- Parameters:
query- the querysortField- the sort fieldsortReverse- the sort reversepropertiesPlugin- the properties plugin- Returns:
- the list
- Throws:
ParseException- the parse exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
findSimpleNodeBaseByQueryPaginated
SimpleNodeBaseResultSet findSimpleNodeBaseByQueryPaginated(String query, int offset, int limit) throws ParseException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Find simple node base by query paginated simple node base result set.- Parameters:
query- the queryoffset- the offsetlimit- the limit- Returns:
- the simple node base result set
- Throws:
ParseException- the parse exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
findSimpleNodeBaseByQueryPaginated
SimpleNodeBaseResultSet findSimpleNodeBaseByQueryPaginated(String query, String sortField, boolean sortReverse, int offset, int limit) throws ParseException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Find simple node base by query paginated simple node base result set.- Parameters:
query- the querysortField- the sort fieldsortReverse- the sort reverseoffset- the offsetlimit- the limit- Returns:
- the simple node base result set
- Throws:
ParseException- the parse exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getCategorizedDocuments
List<Document> getCategorizedDocuments(String categoryId) throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets categorized documents.- Parameters:
categoryId- the category id- Returns:
- the categorized documents
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
saveSearch
long saveSearch(QueryParams params) throws RepositoryException, DatabaseException, UnknownException, WebserviceException
Save search long.- Parameters:
params- the params- Returns:
- the long
- Throws:
RepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
updateSearch
void updateSearch(QueryParams params) throws RepositoryException, DatabaseException, UnknownException, WebserviceException
Update search.- Parameters:
params- the params- Throws:
RepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getSearch
QueryParams getSearch(int qpId) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets search.- Parameters:
qpId- the qp id- Returns:
- the search
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getAllSearches
List<QueryParams> getAllSearches() throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets all searches.- Returns:
- the all searches
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
deleteSearch
void deleteSearch(int qpId) throws RepositoryException, DatabaseException, UnknownException, WebserviceExceptionDelete search.- Parameters:
qpId- the qp id- Throws:
RepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getSearchConfig
NodeSearchConfig getSearchConfig(String pluginName) throws UnknownException, WebserviceException
Gets search config.- Parameters:
pluginName- the plugin name- Returns:
- search config
- Throws:
UnknownException- the unknown exceptionWebserviceException- the webservice exception
-
findAllDefaultByNodeClass
List<QueryParams> findAllDefaultByNodeClass(long ncId) throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Find all default by node class list.- Parameters:
ncId- the nc id- Returns:
- the list
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
csvExport
InputStream csvExport(String lang, QueryParams queryParams, boolean compact) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Csv export input stream.- Parameters:
lang- the langqueryParams- the query paramscompact- the compact- Returns:
- the input stream
- Throws:
AccessDeniedException- the access denied exceptionParseException- the parse exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
-