atg.projects.store.search
Class StoreRequestProcessor

java.lang.Object
  extended by atg.projects.store.search.StoreRequestProcessor
All Implemented Interfaces:
atg.search.formhandlers.SearchRequestProcessor

public class StoreRequestProcessor
extends java.lang.Object
implements atg.search.formhandlers.SearchRequestProcessor

Store implementations of SearchRequestProcessor

This processor determines if search request of type "View All". If yes, then overrides pageSize with new ViewAllPageSize value.


Field Summary
static java.lang.String CLASS_VERSION
           
static java.lang.String S_TRUE
           
static java.lang.String S_VIEW_ALL
           
 
Constructor Summary
StoreRequestProcessor()
           
 
Method Summary
 java.lang.Integer getViewAllPageSize()
           
 atg.search.routing.command.search.SearchRequest processSearchRequest(atg.search.routing.command.search.SearchRequest pSearchRequest, atg.servlet.DynamoHttpServletRequest pDynamoHttpServletRequest, java.lang.Object pCallback)
          If this request is "View All" request then new page size sets.
 void setViewAllPageSize(java.lang.Integer pViewAllPageSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
See Also:
Constant Field Values

S_VIEW_ALL

public static final java.lang.String S_VIEW_ALL
See Also:
Constant Field Values

S_TRUE

public static final java.lang.String S_TRUE
See Also:
Constant Field Values
Constructor Detail

StoreRequestProcessor

public StoreRequestProcessor()
Method Detail

getViewAllPageSize

public java.lang.Integer getViewAllPageSize()
Returns:
page size for "view all" search request

setViewAllPageSize

public void setViewAllPageSize(java.lang.Integer pViewAllPageSize)
Parameters:
pViewAllPageSize - maximum results per page when "view all" request issued

processSearchRequest

public atg.search.routing.command.search.SearchRequest processSearchRequest(atg.search.routing.command.search.SearchRequest pSearchRequest,
                                                                            atg.servlet.DynamoHttpServletRequest pDynamoHttpServletRequest,
                                                                            java.lang.Object pCallback)
                                                                     throws atg.search.client.SearchClientException
If this request is "View All" request then new page size sets.

Specified by:
processSearchRequest in interface atg.search.formhandlers.SearchRequestProcessor
Parameters:
pSearchRequest - query request
pDynamoHttpServletRequest - Dynamo HTTP request
pCallback - callback function
Returns:
modified query request
Throws:
atg.search.client.SearchClientException - If an exception occurs while processing the Search Request.