@Consumes(value={"application/xml","application/json"}) @Produces(value={"application/xml","application/json"}) @Path(value="/search") public class SearchService extends Object
Constructor and Description |
---|
SearchService() |
@GET @Path(value="/findByContent") public QueryResultList findByContent(@QueryParam(value="content") String content) throws GenericException
GenericException
@GET @Path(value="/findByName") public QueryResultList findByName(@QueryParam(value="name") String name) throws GenericException
GenericException
@GET @Path(value="/findByKeywords") public QueryResultList findByKeywords(@QueryParam(value="keyword") List<String> keywords) throws GenericException
GenericException
@GET @Path(value="/find") public QueryResultList find(@QueryParam(value="content") String content, @QueryParam(value="name") String name, @DefaultValue(value="1") @QueryParam(value="domain") int domain, @QueryParam(value="keyword") List<String> keywords, @QueryParam(value="category") List<String> categories, @QueryParam(value="property") List<String> properties, @QueryParam(value="author") String author, @QueryParam(value="mimeType") String mimeType, @QueryParam(value="lastModifiedFrom") String lastModifiedFrom, @QueryParam(value="lastModifiedTo") String lastModifiedTo, @QueryParam(value="mailSubject") String mailSubject, @QueryParam(value="mailFrom") String mailFrom, @QueryParam(value="mailTo") String mailTo, @QueryParam(value="path") String path) throws GenericException
GenericException
@GET @Path(value="/findPaginated") public ResultSet findPaginated(@DefaultValue(value="0") @QueryParam(value="offset") int offset, @DefaultValue(value="10") @QueryParam(value="limit") int limit, @QueryParam(value="content") String content, @QueryParam(value="name") String name, @DefaultValue(value="1") @QueryParam(value="domain") int domain, @QueryParam(value="keyword") List<String> keywords, @QueryParam(value="category") List<String> categories, @QueryParam(value="property") List<String> properties, @QueryParam(value="author") String author, @QueryParam(value="mimeType") String mimeType, @QueryParam(value="lastModifiedFrom") String lastModifiedFrom, @QueryParam(value="lastModifiedTo") String lastModifiedTo, @QueryParam(value="mailSubject") String mailSubject, @QueryParam(value="mailFrom") String mailFrom, @QueryParam(value="mailTo") String mailTo, @QueryParam(value="path") String path) throws GenericException
GenericException
@GET @Path(value="/findSimpleQueryPaginated") public ResultSet findSimpleQueryPaginated(@DefaultValue(value="0") @QueryParam(value="offset") int offset, @DefaultValue(value="10") @QueryParam(value="limit") int limit, @QueryParam(value="statement") String statement) throws GenericException
GenericException
@GET @Path(value="/findSimpleQueryPaginated/{uuid}/{max}") public ResultSet findMoreLikeThis(@PathParam(value="uuid") String uuid, @PathParam(value="max") int max) throws GenericException
GenericException
@GET @Path(value="/getKeywordMap") public KeywordMapList getKeywordMap(@QueryParam(value="filter") String[] filter) throws GenericException
GenericException
@GET @Path(value="/getCategorizedDocuments/{categoryId}") public DocumentList getCategorizedDocuments(@PathParam(value="categoryId") String categoryId) throws GenericException
GenericException
@POST @Path(value="/saveSearch") @Produces(value="text/plain") public Long saveSearch(QueryParams params) throws GenericException
GenericException
@PUT @Path(value="/updateSearch") public void updateSearch(QueryParams params) throws GenericException
GenericException
@GET @Path(value="/getSearch/{qpId}") public QueryParams getSearch(@PathParam(value="qpId") int qpId) throws GenericException
GenericException
@GET @Path(value="/getAllSearchs") public QueryParamsList getAllSearchs() throws GenericException
GenericException
@DELETE @Path(value="/deleteSearch/{qpId}") public void deleteSearch(@PathParam(value="qpId") int qpId) throws GenericException
GenericException
Copyright © 2019 Open Knowledge Management System S.L.. All rights reserved.