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.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
public class SystemServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements SystemService
Implementation of the SystemService- Since:
 - 6.0
 - Author:
 - Matteo Caruso - LogicalDOC
 - See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface com.logicaldoc.gui.frontend.client.services.SystemService
SystemService.Instance 
 - 
 
- 
Constructor Summary
Constructors Constructor Description SystemServiceImpl() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfirmUpdate()Confirms the last updatebooleandisableTask(String taskName)Disables the taskbooleanenableTask(String taskName)Enables the taskGUIValue[]getPlugins()Retrieves all plug-insGUIParameter[][]getStatistics(String locale)Retrieves all the statistics parameters.GUITaskgetTaskByName(String taskName, String locale)Retrieves a specific task by its nameGUITask[]loadTasks(String locale)Retrieves all tasks.voidrestart()Restarts the applicationGUITasksaveTask(GUITask task, String locale)Saves the taskGUIHistory[]search(String userName, Date from, Date till, int maxResult, String historySid, String[] event, Long rootFolderId)voidsetGUILanguageStatus(String language, boolean active)Changes the activation status of a languagebooleanstartTask(String taskName)Starts the task execution.booleanstopTask(String taskName)Stops the task execution.- 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
getSerializationPolicy, init, processCall, processCall, processPost 
 - 
 
 - 
 
- 
- 
Method Detail
- 
disableTask
public boolean disableTask(String taskName) throws ServerException
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
public boolean enableTask(String taskName) throws ServerException
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
public GUIParameter[][] getStatistics(String locale) throws ServerException
Description copied from interface:SystemServiceRetrieves 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:
 getStatisticsin interfaceSystemService- Parameters:
 locale- The current user locale- Returns:
 - the statistics
 - Throws:
 ServerException- an error happened in the server application
 
- 
getTaskByName
public GUITask getTaskByName(String taskName, String locale) throws ServerException
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
public GUITask[] loadTasks(String locale) throws ServerException
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
public GUITask saveTask(GUITask task, String locale) throws ServerException
Description copied from interface:SystemServiceSaves the task- Specified by:
 saveTaskin interfaceSystemService- Parameters:
 task- The task to savelocale- The current user locale- Returns:
 - the saved task
 - Throws:
 ServerException- an error happened in the server application
 
- 
search
public GUIHistory[] search(String userName, Date from, Date till, int maxResult, String historySid, String[] event, Long rootFolderId) throws ServerException
- Specified by:
 searchin interfaceSystemService- Throws:
 ServerException
 
- 
startTask
public boolean startTask(String taskName)
Description copied from interface:SystemServiceStarts the task execution.- Specified by:
 startTaskin interfaceSystemService- Parameters:
 taskName- The task name- Returns:
 - True, if the task is correctly started.
 
 
- 
stopTask
public boolean stopTask(String taskName)
Description copied from interface:SystemServiceStops the task execution.- Specified by:
 stopTaskin interfaceSystemService- Parameters:
 taskName- The task name- Returns:
 - True, if the task is correctly stopped.
 
 
- 
setGUILanguageStatus
public void setGUILanguageStatus(String language, boolean active) throws ServerException
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
 
- 
getPlugins
public GUIValue[] getPlugins() throws ServerException
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
 
- 
confirmUpdate
public void confirmUpdate() throws ServerExceptionDescription copied from interface:SystemServiceConfirms the last update- Specified by:
 confirmUpdatein interfaceSystemService- Throws:
 ServerException- an error happened in the server application
 
- 
restart
public void restart() throws ServerExceptionDescription copied from interface:SystemServiceRestarts the application- Specified by:
 restartin interfaceSystemService- Throws:
 ServerException- an error happened in the server application
 
 - 
 
 -