| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSearchTestingFormHandler
atg.commerce.search.web.assetmanager.CommerceSearchTestingFormHandler
public class CommerceSearchTestingFormHandler
This class is a SearchTestingFormHandler extension to handle commerce-specific search parameters (categoryName) and commerce-specific facets handling for the search testing
| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSION | 
| protected  java.lang.String | mCategoryNameProperty categoryName | 
| protected  Repository | mMerchandisingProductCatalogRepositoryProperty merchandisingProductCatalogRepository | 
| Constructor Summary | |
|---|---|
| CommerceSearchTestingFormHandler() | |
| Method Summary | |
|---|---|
| protected  void | clear()In addition to superclass, clears category name | 
|  java.lang.String | getCategoryName() | 
|  java.util.List | getFacetSources()Uses CommerceFacetSearchTools to get a list of facet sources parsed from the search response | 
|  Repository | getMerchandisingProductCatalogRepository() | 
|  boolean | handleClear(DynamoHttpServletRequest pRequest,
            DynamoHttpServletResponse pResponse)Handler for "Clear" button. | 
|  boolean | handleSelectCategory(DynamoHttpServletRequest pRequest,
                     DynamoHttpServletResponse pResponse)Handles category selection via picker, calls prepareCategoryName to display name instead of Id. | 
| protected  void | preApplyFacetChanges(DynamoHttpServletRequest pRequest,
                     DynamoHttpServletResponse pRespons)Called when user clicks "apply facet changes" link. | 
| protected  void | preSearch(DynamoHttpServletRequest pRequest,
          DynamoHttpServletResponse pResponse)This method is called before QueryFormHandler.handleSearch, and it sets all the search request parameters This particular method only sets categoryId in CommerceFacetSearchTools, everything else is set in superclass. | 
|  void | setMerchandisingProductCatalogRepository(Repository pMerchandisingProductCatalogRepository) | 
|  void | setPreloadedCategoryId(java.lang.String pId) | 
|  void | setRepositoryId(java.lang.String pId)Sets the repository id of the item to be manipulated. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String CLASS_VERSION
protected java.lang.String mCategoryName
protected Repository mMerchandisingProductCatalogRepository
| Constructor Detail | 
|---|
public CommerceSearchTestingFormHandler()
| Method Detail | 
|---|
public java.lang.String getCategoryName()
public Repository getMerchandisingProductCatalogRepository()
public void setMerchandisingProductCatalogRepository(Repository pMerchandisingProductCatalogRepository)
pMerchandisingProductCatalogRepository - product catalogpublic void setPreloadedCategoryId(java.lang.String pId)
public void setRepositoryId(java.lang.String pId)
value dictionary, since the property
 values in it correspond to the item with the old repository id.
 In addition calls prepareCategoryName.
protected void preSearch(DynamoHttpServletRequest pRequest,
                         DynamoHttpServletResponse pResponse)
                  throws javax.servlet.ServletException,
                         java.io.IOException
pRequest - Dynamo http requestpResponse - Dynamo http response
javax.servlet.ServletException
java.io.IOExceptionprotected void clear()
public boolean handleSelectCategory(DynamoHttpServletRequest pRequest,
                                    DynamoHttpServletResponse pResponse)
                             throws javax.servlet.ServletException,
                                    java.io.IOException
pRequest - Dynamo http requestpResponse - Dynamo http response
true
javax.servlet.ServletException - if error occurs
java.io.IOException - if error occurs
public boolean handleClear(DynamoHttpServletRequest pRequest,
                           DynamoHttpServletResponse pResponse)
                    throws javax.servlet.ServletException,
                           java.io.IOException
pRequest - Dynamo http requestpResponse - Dynamo http response
true
javax.servlet.ServletException - if error occurs
java.io.IOException - if error occurs
public java.util.List getFacetSources()
                               throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException - incase of error
protected void preApplyFacetChanges(DynamoHttpServletRequest pRequest,
                                    DynamoHttpServletResponse pRespons)
pRequest - dynamo requestpRespons - dynamo responseatg.search.web.assetmanager.SearchTestingFormHandler#preApplyFacetChanges(atg.servlet.DynamoHttpServletRequest, atg.servlet.DynamoHttpServletResponse)| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||