Class BLCVariableExpression
java.lang.Object
org.broadleafcommerce.core.web.expression.BLCVariableExpression
- All Implemented Interfaces:
org.broadleafcommerce.common.web.expression.BroadleafVariableExpression
- Direct Known Subclasses:
PromotionMessageVariableExpression
@Component("blBLCVariableExpression")
@ConditionalOnTemplating
public class BLCVariableExpression
extends Object
implements org.broadleafcommerce.common.web.expression.BroadleafVariableExpression
Exposes "blc" to expressions to the Thymeleaf expression context.
This class is intended to be augmented using load time weaving by other modules within Broadleaf.
It provides one function (getDate()) primarily just for testing purposes. This can be accessed with Thymeleaf as ${#blc.date()}
- Author:
- bpolster
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.broadleafcommerce.core.catalog.service.CatalogURLService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetName()Returns the price at the correct scale and rounding for the default currencyrelativeURL(String baseUrl, org.broadleafcommerce.core.catalog.domain.Category category) relativeURL(String baseUrl, org.broadleafcommerce.core.catalog.domain.Product product) relativeURL(org.broadleafcommerce.core.catalog.domain.Category category) relativeURL(org.broadleafcommerce.core.catalog.domain.Product product)
-
Field Details
-
catalogURLService
protected org.broadleafcommerce.core.catalog.service.CatalogURLService catalogURLService
-
-
Constructor Details
-
BLCVariableExpression
public BLCVariableExpression()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.broadleafcommerce.common.web.expression.BroadleafVariableExpression
-
relativeURL
-
relativeURL
-
relativeURL
-
relativeURL
-
getCurrentUrl
-
getPrice
Returns the price at the correct scale and rounding for the default currency- Parameters:
amount-- Returns:
- See Also:
-
Money.defaultCurrency()
-