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 boolean
boolean
Key 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.Security scopes needed for a user to access the route.int
hashCode()
void
setComponentKey
(String componentKey) Key of the component to render atpath
.void
setComponentName
(String componentName) Name of the component.void
Id of the route.void
Path matching the browser location to match to render the component.void
Security 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. -
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. -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-