atg.projects.store.servlet.pipeline
Class StoreProfilePropertySetter

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.userprofiling.ProfilePropertySetter
              extended by atg.projects.store.servlet.pipeline.StoreProfilePropertySetter
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, java.util.EventListener

public class StoreProfilePropertySetter
extends atg.userprofiling.ProfilePropertySetter

Update the store profile properties based on values for the current site.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
static java.lang.String USER_PREF_LANGUAGE_COOKIE_NAME
           
 
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
StoreProfilePropertySetter()
           
 
Method Summary
protected  void createUserPrefLangCookie(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse, java.util.Locale pLocale)
          This operation creates cookie for user preffered language.
 StorePropertyManager getPropertyManager()
          Getter method for the propertyManager property.
 boolean setProperties(atg.userprofiling.Profile pProfile, atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
          Update the store profile properties based on values for the current site
 void setPropertyManager(StorePropertyManager pPropertyManager)
           
protected  void updateProfileLocale(atg.userprofiling.Profile pProfile, java.util.Locale pLocale)
          Updates locale in profile.
 
Methods inherited from class atg.userprofiling.ProfilePropertySetter
hasProperty, setProfileProperty
 
Methods inherited from class atg.nucleus.GenericService
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
 
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

CLASS_VERSION

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

See Also:
Constant Field Values

USER_PREF_LANGUAGE_COOKIE_NAME

public static final java.lang.String USER_PREF_LANGUAGE_COOKIE_NAME
See Also:
Constant Field Values
Constructor Detail

StoreProfilePropertySetter

public StoreProfilePropertySetter()
Method Detail

getPropertyManager

public StorePropertyManager getPropertyManager()
Getter method for the propertyManager property. This manager will be used to retrieve profile-related property names.

Returns:
PropertyManager to be used.

setPropertyManager

public void setPropertyManager(StorePropertyManager pPropertyManager)

setProperties

public boolean setProperties(atg.userprofiling.Profile pProfile,
                             atg.servlet.DynamoHttpServletRequest pRequest,
                             atg.servlet.DynamoHttpServletResponse pResponse)
                      throws java.io.IOException,
                             javax.servlet.ServletException,
                             atg.repository.RepositoryException
Update the store profile properties based on values for the current site

Overrides:
setProperties in class atg.userprofiling.ProfilePropertySetter
Parameters:
pProfile - - Profile to set properties for
pRequest - - Current request
pResponse - - Current response
Returns:
true
Throws:
java.io.IOException - an error occurred reading data from the request or writing data to the response.
javax.servlet.ServletException - an application specific error occurred processing this request
atg.repository.RepositoryException - indicates that a severe error occured while performing a Repository task

createUserPrefLangCookie

protected void createUserPrefLangCookie(atg.servlet.DynamoHttpServletRequest pRequest,
                                        atg.servlet.DynamoHttpServletResponse pResponse,
                                        java.util.Locale pLocale)
This operation creates cookie for user preffered language.

Parameters:
pRequest - DynamoHttpServletRequest object.
pLocale - User preferred language.

updateProfileLocale

protected void updateProfileLocale(atg.userprofiling.Profile pProfile,
                                   java.util.Locale pLocale)
Updates locale in profile.

Parameters:
pRequest - DynamoHttpServletRequest object.
pLocale - Profile Locale.