atg.commerce.adc.processor
Class ProcSetCategory
java.lang.Object
SetCategoryProcessor
atg.commerce.adc.processor.ProcSetCategory
public class ProcSetCategory
- extends SetCategoryProcessor
This processor will determine the product category and page categoory that will
be stored in the ADCRequestData for use in the remaining pipeline processors.
If the url of the requested page matches an entry in the
configured categoryPages
property, the product category is taken from
a query parameter named in the categoryIdQueryArgs
property.
The page category is determined by atg.adc.pipeline.SetCategorProcessor
.
If the request page includes the <adc:setProductCategory category="something"/>
tag, then that value is always used instead.
Field Summary |
static java.lang.String |
CLASS_VERSION
Class version string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_VERSION
public static final java.lang.String CLASS_VERSION
- Class version string
- See Also:
- Constant Field Values
ProcSetCategory
public ProcSetCategory()
findProductCategory
protected java.lang.String findProductCategory(ADCPipelineArgs pArgs)
- TODO Look up the category template by iterating down
the request uri.
- Parameters:
pArgs
- The pipeline args
- Returns:
- The category
updateADCData
public int updateADCData(ADCPipelineArgs pArgs)
- Store the product category in the ADCRequestData.
If the page includes the
<adc:setProductCategory category="something"/>
tag, then that value is used. Otherwise, the categoryIdQueryArgs are searched for.
- Parameters:
The
- pipeline args
- Returns:
- NO_CHANGE