Interface SearchEngineService
-
- All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
- All Known Implementing Classes:
SearchEngineServiceImpl
@RemoteServiceRelativePath("searchengine") public interface SearchEngineService extends com.google.gwt.user.client.rpc.RemoteServiceThe client side stub for the Search Engine Service.- Since:
- 6.0
- Author:
- Matteo Caruso - LogicalDOC
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSearchEngineService.Instance
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringcheck()Checks the indexerlongcountEntries()Counts the total number of entriesGUISearchEnginegetInfo()Loads a search engine that contains all search engine details.voidreorderTokenFilters(String[] filters)Reorders the token filters.voidrescheduleAll(boolean dropIndex)Reschedule all entries for indexingvoidsave(GUISearchEngine searchEngine)Saves search engine settingsvoidsaveTokenFilterSettings(String filter, GUIParameter[] settings)Saves the settings of the specified token filtervoidsetAliases(String extension, String aliases)Sets the parser aliases for the given extension.voidsetLanguageStatus(String language, boolean active)Changes the activation status of a languagevoidsetTokenFilterStatus(String language, boolean active)Changes the activation status of a token filtervoidunlock()Unlocks the indexer
-
-
-
Method Detail
-
getInfo
GUISearchEngine getInfo() throws ServerException
Loads a search engine that contains all search engine details.- Returns:
- details about the engine
- Throws:
ServerException- an error happened in the server application
-
countEntries
long countEntries() throws ServerExceptionCounts the total number of entries- Returns:
- number of entries in the index
- Throws:
ServerException- an error happened in the server application
-
unlock
void unlock() throws ServerExceptionUnlocks the indexer- Throws:
ServerException- an error happened in the server application
-
check
String check() throws ServerException
Checks the indexer- Returns:
- check report
- Throws:
ServerException- an error happened in the server application
-
rescheduleAll
void rescheduleAll(boolean dropIndex) throws ServerExceptionReschedule all entries for indexing- Parameters:
dropIndex- must the index be dropped also?- Throws:
ServerException- an error happened in the server application
-
save
void save(GUISearchEngine searchEngine) throws ServerException
Saves search engine settings- Parameters:
searchEngine- the engine to update- Throws:
ServerException- an error happened in the server application
-
setLanguageStatus
void setLanguageStatus(String language, boolean active) throws ServerException
Changes the activation status of a language- Parameters:
language- the language to changeactive- the new active status- Throws:
ServerException- an error happened in the server application
-
setAliases
void setAliases(String extension, String aliases) throws ServerException
Sets the parser aliases for the given extension. Aliases must be a comma-separated values- Parameters:
extension- the file extension e.g.: xmlaliases- comma-separated list of aliases e.g.: html,htmlx- Throws:
ServerException- an error happened in the server application
-
reorderTokenFilters
void reorderTokenFilters(String[] filters) throws ServerException
Reorders the token filters.- Parameters:
filters- the ordered list of the filters- Throws:
ServerException- an error happened in the server application
-
saveTokenFilterSettings
void saveTokenFilterSettings(String filter, GUIParameter[] settings) throws ServerException
Saves the settings of the specified token filter- Parameters:
filter- token filtersettings- parameters- Throws:
ServerException- an error happened in the server application
-
setTokenFilterStatus
void setTokenFilterStatus(String language, boolean active) throws ServerException
Changes the activation status of a token filter- Parameters:
language- the languageactive- the new activation status- Throws:
ServerException- an error happened in the server application
-
-