public class CustomCatalogPropertyAccessor extends atg.repository.search.indexing.PropertyAccessorImpl implements IndexConstants
PropertyAccessor
that understands how to fetch the catalog
specific properties of commerce catalogs that are stored in
info objects such as category-info, product-info, and sku-info.atg.repository.search.index.PropertyAccessor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
protected CatalogProperties |
mCatalogProperties |
SERVICE_INFO_KEY
CATALOG_ATTR, CATALOGS_ITER_ATTR
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
CustomCatalogPropertyAccessor() |
Modifier and Type | Method and Description |
---|---|
CatalogProperties |
getCatalogProperties()
Gets the CatalogProperties object that holds meta-data about the names
of item-descriptors and property-descriptors used in custom catalogs.
|
java.lang.Object |
getSubItemPropertyValue(Context pContext,
RepositoryItem pItem,
java.lang.String pPropName)
Return the value for a sub-item.
|
protected boolean |
isInfoProperty(RepositoryItem pItem,
java.lang.String pPropName,
java.lang.String pBaseItemTypeName,
java.lang.String pInfoPropertyName)
Returns true if the property is an info property of the given item type.
|
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.
|
getMetaPropertyValue, getMetaScheme, getMetaSecurityConstraint, getSiteContextPropertyValue, getTextOrMetaPropertyValue, getTextPropertyValue, getTextSecurityConstraint, onIndexingInitialization, onIndexingTermination, resolveDollarProperty
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
protected CatalogProperties mCatalogProperties
public CatalogProperties getCatalogProperties()
public void setCatalogProperties(CatalogProperties pCatalogProperties)
public java.lang.Object getSubItemPropertyValue(Context pContext, RepositoryItem pItem, java.lang.String pPropName)
categoryInfos
property of the category
item-descriptor, the productInfos
property of the
product
item-descriptor, the skuInfos
property of the sku item-descriptor.
getSubItemPropertyValue
in interface PropertyAccessor
getSubItemPropertyValue
in class atg.repository.search.indexing.PropertyAccessorImpl
pContext
- The current context. Contains the current URL,
the stack of parent items, etc.pItem
- The repository item whose property to getpPropName
- The name of the property to getprotected boolean isInfoProperty(RepositoryItem pItem, java.lang.String pPropName, java.lang.String pBaseItemTypeName, java.lang.String pInfoPropertyName)