atg.userprofiling
Class ProfilePropertySetter

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.userprofiling.ProfilePropertySetter
All Implemented Interfaces:
atg.naming.AbsoluteNameable, NameContextBindingListener, NameContextElement, atg.naming.NameContextParentable, NameResolver, AdminableService, atg.nucleus.Configured, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, java.util.EventListener
Direct Known Subclasses:
CatalogProfilePropertySetter, PriceListProfilePropertySetter, SiteProfilePropertySetter

public abstract class ProfilePropertySetter
extends GenericService

Setter used with the ProfilePropertyServlet. This setter is responsible for setting properties on the Profile by implementing the setProperties method.


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
ProfilePropertySetter()
           
 
Method Summary
protected  boolean hasProperty(java.lang.String pPropertyName, RepositoryItem pRepositoryItem)
          Checks if item has given property
protected  boolean setProfileProperty(Profile pProfile, java.lang.String pPropertyName, java.lang.Object pPropertyValue)
          Updates the given property name on the profile if it is not already set to the current value
 boolean setProperties(Profile pProfile, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
          Method used to set profile properties by the ProfilePropertySetters.
 
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 java.lang.String CLASS_VERSION
Class version string

Constructor Detail

ProfilePropertySetter

public ProfilePropertySetter()
Method Detail

setProperties

public boolean setProperties(Profile pProfile,
                             DynamoHttpServletRequest pRequest,
                             DynamoHttpServletResponse pResponse)
                      throws java.io.IOException,
                             javax.servlet.ServletException,
                             RepositoryException
Method used to set profile properties by the ProfilePropertySetters. Invoked by the ProfilePropertyServlet.

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

setProfileProperty

protected boolean setProfileProperty(Profile pProfile,
                                     java.lang.String pPropertyName,
                                     java.lang.Object pPropertyValue)
Updates the given property name on the profile if it is not already set to the current value

Parameters:
pProfile - - Profile to set the property on
pPropertyName - - Name of the profile property to set
pPropertyValue - - New Value for the profile property

hasProperty

protected boolean hasProperty(java.lang.String pPropertyName,
                              RepositoryItem pRepositoryItem)
                       throws RepositoryException
Checks if item has given property

Parameters:
pPropertyName - - property name
pRepositoryItem - - profile
Returns:
true if profile has given property
Throws:
RepositoryException - if repository exception occur