atg.commerce.pricing.priceLists
Class PriceListProfilePropertySetter

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.userprofiling.ProfilePropertySetter
              extended by atg.commerce.pricing.priceLists.PriceListProfilePropertySetter
All Implemented Interfaces:
NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, java.util.EventListener

public class PriceListProfilePropertySetter
extends ProfilePropertySetter

Commerce specific implementation of the ProfilePropertySetter that sets set the price list properties of a profile from the current site.


Field Summary
static java.lang.String CLASS_VERSION
          Class version 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
PriceListProfilePropertySetter()
           
 
Method Summary
 PricingTools getPricingTools()
          Retrieves the pricing Tools
 boolean isEnabled()
           
 void setEnabled(boolean pEnabled)
          Sets property Enabled
protected  boolean setPriceListProfileProperties(Profile pProfile, atg.multisite.Site pSite)
          Sets the price list and sale price list for a profile based on the site
 void setPricingTools(PricingTools pPricingTools)
          Sets the pricing Tools
 boolean setProperties(Profile pProfile, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
          Implementation of the ProfilePropertySetter's setProperties method.
 
Methods inherited from class atg.userprofiling.ProfilePropertySetter
hasProperty, setProfileProperty
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStartService, 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, reResolveThis, 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

PriceListProfilePropertySetter

public PriceListProfilePropertySetter()
Method Detail

isEnabled

public boolean isEnabled()
Returns:
true if price lists should be processed

setEnabled

public void setEnabled(boolean pEnabled)
Sets property Enabled


getPricingTools

public PricingTools getPricingTools()
Retrieves the pricing Tools


setPricingTools

public void setPricingTools(PricingTools pPricingTools)
Sets the pricing Tools


setProperties

public boolean setProperties(Profile pProfile,
                             DynamoHttpServletRequest pRequest,
                             DynamoHttpServletResponse pResponse)
                      throws java.io.IOException,
                             javax.servlet.ServletException,
                             RepositoryException
Implementation of the ProfilePropertySetter's setProperties method. Will set the priceList and salePriceList properties of a profile.

Overrides:
setProperties in class ProfilePropertySetter
Parameters:
pProfile - - Profile to set properties for
pRequest - - Current request
pResponse - - Current response
Throws:
java.io.IOException
javax.servlet.ServletException
RepositoryException

setPriceListProfileProperties

protected boolean setPriceListProfileProperties(Profile pProfile,
                                                atg.multisite.Site pSite)
                                         throws RepositoryException
Sets the price list and sale price list for a profile based on the site

Parameters:
pProfile - Profile to set the properties for
pSite - Site to use in getting the price list
Returns:
True if any profile properties were changed
Throws:
RepositoryException
PriceListException