Package com.logicaldoc.web.service
Class SearchServiceImpl
- java.lang.Object
- 
- javax.servlet.GenericServlet
- 
- javax.servlet.http.HttpServlet
- 
- com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
- 
- com.google.gwt.user.server.rpc.RemoteServiceServlet
- 
- com.logicaldoc.web.service.AbstractRemoteService
- 
- com.logicaldoc.web.service.SearchServiceImpl
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.RemoteService,- com.google.gwt.user.server.rpc.SerializationPolicyProvider,- SearchService,- Serializable,- javax.servlet.Servlet,- javax.servlet.ServletConfig
 
 public class SearchServiceImpl extends AbstractRemoteService implements SearchService Implementation of the SearchService- Since:
- 6.0
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.logicaldoc.gui.frontend.client.services.SearchServiceSearchService.Instance
 
- 
 - 
Constructor SummaryConstructors Constructor Description SearchServiceImpl()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(String[] names)Deletes a previously saved searchstatic List<SearchOptions>getSearches(Session session)Load all the search options associated to all the searches saved for the current userGUISearchOptionsload(String name)Loads a saved searchbooleansave(GUISearchOptions options)Saves the search options in the user's working dirGUIResultsearch(GUISearchOptions options)Performs a search against the databasevoidshareSearch(String name, long[] userIds, long[] groupIds)Shares a search among a set of users and groups- 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServletgetSerializationPolicy, init, processCall, processCall, processPost
 
- 
 
- 
- 
- 
Method Detail- 
searchpublic GUIResult search(GUISearchOptions options) throws ServerException Description copied from interface:SearchServicePerforms a search against the database- Specified by:
- searchin interface- SearchService
- Parameters:
- options- The search options
- Returns:
- Result hits and statistics
- Throws:
- ServerException- error in the server application
 
 - 
savepublic boolean save(GUISearchOptions options) throws ServerException Description copied from interface:SearchServiceSaves the search options in the user's working dir- Specified by:
- savein interface- SearchService
- Parameters:
- options- The search options
- Returns:
- true if the operation was successful and there were no duplicates
- Throws:
- ServerException- error in the server application
 
 - 
deletepublic void delete(String[] names) throws ServerException Description copied from interface:SearchServiceDeletes a previously saved search- Specified by:
- deletein interface- SearchService
- Parameters:
- names- The saved search names
- Throws:
- ServerException- error in the server application
 
 - 
loadpublic GUISearchOptions load(String name) throws ServerException Description copied from interface:SearchServiceLoads a saved search- Specified by:
- loadin interface- SearchService
- Parameters:
- name- The saved search name
- Returns:
- the options
- Throws:
- ServerException- error in the server application
 
 - 
getSearchespublic static List<SearchOptions> getSearches(Session session) throws PersistenceException, IOException Load all the search options associated to all the searches saved for the current user- Parameters:
- session- the current session
- Returns:
- the list of search options
- Throws:
- PersistenceException- A problem at db level
- IOException- a generic IO error
 
 - 
shareSearchpublic void shareSearch(String name, long[] userIds, long[] groupIds) throws ServerException Description copied from interface:SearchServiceShares a search among a set of users and groups- Specified by:
- shareSearchin interface- SearchService
- Parameters:
- name- the name of the search
- userIds- direct ids of users to share the search to
- groupIds- the groups of users to share the search to
- Throws:
- ServerException- share the search to
 
 
- 
 
-