Class CatalogRelativeHrefProcessor
java.lang.Object
org.broadleafcommerce.presentation.dialect.AbstractBroadleafAttributeModifierProcessor
org.broadleafcommerce.core.web.processor.CatalogRelativeHrefProcessor
- All Implemented Interfaces:
org.broadleafcommerce.presentation.dialect.BroadleafAttributeModifierProcessor,org.broadleafcommerce.presentation.dialect.BroadleafProcessor
@Component("blCatalogRelativeHrefProcessor")
@ConditionalOnTemplating
public class CatalogRelativeHrefProcessor
extends org.broadleafcommerce.presentation.dialect.AbstractBroadleafAttributeModifierProcessor
For use with category and product entities. Creates a relative URL using the
current URI appended with the url-key (or last fragment of the url).
Takes in a category or product object as a parameter.
Uses the current request for the baseURI.
This implementation will also a categoryId or productId to the end of the URL it generates.
- Author:
- bpolster
-
Field Summary
FieldsFields inherited from interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
DEFAULT_PRECEDENCE, DEFAULT_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildRelativeHref(String tagName, Map<String, String> tagAttributes, String attributeName, String attributeValue, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) org.broadleafcommerce.presentation.model.BroadleafAttributeModifiergetModifiedAttributes(String tagName, Map<String, String> tagAttributes, String attributeName, String attributeValue, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) getName()intMethods inherited from class org.broadleafcommerce.presentation.dialect.AbstractBroadleafAttributeModifierProcessor
getPrefix, useSingleQuotes
-
Field Details
-
catalogURLService
-
-
Constructor Details
-
CatalogRelativeHrefProcessor
public CatalogRelativeHrefProcessor()
-
-
Method Details
-
getName
-
getPrecedence
public int getPrecedence()- Specified by:
getPrecedencein interfaceorg.broadleafcommerce.presentation.dialect.BroadleafProcessor- Overrides:
getPrecedencein classorg.broadleafcommerce.presentation.dialect.AbstractBroadleafAttributeModifierProcessor
-
buildRelativeHref
-
getModifiedAttributes
-