|
|||||||||
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.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
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface atg.repository.search.indexing.producer.UpdateFromRequestVariantProducer |
---|
atg.repository.search.indexing.producer.UpdateFromRequestVariantProducer.UpdateAndRestoreRequestStateHelper<T,E extends java.lang.Throwable> |
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
protected CatalogProperties |
mCatalogProperties
|
protected boolean |
mEnableCatalogVariants
|
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.commerce.search.IndexConstants |
---|
CATALOG_ATTR, CATALOGS_ITER_ATTR |
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 | |
---|---|
CustomCatalogVariantProducer()
|
Method Summary | |
---|---|
protected java.util.Collection |
getAncestorCatalogs(atg.repository.search.indexing.Context pContext,
RepositoryItem pItem,
java.util.Map<java.lang.String,java.lang.String> pUniqueParams)
Gets the ancestor catalogs for the given item type. |
protected java.util.Collection |
getAncestorCatalogsForCategory(atg.repository.search.indexing.Context pContext,
RepositoryItem pCategory,
RepositoryItemDescriptor pBaseItemDescriptor,
java.util.Map<java.lang.String,java.lang.String> pUniqueParams)
Gets the ancestor catalogs for the given category. |
protected java.util.Collection |
getAncestorCatalogsForProduct(atg.repository.search.indexing.Context pContext,
RepositoryItem pProduct,
RepositoryItemDescriptor pBaseItemDescriptor,
java.util.Map<java.lang.String,java.lang.String> pUniqueParams)
Gets the ancestor catalogs for the given category. |
protected java.util.Collection |
getAncestorCatalogsForSku(atg.repository.search.indexing.Context pContext,
RepositoryItem pSku,
RepositoryItemDescriptor pBaseItemDescriptor,
java.util.Map<java.lang.String,java.lang.String> pUniqueParams)
Gets the ancestor catalogs for the given category. |
java.lang.String |
getCatalogProfilePropertyName()
Returns property catalogProfilePropertyName. |
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(atg.repository.search.indexing.Context pContext,
java.lang.String pPropertyName,
RepositoryItem pItem,
int pIndex,
java.util.Map pUniqueParams)
Get the next variant. |
void |
restoreRequestState(DynamoHttpServletRequest pRequest,
java.lang.Object pRestoreObject)
|
void |
setCatalogProfilePropertyName(java.lang.String pCatalogProfilePropertyName)
Sets property catalogProfilePropertyName. |
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. |
void |
updateContextToReflectRequest(atg.repository.search.indexing.Context pContext,
DynamoHttpServletRequest pRequest,
java.util.Map<java.lang.String,java.lang.String> pUniqueParams)
|
java.lang.Object |
updateRequestStateFromParameterMap(DynamoHttpServletRequest pRequest,
atg.repository.search.indexing.IndexingOutputConfig pIndexingOutputConfig,
java.util.Map<java.lang.String,java.lang.String> pUniqueParams)
|
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, 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
protected boolean mEnableCatalogVariants
protected CatalogProperties mCatalogProperties
Constructor Detail |
---|
public CustomCatalogVariantProducer()
Method Detail |
---|
public void setCatalogProfilePropertyName(java.lang.String pCatalogProfilePropertyName)
public java.lang.String getCatalogProfilePropertyName()
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(atg.repository.search.indexing.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(atg.repository.search.indexing.Context pContext, RepositoryItem pItem, java.util.Map<java.lang.String,java.lang.String> pUniqueParams)
protected java.util.Collection getAncestorCatalogsForCategory(atg.repository.search.indexing.Context pContext, RepositoryItem pCategory, RepositoryItemDescriptor pBaseItemDescriptor, java.util.Map<java.lang.String,java.lang.String> pUniqueParams)
protected java.util.Collection getAncestorCatalogsForProduct(atg.repository.search.indexing.Context pContext, RepositoryItem pProduct, RepositoryItemDescriptor pBaseItemDescriptor, java.util.Map<java.lang.String,java.lang.String> pUniqueParams)
protected java.util.Collection getAncestorCatalogsForSku(atg.repository.search.indexing.Context pContext, RepositoryItem pSku, RepositoryItemDescriptor pBaseItemDescriptor, java.util.Map<java.lang.String,java.lang.String> pUniqueParams)
public void updateContextToReflectRequest(atg.repository.search.indexing.Context pContext, DynamoHttpServletRequest pRequest, java.util.Map<java.lang.String,java.lang.String> pUniqueParams)
updateContextToReflectRequest
in interface atg.repository.search.indexing.producer.UpdateFromRequestVariantProducer
public java.lang.Object updateRequestStateFromParameterMap(DynamoHttpServletRequest pRequest, atg.repository.search.indexing.IndexingOutputConfig pIndexingOutputConfig, java.util.Map<java.lang.String,java.lang.String> pUniqueParams)
updateRequestStateFromParameterMap
in interface atg.repository.search.indexing.producer.UpdateFromRequestVariantProducer
public void restoreRequestState(DynamoHttpServletRequest pRequest, java.lang.Object pRestoreObject)
restoreRequestState
in interface atg.repository.search.indexing.producer.UpdateFromRequestVariantProducer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |