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 StringgetEditorRoute(Object entity) Generates route for default editor with the givenentity.default StringgetEditorRoute(Object entity, Class<? extends Screen> screenClass) Generates route for editor with the givenscreenClassandentity.Generates route for editor with the givenscreenClassandentityandurlParams.default StringgetEditorRoute(Object entity, String screenId) Generates route for editor with the givenscreenIdandentity.Generates route for editor with the givenscreenIdandentityandurlParams.getEditorRoute(Object entity, Map<String, String> urlParams) Generates route for default editor with the givenentityandurlParams.default StringGenerates route for screen with the givenscreenClass.Generates route for screen with the givenscreenClassandurlParams.default StringGenerates route for screen with the givenscreenId.Generates route for screen with the givenscreenIdandurlParams.
-
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 givenscreenIdandentity.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 givenscreenClassandentity.- Parameters:
entity- entity to editscreenClass- editor screen class- Returns:
- generated route
-
getRoute
Generates route for screen with the givenscreenIdandurlParams.- Parameters:
screenId- screen idurlParams- URL params- Returns:
- generated route
-
getRoute
Generates route for screen with the givenscreenClassandurlParams.- Parameters:
screenClass- screen classurlParams- URL params- Returns:
- generated route
-
getEditorRoute
Generates route for default editor with the givenentityandurlParams.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 givenscreenIdandentityandurlParams.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 givenscreenClassandentityandurlParams.- Parameters:
entity- entity to editscreenClass- editor screen classurlParams- URL params- Returns:
- generated route
-