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
-
Method Summary
Modifier and TypeMethodDescriptionGenerates route for editor with the givenscreenClass
andentity
andurlParams
.Generates route for editor with the givenscreenId
andentity
andurlParams
.getEditorRoute
(Object entity, Map<String, String> urlParams) Generates route for default editor with the givenentity
andurlParams
.Generates route for screen with the givenscreenClass
andurlParams
.Generates route for screen with the givenscreenId
andurlParams
.protected String
getScreenId
(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, wait
Methods 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.RouteGenerator
Generates route for screen with the givenscreenId
andurlParams
.- Specified by:
getRoute
in interfaceUrlRouting.RouteGenerator
- Parameters:
screenId
- screen idurlParams
- URL params- Returns:
- generated route
-
getRoute
Description copied from interface:UrlRouting.RouteGenerator
Generates route for screen with the givenscreenClass
andurlParams
.- Specified by:
getRoute
in interfaceUrlRouting.RouteGenerator
- Parameters:
screenClass
- screen classurlParams
- URL params- Returns:
- generated route
-
getEditorRoute
Description copied from interface:UrlRouting.RouteGenerator
Generates route for default editor with the givenentity
andurlParams
.Entity id will be passed as URL param.
- Specified by:
getEditorRoute
in interfaceUrlRouting.RouteGenerator
- Parameters:
entity
- entity to editurlParams
- URL params- Returns:
- generated route
-
getEditorRoute
Description copied from interface:UrlRouting.RouteGenerator
Generates route for editor with the givenscreenId
andentity
andurlParams
.Entity id will be passed as URL param.
- Specified by:
getEditorRoute
in 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.RouteGenerator
Generates route for editor with the givenscreenClass
andentity
andurlParams
.- Specified by:
getEditorRoute
in interfaceUrlRouting.RouteGenerator
- Parameters:
entity
- entity to editscreenClass
- editor screen classurlParams
- URL params- Returns:
- generated route
-
getScreenId
-
prepareEditorUrlParams
-