Package com.logicaldoc.web.service
Class SystemServiceImpl
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.jakarta.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.jakarta.RemoteServiceServlet
com.logicaldoc.web.service.AbstractRemoteService
com.logicaldoc.web.service.SystemServiceImpl
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService,com.google.gwt.user.server.rpc.SerializationPolicyProvider,SystemService,jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
Implementation of the SystemService
- Since:
- 6.0
- Author:
- Matteo Caruso - LogicalDOC
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.logicaldoc.gui.frontend.client.services.SystemService
SystemService.Instance -
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfirms the last updatebooleandisableTask(String taskName) Disables the taskbooleanenableTask(String taskName) Enables the taskRetrieves all plug-insgetStatistics(String locale) Retrieves all the statistics parameters.getTaskByName(String taskName, String locale) Retrieves a specific task by its namevoidinitializePlugin(String pluginId) Launches the initialization of a pluginvoidInstalls the uploaded plugin packageRetrieves all tasks.voidremoveLogger(String name) The logger to removevoidrestart()Restarts the applicationvoidsaveLogger(String name, String level, boolean additivity) Saves a loggerSaves the tasksearch(Long userId, Date from, Date till, int maxResult, String historySid, List<String> events, Long rootFolderId) searchApiCalls(Long userId, Date from, Date till, String callSid, String protocol, String uri, int maxResult) voidsetGUILanguageStatus(String language, boolean active) Changes the activation status of a languagevoidStarts the task execution.voidStops the task execution.voiduninstallPlugin(String pluginId) Uninstalls the given pluginvoidunscheduleJobs(List<GUIValue> jobs) Unschedules a selection of jobsMethods inherited from class com.logicaldoc.web.service.AbstractRemoteService
setThreadRequestMethods inherited from class com.google.gwt.user.server.rpc.jakarta.RemoteServiceServlet
getSerializationPolicy, init, processCall, processCall, processPostMethods inherited from class com.google.gwt.user.server.rpc.jakarta.AbstractRemoteServiceServlet
doPostMethods inherited from class jakarta.servlet.http.HttpServlet
serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
SystemServiceImpl
public SystemServiceImpl()
-
-
Method Details
-
disableTask
Description copied from interface:SystemServiceDisables the task- Specified by:
disableTaskin interfaceSystemService- Parameters:
taskName- The task name- Returns:
- True, if the task is correctly disabled
- Throws:
ServerException- error in the server application
-
enableTask
Description copied from interface:SystemServiceEnables the task- Specified by:
enableTaskin interfaceSystemService- Parameters:
taskName- The task name- Returns:
- True, if the task is correctly enabled
- Throws:
ServerException- an error happened in the server applications
-
getStatistics
Description copied from interface:SystemServiceRetrieves all the statistics parameters.- The first list is the Repository statistics.
- The second list is the Documents statistics.
- The third list is the Folders statistics.
- The fourth list contains the last run date.
- Specified by:
getStatisticsin interfaceSystemService- Parameters:
locale- The current user locale- Returns:
- the statistics
- Throws:
ServerException- an error happened in the server application
-
getTaskByName
Description copied from interface:SystemServiceRetrieves a specific task by its name- Specified by:
getTaskByNamein interfaceSystemService- Parameters:
taskName- The task namelocale- The current user locale- Returns:
- the task retrieved by the server application
- Throws:
ServerException- an error happened in the server application
-
loadTasks
Description copied from interface:SystemServiceRetrieves all tasks.- Specified by:
loadTasksin interfaceSystemService- Parameters:
locale- The current user locale- Returns:
- the tasks
- Throws:
ServerException- an error happened in the server application
-
saveTask
Description copied from interface:SystemServiceSaves the task- Specified by:
saveTaskin interfaceSystemService- Parameters:
guiTask- The task to savelocale- The current user locale- Returns:
- the saved task
- Throws:
ServerException- an error happened in the server application
-
startTask
Description copied from interface:SystemServiceStarts the task execution.- Specified by:
startTaskin interfaceSystemService- Parameters:
taskName- The task name
-
stopTask
Description copied from interface:SystemServiceStops the task execution.- Specified by:
stopTaskin interfaceSystemService- Parameters:
taskName- The task name
-
setGUILanguageStatus
Description copied from interface:SystemServiceChanges the activation status of a language- Specified by:
setGUILanguageStatusin interfaceSystemService- Parameters:
language- the language to alteractive- the new language's status- Throws:
ServerException- an error happened in the server application
-
confirmUpdate
Description copied from interface:SystemServiceConfirms the last update- Specified by:
confirmUpdatein interfaceSystemService- Throws:
ServerException- an error happened in the server application
-
restart
Description copied from interface:SystemServiceRestarts the application- Specified by:
restartin interfaceSystemService- Throws:
ServerException- an error happened in the server application
-
search
public List<GUIHistory> search(Long userId, Date from, Date till, int maxResult, String historySid, List<String> events, Long rootFolderId) throws ServerException - Specified by:
searchin interfaceSystemService- Throws:
ServerException
-
searchApiCalls
public List<GUIHistory> searchApiCalls(Long userId, Date from, Date till, String callSid, String protocol, String uri, int maxResult) throws ServerException - Specified by:
searchApiCallsin interfaceSystemService- Throws:
ServerException
-
unscheduleJobs
Description copied from interface:SystemServiceUnschedules a selection of jobs- Specified by:
unscheduleJobsin interfaceSystemService- Parameters:
jobs- Identifiers of the jobs to delete(pairs group - trigger)- Throws:
ServerException- an error happened in the server application
-
uninstallPlugin
Description copied from interface:SystemServiceUninstalls the given plugin- Specified by:
uninstallPluginin interfaceSystemService- Parameters:
pluginId- identifier of the plugin to uninstall- Throws:
ServerException- error happened in the server application
-
initializePlugin
Description copied from interface:SystemServiceLaunches the initialization of a plugin- Specified by:
initializePluginin interfaceSystemService- Parameters:
pluginId- the name of the plugin to initialize- Throws:
ServerException- an error happened in the server application
-
installPlugin
Description copied from interface:SystemServiceInstalls the uploaded plugin package- Specified by:
installPluginin interfaceSystemService- Throws:
ServerException- error happened in the server application
-
getPlugins
Description copied from interface:SystemServiceRetrieves all plug-ins- Specified by:
getPluginsin interfaceSystemService- Returns:
- the installed plug-ins names
- Throws:
ServerException- an error happened in the server application
-
saveLogger
Description copied from interface:SystemServiceSaves a logger- Specified by:
saveLoggerin interfaceSystemService- Parameters:
name- The name of the logger to savelevel- The log leveladditivity- The log additivity- Throws:
ServerException- an error happened in the server application
-
removeLogger
Description copied from interface:SystemServiceThe logger to remove- Specified by:
removeLoggerin interfaceSystemService- Parameters:
name- The name of the logger to remove- Throws:
ServerException- an error happened in the server application
-