Package io.jmix.ui.navigation
Class WebUrlRouting.RouteGeneratorImpl
java.lang.Object
io.jmix.ui.navigation.WebUrlRouting.RouteGeneratorImpl
- All Implemented Interfaces:
UrlRouting.RouteGenerator
- Enclosing class:
- WebUrlRouting
protected class WebUrlRouting.RouteGeneratorImpl
extends Object
implements UrlRouting.RouteGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGenerates route for editor with the givenscreenClassandentityandurlParams.Generates route for editor with the givenscreenIdandentityandurlParams.getEditorRoute(Object entity, Map<String, String> urlParams) Generates route for default editor with the givenentityandurlParams.Generates route for screen with the givenscreenClassandurlParams.Generates route for screen with the givenscreenIdandurlParams.protected StringgetScreenId(Class<? extends Screen> screenClass) prepareEditorUrlParams(Object entity, Map<String, String> urlParams) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.ui.navigation.UrlRouting.RouteGenerator
getEditorRoute, getEditorRoute, getEditorRoute, getRoute, getRoute
-
Constructor Details
-
RouteGeneratorImpl
protected RouteGeneratorImpl()
-
-
Method Details
-
getRoute
Description copied from interface:UrlRouting.RouteGeneratorGenerates route for screen with the givenscreenIdandurlParams.- Specified by:
getRoutein interfaceUrlRouting.RouteGenerator- Parameters:
screenId- screen idurlParams- URL params- Returns:
- generated route
-
getRoute
Description copied from interface:UrlRouting.RouteGeneratorGenerates route for screen with the givenscreenClassandurlParams.- Specified by:
getRoutein interfaceUrlRouting.RouteGenerator- Parameters:
screenClass- screen classurlParams- URL params- Returns:
- generated route
-
getEditorRoute
Description copied from interface:UrlRouting.RouteGeneratorGenerates route for default editor with the givenentityandurlParams.Entity id will be passed as URL param.
- Specified by:
getEditorRoutein interfaceUrlRouting.RouteGenerator- Parameters:
entity- entity to editurlParams- URL params- Returns:
- generated route
-
getEditorRoute
Description copied from interface:UrlRouting.RouteGeneratorGenerates route for editor with the givenscreenIdandentityandurlParams.Entity id will be passed as URL param.
- Specified by:
getEditorRoutein interfaceUrlRouting.RouteGenerator- Parameters:
entity- entity to editscreenId- editor screen idurlParams- URL params- Returns:
- generated route
-
getEditorRoute
public String getEditorRoute(Object entity, Class<? extends Screen> screenClass, Map<String, String> urlParams) Description copied from interface:UrlRouting.RouteGeneratorGenerates route for editor with the givenscreenClassandentityandurlParams.- Specified by:
getEditorRoutein interfaceUrlRouting.RouteGenerator- Parameters:
entity- entity to editscreenClass- editor screen classurlParams- URL params- Returns:
- generated route
-
getScreenId
-
prepareEditorUrlParams
-