atg.commerce.catalog.custom
Class CatalogProfilePropertySetter

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.userprofiling.ProfilePropertySetter
              extended by atg.commerce.catalog.custom.CatalogProfilePropertySetter
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 CatalogProfilePropertySetter
extends ProfilePropertySetter

Commerce specific implementation of the ProfilePropertySetter that sets set the catalog property 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
CatalogProfilePropertySetter()
           
 
Method Summary
 CustomCatalogTools getCatalogTools()
          Retrieves the catalog Tools
 boolean isEnabled()
           
protected  boolean setCatalogProfileProperty(Profile pProfile, atg.multisite.Site pSite)
          Sets the catalog property on the profile based on the given site.
 void setCatalogTools(CustomCatalogTools pCatalogTools)
          Sets the catalog Tools
 void setEnabled(boolean pEnabled)
          Sets property Enabled
 boolean setProperties(Profile pProfile, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
          Implements the setProperties method of the ProfilePropertySetter interface.
 
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

CatalogProfilePropertySetter

public CatalogProfilePropertySetter()
Method Detail

isEnabled

public boolean isEnabled()
Returns:
true if catalog property should be calculated

setEnabled

public void setEnabled(boolean pEnabled)
Sets property Enabled


getCatalogTools

public CustomCatalogTools getCatalogTools()
Retrieves the catalog Tools


setCatalogTools

public void setCatalogTools(CustomCatalogTools pCatalogTools)
Sets the catalog Tools


setProperties

public boolean setProperties(Profile pProfile,
                             DynamoHttpServletRequest pRequest,
                             DynamoHttpServletResponse pResponse)
                      throws java.io.IOException,
                             javax.servlet.ServletException,
                             RepositoryException
Implements the setProperties method of the ProfilePropertySetter interface. Will update the catalog property of a profile based on the values from the current site and the default catalog.

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

setCatalogProfileProperty

protected boolean setCatalogProfileProperty(Profile pProfile,
                                            atg.multisite.Site pSite)
                                     throws RepositoryException
Sets the catalog property on the profile based on the given site.

Parameters:
pProfile - profile to set the catalog property
pSite - site to use for getting the catalog property
Returns:
true if the catalog was updated on the profile
Throws:
RepositoryException