Package io.jmix.ui.navigation
Interface UrlRouting.RouteGenerator
- All Known Implementing Classes:
WebUrlRouting.RouteGeneratorImpl
- Enclosing interface:
- UrlRouting
public static interface UrlRouting.RouteGenerator
Provides API to generate routes for screens with optional URL parameters.
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
getEditorRoute
(Object entity) Generates route for default editor with the givenentity
.default String
getEditorRoute
(Object entity, Class<? extends Screen> screenClass) Generates route for editor with the givenscreenClass
andentity
.Generates route for editor with the givenscreenClass
andentity
andurlParams
.default String
getEditorRoute
(Object entity, String screenId) Generates route for editor with the givenscreenId
andentity
.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
.default String
Generates route for screen with the givenscreenClass
.Generates route for screen with the givenscreenClass
andurlParams
.default String
Generates route for screen with the givenscreenId
.Generates route for screen with the givenscreenId
andurlParams
.
-
Method Details
-
getRoute
Generates route for screen with the givenscreenId
.- Parameters:
screenId
- screen id- Returns:
- generated route
-
getRoute
Generates route for screen with the givenscreenClass
.- Parameters:
screenClass
- screen class- Returns:
- generated route
-
getEditorRoute
Generates route for default editor with the givenentity
.Entity id will be passed as URL param.
- Parameters:
entity
- entity to edit- Returns:
- generated route
-
getEditorRoute
Generates route for editor with the givenscreenId
andentity
.Entity id will be passed as URL param.
- Parameters:
entity
- entity to editscreenId
- editor screen id- Returns:
- generated route
-
getEditorRoute
Generates route for editor with the givenscreenClass
andentity
.- Parameters:
entity
- entity to editscreenClass
- editor screen class- Returns:
- generated route
-
getRoute
Generates route for screen with the givenscreenId
andurlParams
.- Parameters:
screenId
- screen idurlParams
- URL params- Returns:
- generated route
-
getRoute
Generates route for screen with the givenscreenClass
andurlParams
.- Parameters:
screenClass
- screen classurlParams
- URL params- Returns:
- generated route
-
getEditorRoute
Generates route for default editor with the givenentity
andurlParams
.Entity id will be passed as URL param.
- Parameters:
entity
- entity to editurlParams
- URL params- Returns:
- generated route
-
getEditorRoute
Generates route for editor with the givenscreenId
andentity
andurlParams
.Entity id will be passed as URL param.
- Parameters:
entity
- entity to editscreenId
- editor screen idurlParams
- URL params- Returns:
- generated route
-
getEditorRoute
String getEditorRoute(Object entity, Class<? extends Screen> screenClass, Map<String, String> urlParams) Generates route for editor with the givenscreenClass
andentity
andurlParams
.- Parameters:
entity
- entity to editscreenClass
- editor screen classurlParams
- URL params- Returns:
- generated route
-