atg.projects.store.pricing
Class StorePriceListManager

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.commerce.pricing.priceLists.PriceListManager
              extended by atg.projects.store.pricing.StorePriceListManager
All Implemented Interfaces:
atg.naming.NameContextBindingListener, atg.naming.NameContextElement, atg.naming.NameResolver, atg.nucleus.AdminableService, atg.nucleus.logging.ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, atg.nucleus.naming.ComponentNameResolver, atg.nucleus.Service, atg.nucleus.ServiceListener, atg.repository.PropertiesChangedListener, java.util.EventListener

public class StorePriceListManager
extends atg.commerce.pricing.priceLists.PriceListManager

The extensions to OOTB CatalogTools.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string.
 
Fields inherited from class atg.commerce.pricing.priceLists.PriceListManager
BASE_PRICE_LIST_PROPERTY_NAME, BULK_PRICE, BULK_PRICE_STRING, COMPLEX_PRICE_ITEM_TYPE, COMPLEX_PRICE_LEVELS_PROPERTY_NAME, COMPLEX_PRICE_PROPERTY_NAME, LEVEL_PRICE_PROPERTY_NAME, LIST_PRICE, LIST_PRICE_PROPERTY_NAME, LIST_PRICE_STRING, LOCALE_PROPERTY_NAME, mProfileTools, PARENT_SKU_ID_PROPERTY_NAME, PRICE_ITEM_TYPE, PRICE_LEVEL_ITEM_TYPE, PRICE_LIST_ID_PROPERTY_NAME, PRICE_LIST_ITEM_TYPE, PRICE_LIST_PROPERTY_NAME, PRICE_LIST_VIEW_NAME, PRICE_VIEW_NAME, PRICING_SCHEME_PROPERTY_NAME, PRODUCT_ID_PROPERTY_NAME, PROFILE_PRICE_LIST_PROPERTY_NAME, QUANTITY_PROPERTY_NAME, SALE_COMPLEX_PRICE_PROPERTY_NAME, SALE_PRICE_PROPERTY_NAME, SKU_ID_PROPERTY_NAME, TIERED_PRICE, TIERED_PRICE_STRING
 
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
StorePriceListManager()
           
 
Method Summary
 void doStartService()
          We ensure that the specified ids resolve to valid repository items.
protected  java.util.Locale getPriceListLocale(atg.repository.RepositoryItem pProfile, java.util.Map pExtraParameters)
          Returns the locale of the profile's price list.
 java.lang.String getPriceListLocalePropertyName()
          The name of the property in the price list that stores the locale.
 java.lang.String getProfilePriceListPropertyName()
          The name of the property in the profile that stores the price list.
 atg.repository.RepositoryItem getSalePriceList()
           
 java.lang.String getSalePriceListId()
           
 atg.repository.RepositoryItem getStorePriceList()
           
 java.lang.String getStorePriceListId()
           
 void setPriceListLocalePropertyName(java.lang.String pPriceListLocalePropertyName)
          The name of the property in the price list that stores the locale.
 void setProfilePriceListPropertyName(java.lang.String pProfilePriceListPropertyName)
          The name of the property in the profile that stores the price list.
 void setSalePriceList(atg.repository.RepositoryItem pSalePriceList)
           
 void setSalePriceListId(java.lang.String pSalePriceListId)
           
 void setStorePriceList(atg.repository.RepositoryItem pStorePriceList)
           
 void setStorePriceListId(java.lang.String pStorePriceListId)
           
 
