Package com.logicaldoc.web.service
Class SystemServiceImpl
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.SystemServiceImpl
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService
,com.google.gwt.user.server.rpc.SerializationPolicyProvider
,SystemService
,Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Confirms the last updateboolean
disableTask
(String taskName) Disables the taskboolean
enableTask
(String taskName) Enables the taskGUIValue[]
Retrieves all plug-insGUIParameter[][]
getStatistics
(String locale) Retrieves all the statistics parameters.getTaskByName
(String taskName, String locale) Retrieves a specific task by its namevoid
initializePlugin
(String pluginId) Launches the initialization of a pluginvoid
Installs the uploaded plugin packageGUITask[]
Retrieves all tasks.void
restart()
Restarts the applicationSaves the tasksearch
(Long userId, Date from, Date till, int maxResult, String historySid, String[] events, Long rootFolderId) searchApiCalls
(Long userId, Date from, Date till, String callSid, String protocol, String uri, int maxResult) void
setGUILanguageStatus
(String language, boolean active) Changes the activation status of a languageboolean
Starts the task execution.boolean
Stops the task execution.void
uninstallPlugin
(String pluginId) Uninstalls the given pluginvoid
unscheduleJobs
(GUIValue[] jobs) Unschedules a selection of jobsMethods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
getSerializationPolicy, init, processCall, processCall, processPost
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost
Methods inherited from class javax.servlet.http.HttpServlet
service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
SystemServiceImpl
public SystemServiceImpl()
-
-
Method Details
-
disableTask
Description copied from interface:SystemService
Disables the task- Specified by:
disableTask
in 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:SystemService
Enables the task- Specified by:
enableTask
in 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:SystemService
Retrieves all the statistics parameters.- The first array is the Repository statistics.
- The second array is the Documents statistics.
- The third array is the Folders statistics.
- The fourth array contains the last run date.
- Specified by:
getStatistics
in interfaceSystemService
- Parameters:
locale
- The current user locale- Returns:
- the statistics
- Throws:
ServerException
- an error happened in the server application
-
getTaskByName
Description copied from interface:SystemService
Retrieves a specific task by its name- Specified by:
getTaskByName
in 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:SystemService
Retrieves all tasks.- Specified by:
loadTasks
in interfaceSystemService
- Parameters:
locale
- The current user locale- Returns:
- the tasks
- Throws:
ServerException
- an error happened in the server application
-
saveTask
Description copied from interface:SystemService
Saves the task- Specified by:
saveTask
in interfaceSystemService
- Parameters:
task
- 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:SystemService
Starts the task execution.- Specified by:
startTask
in interfaceSystemService
- Parameters:
taskName
- The task name- Returns:
- True, if the task is correctly started.
-
stopTask
Description copied from interface:SystemService
Stops the task execution.- Specified by:
stopTask
in interfaceSystemService
- Parameters:
taskName
- The task name- Returns:
- True, if the task is correctly stopped.
-
setGUILanguageStatus
Description copied from interface:SystemService
Changes the activation status of a language- Specified by:
setGUILanguageStatus
in 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:SystemService
Confirms the last update- Specified by:
confirmUpdate
in interfaceSystemService
- Throws:
ServerException
- an error happened in the server application
-
restart
Description copied from interface:SystemService
Restarts the application- Specified by:
restart
in interfaceSystemService
- Throws:
ServerException
- an error happened in the server application
-
search
public GUIHistory[] search(Long userId, Date from, Date till, int maxResult, String historySid, String[] events, Long rootFolderId) throws ServerException - Specified by:
search
in interfaceSystemService
- Throws:
ServerException
-
searchApiCalls
public GUIHistory[] searchApiCalls(Long userId, Date from, Date till, String callSid, String protocol, String uri, int maxResult) throws ServerException - Specified by:
searchApiCalls
in interfaceSystemService
- Throws:
ServerException
-
unscheduleJobs
Description copied from interface:SystemService
Unschedules a selection of jobs- Specified by:
unscheduleJobs
in 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:SystemService
Uninstalls the given plugin- Specified by:
uninstallPlugin
in interfaceSystemService
- Parameters:
pluginId
- identifier of the plugin to uninstall- Throws:
ServerException
- error happened in the server application
-
initializePlugin
Description copied from interface:SystemService
Launches the initialization of a plugin- Specified by:
initializePlugin
in interfaceSystemService
- Parameters:
pluginId
- the name of the plugin to initialize- Throws:
ServerException
- an error happened in the server application
-
installPlugin
Description copied from interface:SystemService
Installs the uploaded plugin package- Specified by:
installPlugin
in interfaceSystemService
- Throws:
ServerException
- error happened in the server application
-
getPlugins
Description copied from interface:SystemService
Retrieves all plug-ins- Specified by:
getPlugins
in interfaceSystemService
- Returns:
- the installed plug-ins names
- Throws:
ServerException
- an error happened in the server application
-