Class Route
java.lang.Object
com.broadleafcommerce.metadata.core.domain.Route
- All Implemented Interfaces:
Serializable
Routes represent the relationship between a browser’s location, and the view it renders. These
routes typically consist of a path, e.g.
/brands, and a componentId, e.g.
brands:browse. The admin client loads the entire route configuration on page load, and
then uses it to route the user around the application.
Typically, routes are configured through ComponentRouteLocator. However, it's possible to
create a Route similarly to an Augmentation at runtime for dynamic routes.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanKey of the component to render atpath.Name of the component.getId()Id of the route.getPath()Path matching the browser location to match to render the component.Predicates that restrict access to the route.intThe order to sort the route by.Controls how the scopes are used to filter the route's accessibility.Security scopes needed for a user to access the route.inthashCode()voidsetComponentKey(String componentKey) Key of the component to render atpath.voidsetComponentName(String componentName) Name of the component.voidId of the route.voidPath matching the browser location to match to render the component.voidsetPredicates(List<RoutePredicate> predicates) Predicates that restrict access to the route.voidsetPriority(int priority) The order to sort the route by.voidsetScopeMatchType(String scopeMatchType) Controls how the scopes are used to filter the route's accessibility.voidSecurity scopes needed for a user to access the route.toString()
-
Constructor Details
-
Route
public Route()
-
-
Method Details
-
getId
Id of the route. -
getPath
Path matching the browser location to match to render the component. -
getComponentKey
Key of the component to render atpath. -
getComponentName
Name of the component. -
getScopes
Security scopes needed for a user to access the route. -
getScopeMatchType
Controls how the scopes are used to filter the route's accessibility. The default isDefaultRouteScopeMatchType.ANY.- Since:
- Admin Service 2.1.4, Release Train 2.1.5
- See Also:
-
getPredicates
Predicates that restrict access to the route.- Since:
- Admin Services 2.3.0, Release Train 2.2.2
-
getPriority
public int getPriority()The order to sort the route by. By default, routes are ordered to be last unless this field is defined explicitly.- Since:
- Admin Services 2.3.0, Release Train 2.2.2
-
setId
Id of the route. -
setPath
Path matching the browser location to match to render the component. -
setComponentKey
Key of the component to render atpath. -
setComponentName
Name of the component. -
setScopes
Security scopes needed for a user to access the route. -
setScopeMatchType
Controls how the scopes are used to filter the route's accessibility. The default isDefaultRouteScopeMatchType.ANY.- Since:
- Admin Service 2.1.4, Release Train 2.1.5
- See Also:
-
setPredicates
Predicates that restrict access to the route.- Since:
- Admin Services 2.3.0, Release Train 2.2.2
-
setPriority
public void setPriority(int priority) The order to sort the route by. By default, routes are ordered to be last unless this field is defined explicitly.- Since:
- Admin Services 2.3.0, Release Train 2.2.2
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-