|
|||||||||
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.endeca.index.producer.PriceListPairVariantProducer
public class PriceListPairVariantProducer
This class creates sets of pricelists for given sites. One variant is produced for each distinct set of pricelists.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected java.lang.String |
mLanguagesPropertyName
|
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
mPriceListLanguages
|
static java.lang.String |
PRICE_LIST_IDS_KEY
|
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 | |
---|---|
PriceListPairVariantProducer()
|
Method Summary | |
---|---|
void |
determinePriceLists(atg.repository.search.indexing.Context pContext,
java.lang.String pPropertyName,
RepositoryItem pItem,
int pIndex,
java.util.Map pUniqueParams)
Determine price lists based on the context, specifically on the set of sites Pricelists are stored in mPriceListIdArray If pricelists are not in use, mPriceListIdArray is empty This method should be overridden when price lists are determined otherwise This method has the same parameters as method prepareNextVariant |
protected java.util.List<java.lang.String> |
getLanguagesForSite(atg.multisite.SiteRepositoryImpl pSite)
This method returns a list of language codes for a site It is repository dependent and used if property languagesPropertyName is undefined (null) If used, this method should be overwritten in a subclass |
java.lang.String |
getLanguagesPropertyName()
|
java.util.List<java.lang.String>[] |
getPriceListIdArray()
Get the site unique parameter name. |
PriceListManager |
getPriceListManager()
|
java.lang.String |
getPriceListPairUniqueParamName()
Get the site unique parameter name. |
char |
getSeparator()
Returns property mSeparator. |
SiteContextManager |
getSiteContextManager()
|
boolean |
prepareNextVariant(atg.repository.search.indexing.Context pContext,
java.lang.String pPropertyName,
RepositoryItem pItem,
int pIndex,
java.util.Map pUniqueParams)
Get the next (perhaps only) variant. |
void |
setLanguagesPropertyName(java.lang.String pLanguagesPropertyName)
|
void |
setPriceListIdArray(java.util.List<java.lang.String>[] pPriceListIdArray)
Set the site unique parameter name. |
void |
setPriceListManager(PriceListManager pPriceListManager)
|
void |
setPriceListPairUniqueParamName(java.lang.String pPriceListPairUniqueParamName)
Set the site unique parameter name. |
void |
setSeparator(char pSeparator)
Sets property mSeparator. |
void |
setSiteContextManager(SiteContextManager pSiteContextManager)
|
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
public static final java.lang.String PRICE_LIST_IDS_KEY
protected java.lang.String mLanguagesPropertyName
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> mPriceListLanguages
Constructor Detail |
---|
public PriceListPairVariantProducer()
Method Detail |
---|
public PriceListManager getPriceListManager()
public void setPriceListManager(PriceListManager pPriceListManager)
pPriceListManager
- Sets a new PriceListManager component.public SiteContextManager getSiteContextManager()
public void setSiteContextManager(SiteContextManager pSiteContextManager)
mSiteContextManager
- the mSiteContextManager to setpublic void setPriceListPairUniqueParamName(java.lang.String pPriceListPairUniqueParamName)
public java.lang.String getPriceListPairUniqueParamName()
public void setPriceListIdArray(java.util.List<java.lang.String>[] pPriceListIdArray)
public java.util.List<java.lang.String>[] getPriceListIdArray()
public void setSeparator(char pSeparator)
public char getSeparator()
public java.lang.String getLanguagesPropertyName()
public void setLanguagesPropertyName(java.lang.String pLanguagesPropertyName)
pLanguagesPropertyName
- the String to setpublic 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. Contains the current URL,
the stack of parent items, etc.pPropertyName
- the name of the property that corresponds
to pItem. For a top-level item, will be null.pItem
- the document-level (is-document) repository item.pIndex
- the index/count for the variant. This index
only applies to the current set of parents.pUniqueParams
- the parameters that will be added
to the item's URI to differentiate it from
other documents representing the same repository item.
Keys and values should all be strings.
public void determinePriceLists(atg.repository.search.indexing.Context pContext, java.lang.String pPropertyName, RepositoryItem pItem, int pIndex, java.util.Map pUniqueParams)
protected java.util.List<java.lang.String> getLanguagesForSite(atg.multisite.SiteRepositoryImpl pSite)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |