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

public class InfoServiceImpl extends AbstractRemoteService implements InfoService
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getCronDescription(String expression, String locale)
    Retrieves the natural language description of a given cron expression
    static GUIInfo
    getInfo(String tenantName)
    Retrieves the informations but not localization resources like messages and installed languages
    getInfo(String locale, String tenantName, boolean login)
    Retrieves the system informations
    Retrieves all the settings for the current session
    boolean
    Ping to maintain open he session

    Methods inherited from class com.logicaldoc.web.service.AbstractRemoteService

    setThreadRequest

    Methods 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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • InfoServiceImpl

      public InfoServiceImpl()
  • Method Details

    • getInfo

      public GUIInfo getInfo(String locale, String tenantName, boolean login) throws ServerException
      Description copied from interface: InfoService
      Retrieves the system informations
      Specified by:
      getInfo in interface InfoService
      Parameters:
      locale - language to use
      tenantName - name of the tenant
      login - 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

      public static GUIInfo getInfo(String tenantName)
      Retrieves the informations but not localization resources like messages and installed languages
      Parameters:
      tenantName - name of the tenant
      Returns:
      bean carrying informations about the User Interface
    • getSessionInfo

      public List<GUIParameter> getSessionInfo() throws InvalidSessionServerException
      Description copied from interface: InfoService
      Retrieves all the settings for the current session
      Specified by:
      getSessionInfo in interface InfoService
      Returns:
      all the settings
      Throws:
      InvalidSessionServerException - the session does not exist or is expired
    • ping

      public boolean ping() throws InvalidSessionServerException
      Description copied from interface: InfoService
      Ping to maintain open he session
      Specified by:
      ping in interface InfoService
      Returns:
      if the server has been successfully contacted
      Throws:
      InvalidSessionServerException - the session does not exist or is expired
    • getCronDescription

      public String getCronDescription(String expression, String locale) throws ServerException
      Description copied from interface: InfoService
      Retrieves the natural language description of a given cron expression
      Specified by:
      getCronDescription in interface InfoService
      Parameters:
      expression - the cron expression to evaluate
      locale - the locale to use for the description
      Returns:
      the natural language description
      Throws:
      ServerException - raised in case the given expression is invalid