atg.projects.b2cstore
Class B2CEmailFormHandler
java.lang.Object
   atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
       atg.nucleus.GenericService
atg.nucleus.GenericService
           atg.droplet.EmptyFormHandler
atg.droplet.EmptyFormHandler
               atg.droplet.GenericFormHandler
atg.droplet.GenericFormHandler
                   atg.service.email.EmailFormHandler
atg.service.email.EmailFormHandler
                       atg.projects.b2cstore.B2CEmailFormHandler
atg.projects.b2cstore.B2CEmailFormHandler
- All Implemented Interfaces: 
- DropletFormHandler, 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
- public class B2CEmailFormHandler 
- extends EmailFormHandler
This class handles sending an email to Pioneer Cycling's
 customer support group. It extends 
 atg.service.email.EmailFormHandler, 
 overriding the sendMail() method to extract the user's name, 
 repository id, and email address from her/his profile, and sending the 
 email to a fixed destination (by default, 
 customer_svc@pioneer_cycling.com)
- See Also:
- EmailFormHandler
 
 
 
 
| Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging | 
| DEFAULT_LOG_TRACE_STATUS | 
 
 
 
 
| Methods inherited from class atg.service.email.EmailFormHandler | 
| getBody, getDefaultLocale, getEmailSenderService, getRecipient, getSender, getSendErrorURL, getSendSuccessURL, getSubject, getUserLocale, handleSendEmail, isUseRequestLocale, setBody, setDefaultLocale, setEmailSenderService, setRecipient, setSender, setSendErrorURL, setSendSuccessURL, setSubject, setUseRequestLocale, toString, validate | 
 
| Methods inherited from class atg.droplet.GenericFormHandler | 
| addFormException, addUncheckedFormException, afterSet, beforeSet, checkFormRedirect, createFormSubmissionMessage, getCancelURL, getCheckForValidSession, getFormError, getFormExceptions, getFormName, getMessagePort, getMessageSource, getMessageType, getPropertyExceptions, getSendMessages, getUncheckedFormExceptions, handleCancel, handleFormException, handleUncheckedFormException, hasUncheckedFormExceptions, isDeferForwardsAndRedirects, isRestorableForm, isUseForwards, isValidSession, redirectOrForward, resetFormExceptions, setCancelURL, setCheckForValidSession, setDeferForwardsAndRedirects, setFormName, setMessagePort, setMessageSource, setMessageType, setRestorableForm, setSendMessages, setUseForwards | 
 
 
| 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, wait, wait, wait | 
 
CLASS_VERSION
public static java.lang.String CLASS_VERSION
B2CEmailFormHandler
public B2CEmailFormHandler()
- Constructs a B2CEmailFormHandler.
 
setCustomerServiceEmailAddress
public void setCustomerServiceEmailAddress(java.lang.String pCustomerServiceEmailAddress)
- Sets property customerServiceEmailAddress, the fixed recipient of feedback
 email messages from registered users of the PioneerCycling store.
 
- 
 
getCustomerServiceEmailAddress
public java.lang.String getCustomerServiceEmailAddress()
- Returns property customerServiceEmailAddress
 
- 
 
setProfile
public void setProfile(Profile pProfile)
- Sets property profile
 
- 
 
getProfile
public Profile getProfile()
- Returns property profile
 
- 
 
sendMail
protected boolean sendMail(DynamoHttpServletRequest pRequest,
                           DynamoHttpServletResponse pResponse)
                    throws javax.servlet.ServletException,
                           java.io.IOException
- Customizes the send operation.  Overrides the sender and recipient
 properties to the following:
 
 sender: full name (id) <email>
 recipient: customer_svc@pioneer_cycling.com
 
 The full name and email address come from the user's profile, and
 the id is the user's profile repository id.  The recipient is the value
 specified in the properties file for the customerServiceEmailAddress. 
 The EmailFormHandler'ssendMail()is then called normally.
 
 
- 
- Overrides:
- sendMailin class- EmailFormHandler
 
- 
- Returns:
- a boolean value
- Throws:
- javax.servlet.ServletException
- java.io.IOException