Package overit.geocall.ux.platform
Class RouteService
java.lang.Object
overit.geocall.ux.platform.RouteService
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 :
This class manages the landing on the requested page, resolving the route path on the url and instantiating the
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRouteNameFromResource(String resource, XMLTree menu, Company c) Gets the route's name to reach the xml page indicated by the path passed as a parameter.protected voidlogInvalidLicenseUse(Identity id, String module) org.springframework.http.HttpStatusprocessRoute(String requestedRoute, WindowManager wm, WebParameters wp, boolean isPost) Process theWindowManagerto 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.
-
Field Details
-
INDEX_ROUTE_PAGE
- See Also:
-
EXTERNAL_FRAME_SRC
- See Also:
-
-
Constructor Details
-
RouteService
-
-
Method Details
-
processRoute
public org.springframework.http.HttpStatus processRoute(String requestedRoute, WindowManager wm, WebParameters wp, boolean isPost) Process theWindowManagerto 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 routewp- 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
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 requestedc- The company from which retrieves the currentCustomLayer, 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
-