Package com.logicaldoc.web.service
Class InfoServiceImpl
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.InfoServiceImpl
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService,com.google.gwt.user.server.rpc.SerializationPolicyProvider,InfoService,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
Implementation of the InfoService
- Since:
- 6.0
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.logicaldoc.gui.common.client.services.InfoService
InfoService.Instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCronDescription(String expression, String locale) Retrieves the natural language description of a given cron expressionstatic GUIInfoRetrieves the informations but not localization issues like messages and installed languagesRetrieves the system informationsRetrieves all the settings for the current sessionbooleanping()Ping to maintain open he sessionMethods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
getSerializationPolicy, init, processCall, processCall, processPostMethods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPostMethods inherited from class javax.servlet.http.HttpServlet
serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
InfoServiceImpl
public InfoServiceImpl()
-
-
Method Details
-
getInfo
Description copied from interface:InfoServiceRetrieves the system informations- Specified by:
getInfoin interfaceInfoService- Parameters:
locale- language to usetenantName- name of the tenantlogin- if the informations are asked by the login form- Returns:
- the User Inteface's informations
- Throws:
ServerException- raised in case of error in the server
-
getInfo
Retrieves the informations but not localization issues like messages and installed languages- Parameters:
tenantName- name of the tenant- Returns:
- bean carrying informations about the User Interface
-
getSessionInfo
Description copied from interface:InfoServiceRetrieves all the settings for the current session- Specified by:
getSessionInfoin interfaceInfoService- Returns:
- all the settings
- Throws:
InvalidSessionServerException- the session does not exist or is expired
-
ping
Description copied from interface:InfoServicePing to maintain open he session- Specified by:
pingin interfaceInfoService- Returns:
- if the server has been successfully contacted
- Throws:
InvalidSessionServerException- the session does not exist or is expired
-
getCronDescription
Description copied from interface:InfoServiceRetrieves the natural language description of a given cron expression- Specified by:
getCronDescriptionin interfaceInfoService- Parameters:
expression- the cron expression to evaluatelocale- the locale to use for the description- Returns:
- the natural language description
- Throws:
ServerException- raised in case the given expression is invalid
-