|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.commerce.search.producer.CustomCatalogVariantProducer
public class CustomCatalogVariantProducer
A VariantProducer
that produces a variant for each
ancestor catalog of the indexing document item type.
atg.repository.search.index.producer.VariantProducer
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
protected CatalogProperties |
mCatalogProperties
|
protected boolean |
mEnableCatalogVariants
|
Fields inherited from interface atg.commerce.search.IndexConstants |
---|
CATALOG_ATTR, CATALOGS_ITER_ATTR |
Constructor Summary | |
---|---|
CustomCatalogVariantProducer()
|
Method Summary | |
---|---|
protected java.util.Collection |
getAncestorCatalogs(Context pContext,
RepositoryItem pItem,
java.util.Map pUniqueParams)
Gets the ancestor catalogs for the given item type. |
protected java.util.Collection |
getAncestorCatalogsForCategory(Context pContext,
RepositoryItem pCategory,
RepositoryItemDescriptor pBaseItemDescriptor,
java.util.Map pUniqueParams)
Gets the ancestor catalogs for the given category. |
protected java.util.Collection |
getAncestorCatalogsForProduct(Context pContext,
RepositoryItem pProduct,
RepositoryItemDescriptor pBaseItemDescriptor,
java.util.Map pUniqueParams)
Gets the ancestor catalogs for the given category. |
protected java.util.Collection |
getAncestorCatalogsForSku(Context pContext,
RepositoryItem pSku,
RepositoryItemDescriptor pBaseItemDescriptor,
java.util.Map pUniqueParams)
Gets the ancestor catalogs for the given category. |
CatalogProperties |
getCatalogProperties()
Gets the CatalogProperties object that holds meta-data about the names of item-descriptors and property-descriptors used in custom catalogs. |
boolean |
isEnableCatalogVariants()
Gets the enableCatalogVariants property. |
boolean |
prepareNextVariant(Context pContext,
java.lang.String pPropertyName,
RepositoryItem pItem,
int pIndex,
java.util.Map pUniqueParams)
Get the next variant. |
void |
setCatalogProperties(CatalogProperties pCatalogProperties)
Sets the CatalogProperties object that holds meta-data about the names of item-descriptors and property-descriptors used in custom catalogs. |
void |
setEnableCatalogVariants(boolean pEnableCatalogVariants)
Sets the enableCatalogVariants property. |
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
protected boolean mEnableCatalogVariants
protected CatalogProperties mCatalogProperties
Constructor Detail |
---|
public CustomCatalogVariantProducer()
Method Detail |
---|
public boolean isEnableCatalogVariants()
This property accessor is used to index multiple versions of products when they contain catalog specific values in their info objects. If your custom catalog definition does not include any catalog specific properties, then catalog variant generation should be disabled. If you add any catalog specific properties that you would like to index, then you should set enableCatalogVariants to 'true' so that a product document is generated for each of the catalogs it is contained in.
public void setEnableCatalogVariants(boolean pEnableCatalogVariants)
public CatalogProperties getCatalogProperties()
public void setCatalogProperties(CatalogProperties pCatalogProperties)
public boolean prepareNextVariant(Context pContext, java.lang.String pPropertyName, RepositoryItem pItem, int pIndex, java.util.Map pUniqueParams)
prepareNextVariant
in interface atg.repository.search.indexing.VariantProducer
pContext
- the current context.pPropertyName
- the name of the property in questionpItem
- the original context item.pIndex
- the index of the variantpUniqueParams
- the parameters that will be added
to the items URI. Keys and values should all be strings.protected java.util.Collection getAncestorCatalogs(Context pContext, RepositoryItem pItem, java.util.Map pUniqueParams)
protected java.util.Collection getAncestorCatalogsForCategory(Context pContext, RepositoryItem pCategory, RepositoryItemDescriptor pBaseItemDescriptor, java.util.Map pUniqueParams)
protected java.util.Collection getAncestorCatalogsForProduct(Context pContext, RepositoryItem pProduct, RepositoryItemDescriptor pBaseItemDescriptor, java.util.Map pUniqueParams)
protected java.util.Collection getAncestorCatalogsForSku(Context pContext, RepositoryItem pSku, RepositoryItemDescriptor pBaseItemDescriptor, java.util.Map pUniqueParams)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |