atg.commerce.search
Class CustomCatalogXMLBuilder
java.lang.Object
  
atg.search.query.formhandlers.MapXMLBuilder
      
atg.commerce.search.CustomCatalogXMLBuilder
- All Implemented Interfaces: 
 - XMLBuilder
 
public class CustomCatalogXMLBuilder
- extends MapXMLBuilder
 
This class extends the default MapXMLBuilder
 to automatically add a query constraint that will force results to contain only
 results that are contained in the user's current custom catalog.  By default the
 user's current custom catalog is defined by the
 atg.commerce.catalog.CustomCatalogTools#getCurrentCatalog() method of
 atg.commerce.catalog.CustomCatalogTools.  
 
- See Also:
 atg.commerce.catalog.CustomCatalogTools#getCurrentCatalog()
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
CLASS_VERSION
public static java.lang.String CLASS_VERSION
- Class version string
 
mCatalogMetaPropertyName
protected java.lang.String mCatalogMetaPropertyName
mConstraintOperator
protected java.lang.String mConstraintOperator
mConstraintType
protected java.lang.String mConstraintType
mCustomCatalogTools
protected CustomCatalogTools mCustomCatalogTools
CustomCatalogXMLBuilder
public CustomCatalogXMLBuilder()
getCatalogMetaPropertyName
public java.lang.String getCatalogMetaPropertyName()
 
setCatalogMetaPropertyName
public void setCatalogMetaPropertyName(java.lang.String pCatalogMetaPropertyName)
 
getConstraintOperator
public java.lang.String getConstraintOperator()
 
setConstraintOperator
public void setConstraintOperator(java.lang.String pConstraintOperator)
 
getConstraintType
public java.lang.String getConstraintType()
 
setConstraintType
public void setConstraintType(java.lang.String pConstraintType)
 
getCustomCatalogTools
public CustomCatalogTools getCustomCatalogTools()
 
setCustomCatalogTools
public void setCustomCatalogTools(CustomCatalogTools pCustomCatalogTools)
 
buildXML
public java.lang.String buildXML(BaseSearchFormHandler pFormHandler,
                                 ClientRequest pClientRequest,
                                 java.lang.String pTagName)
- Build the constraints XML and return it as a string. This implementation
 ANDs a constraint that ensures all search results are contained in the
 user's current custom catalog.
- Specified by:
 buildXML in interface XMLBuilder- Overrides:
 buildXML in class MapXMLBuilder
 
- Parameters:
 pFormHandler - the invoking form handlerpClientRequest - the client requestpTagName - the name of the tag into which to put the
 constriants.
- Returns:
 - the constraints String or null