Methods inherited from class atg.commerce.pricing.priceLists.PriceListManager
addPriceLevel, addPriceLevel, createComplexPrice, createComplexPrice, createListPrice, createPrice, createPrice, createPriceList, createPriceWithComplexPrice, createSubSkuPrice, getAllPrices, getAncestorPriceLists, getBasePriceListPropertyName, getComplexPrice, getComplexPriceItemType, getComplexPriceLevelsPropertyName, getComplexPricePropertyName, getDefaultPriceList, getDefaultPriceList, getDefaultPriceListId, getDefaultSalePriceList, getDefaultSalePriceListId, getDescendantPriceLists, getFirstDescendantPriceLists, getLevelPricePropertyName, getListPricePropertyName, getLocalePropertyName, getParentSkuIdPropertyName, getPrice, getPrice, getPrice, getPrice, getPrice, getPrice, getPrice, getPrice, getPrice, getPrice, getPrice, getPrice, getPriceAdmin, getPriceCache, getPriceItemType, getPriceLevelItemType, getPriceList, getPriceList, getPriceList, getPriceListIdPropertyName, getPriceListItemType, getPriceListLocale, getPriceListPropertyName, getPriceListRepository, getPriceLists, getPriceLists, getPriceListViewName, getPriceViewName, getPricingSchemePropertyName, getProductIdPropertyName, getProductPrice, getProductPrices, getProductPrices, getProfileTools, getQuantityPropertyName, getSaleComplexPricePropertyName, getSalePricePropertyName, getSkuIdPropertyName, getSkuPrice, getSkuPrice, getSkuPrice, getSkuPrices, getSkuPrices, getUncachedPrice, getUncachedProductPrices, getUncachedSkuPrices, isAutomaticallyUseDefaultPriceList, isIgnoreProductFirst, isItemInPriceList, isUseBasePriceList, isUseCache, isUseSkuOnly, lookForPrice, propertiesChanged, setAutomaticallyUseDefaultPriceList, setBasePriceListPropertyName, setComplexPriceItemType, setComplexPriceLevelsPropertyName, setComplexPricePropertyName, setDefaultPriceListId, setDefaultSalePriceListId, setIgnoreProductFirst, setLevelPricePropertyName, setListPricePropertyName, setLocalePropertyName, setParentSkuIdPropertyName, setPriceCache, setPriceItemType, setPriceLevelItemType, setPriceListIdPropertyName, setPriceListItemType, setPriceListPropertyName, setPriceListRepository, setPriceListViewName, setPriceViewName, setPricingSchemePropertyName, setProductIdPropertyName, setProfileTools, setQuantityPropertyName, setSaleComplexPrice, setSaleComplexPrice, setSaleComplexPricePropertyName, setSaleListPrice, setSalePricePropertyName, setSaleSubSkuPrice, setSkuIdPropertyName, setUseBasePriceList, setUseCache, setUseSkuOnly
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
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

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string.

Constructor Detail

StorePriceListManager

public StorePriceListManager()
Method Detail

getStorePriceListId

public java.lang.String getStorePriceListId()
Returns:
price list id.

setStorePriceListId

public void setStorePriceListId(java.lang.String pStorePriceListId)
Parameters:
pStorePriceListId - - price list id.

getStorePriceList

public atg.repository.RepositoryItem getStorePriceList()
Returns:
price list repository item.

setStorePriceList

public void setStorePriceList(atg.repository.RepositoryItem pStorePriceList)
Parameters:
pStorePriceList - - price list.

getSalePriceListId

public java.lang.String getSalePriceListId()
Returns:
sale price list id.

setSalePriceListId

public void setSalePriceListId(java.lang.String pSalePriceListId)
Parameters:
pSalePriceListId - - sale price list id.

getSalePriceList

public atg.repository.RepositoryItem getSalePriceList()
Returns:
sale price list repository item.

setSalePriceList

public void setSalePriceList(atg.repository.RepositoryItem pSalePriceList)
Parameters:
pSalePriceList - - sale price list repository item.

setPriceListLocalePropertyName

public void setPriceListLocalePropertyName(java.lang.String pPriceListLocalePropertyName)
The name of the property in the price list that stores the locale.

Parameters:
pPriceListLocalePropertyName - - the new value to set

getPriceListLocalePropertyName

public java.lang.String getPriceListLocalePropertyName()
The name of the property in the price list that stores the locale.

Returns:
the name of the property in the price list

setProfilePriceListPropertyName

public void setProfilePriceListPropertyName(java.lang.String pProfilePriceListPropertyName)
The name of the property in the profile that stores the price list.

Parameters:
pProfilePriceListPropertyName - - the new value to set

getProfilePriceListPropertyName

public java.lang.String getProfilePriceListPropertyName()
The name of the property in the profile that stores the price list.

Returns:
the name of the property in the profile

doStartService

public void doStartService()
                    throws atg.nucleus.ServiceException
We ensure that the specified ids resolve to valid repository items.

Overrides:
doStartService in class atg.commerce.pricing.priceLists.PriceListManager
Throws:
atg.nucleus.ServiceException - if servive error occurs

getPriceListLocale

protected java.util.Locale getPriceListLocale(atg.repository.RepositoryItem pProfile,
                                              java.util.Map pExtraParameters)
                                       throws atg.commerce.pricing.PricingException
Returns the locale of the profile's price list.

Parameters:
pProfile - - profile repository item
pExtraParameters - - map with additional parameters
Returns:
locale for the given profile
Throws:
atg.commerce.pricing.PricingException - if exception occurs while getting price list from profile