Class RouteService

java.lang.Object
overit.geocall.ux.platform.RouteService

@Service public class RouteService extends Object
Singleton class that provides services to manage the routes to land into a specific page.
The page to land must be specified into the url, for example like this : context/w/app/page_to_land_in.
This class manages the landing on the requested page, resolving the route path on the url and instantiating the Window to push into the WindowManager
  • Field Details

  • Constructor Details

  • Method Details

    • processRoute

      public org.springframework.http.HttpStatus processRoute(String requestedRoute, WindowManager wm, WebParameters wp, boolean isPost)
      Process the WindowManager to navigate into the correct page related to the requested route.
      If the requested route is already loaded (the window manager already has the window related to the route, loaded) this method do nothing on the Window Manager.
      Parameters:
      requestedRoute - The requested route to navigate.
      wm - The Window Manager in which process the requested route
      wp - Window Parameters from which extract the params to pass on the onOpen() method of the window.
      Returns:
      The state of the process. If null the process worked well, otherwise it's returned a http error code
    • getRouteNameFromResource

      public String getRouteNameFromResource(String resource, XMLTree menu, Company c)
      Gets the route's name to reach the xml page indicated by the path passed as a parameter.
      Parameters:
      resource - The path that indicated the xml geocallian page.
      menu - The menu into which research the page requested
      c - The company from which retrieves the current CustomLayer, from which to recover any single route
      Returns:
      The route's name to reach the xml page indicated by the path passed as a parameter.
    • logInvalidLicenseUse

      protected void logInvalidLicenseUse(Identity id, String module)