|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.droplet.EmptyFormHandler atg.droplet.GenericFormHandler atg.repository.servlet.SearchFormHandler atg.commerce.catalog.SearchFormHandler atg.commerce.catalog.custom.CatalogSearchFormHandler
public class CatalogSearchFormHandler
Does the same thing as atg.commerce.catalog.SearchFormHandler but it limits all searches to within the current catalog. (Current catalog as stored in the Profile.)
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
DEFAULT_CATALOG_ITEMS_CATALOG_PROPERTY
|
static java.lang.String |
DEFAULT_CATALOG_PROPERTY
|
Fields inherited from class atg.commerce.catalog.SearchFormHandler |
---|
INVALID_PRICE, mLastCatalogKey |
Fields inherited from class atg.repository.servlet.SearchFormHandler |
---|
EMPTY_SEARCH_VALUES_DISALLOW, GENERATE_VALUES_BY_TYPE_FAILED, INVALID_ITEM_TYPE, INVALID_KEYWORD_SEARCH_STRING, INVALID_PROP_COMBINATION, INVALID_SEARCH_PROPERTY_NAMES, MULTIPLE_ITEM_TYPES_DISALLOW, NO_PROPERTY_NAMES_FOR_ITEM, QUERY_FAILURE, UNMATCHED_QUOTES |
Fields inherited from class atg.droplet.GenericFormHandler |
---|
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDS |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
CatalogSearchFormHandler()
|
Method Summary | |
---|---|
protected Query |
generateSearchQuery(Repository pRepository,
java.lang.String pItemType,
QueryBuilder pQueryBuilder)
Return the query that should be executed on the Repository View. |
java.lang.String |
getCatalogItemsCatalogProperty()
The name of the property for each catalog item that contains the list of catalogs containing that item |
java.lang.String |
getCatalogPropertyName()
The name of the profile property pointing to the catalog |
protected java.lang.Object |
getCurrentCatalog()
Get the current catalog |
boolean |
isNullCatalogMeansNoResults()
If this is true, and the profile's catalog is null, no results will be returned. |
void |
setCatalogItemsCatalogProperty(java.lang.String pCatalogItemsCatalogProperty)
|
void |
setCatalogPropertyName(java.lang.String pCatalogPropertyName)
|
void |
setNullCatalogMeansNoResults(boolean pNullCatalogMeansNoResults)
|
Methods inherited from class atg.droplet.EmptyFormHandler |
---|
afterGet |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static final java.lang.String DEFAULT_CATALOG_PROPERTY
public static final java.lang.String DEFAULT_CATALOG_ITEMS_CATALOG_PROPERTY
Constructor Detail |
---|
public CatalogSearchFormHandler()
Method Detail |
---|
public void setCatalogItemsCatalogProperty(java.lang.String pCatalogItemsCatalogProperty)
public java.lang.String getCatalogItemsCatalogProperty()
public void setCatalogPropertyName(java.lang.String pCatalogPropertyName)
public java.lang.String getCatalogPropertyName()
public void setNullCatalogMeansNoResults(boolean pNullCatalogMeansNoResults)
public boolean isNullCatalogMeansNoResults()
protected Query generateSearchQuery(Repository pRepository, java.lang.String pItemType, QueryBuilder pQueryBuilder) throws DropletFormException, RepositoryException
generateSearchQuery
in class SearchFormHandler
pRepository
- The repository being searchpItemType
- the type of item to search for. Typically corresponds to an
item descriptor name in the catalog repositorypQueryBuilder
- the builder that should be used to construct the query
RepositoryException
- if an error occured while forming the query
DropletFormException
protected java.lang.Object getCurrentCatalog() throws RepositoryException
RepositoryException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |