public class IsEmailRecipient
extends atg.servlet.DynamoServlet
Given an emailAddress, this droplet will call into StoreProfileTools.retrieveEmailRecipient(). If a valid item is returned, the droplet renders a "true" oparam, otherwise, "false".
This droplet takes the following input parameters:
This droplet renders the following oparams:
Example:
<dsp:droplet bean="/atg/store/droplet/IsEmailRecipient"> <dsp:param name="email" bean="RegistrationFormHandler.value.email"> <dsp:oparam name="true"> * </dsp:oparam> <dsp:oparam name="false"> </dsp:oparam></dsp:droplet>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected atg.userprofiling.ProfileTools |
mProfileTools
Profile tools.
|
static atg.nucleus.naming.ParameterName |
OPARAM_OUTPUT_FALSE
The oparam name rendered once if current Profile has not subscribed to receive emails.
|
static atg.nucleus.naming.ParameterName |
OPARAM_OUTPUT_TRUE
The oparam name rendered once if current Profile has already subscribed to receive emails.
|
static atg.nucleus.naming.ParameterName |
PARAM_EMAIL
The input parameter name for the email address to check.
|
| Constructor and Description |
|---|
IsEmailRecipient() |
| Modifier and Type | Method and Description |
|---|---|
atg.userprofiling.ProfileTools |
getProfileTools() |
void |
service(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Given an email address, this will call into
StoreProfileTools.retrieveEmailRecipient() to determine
if the address is already subscribed to receive emails or not.
|
void |
setProfileTools(atg.userprofiling.ProfileTools pProfileTools) |
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, init, service, service, setParameterdestroy, getServletConfig, getServletInfo, setServletInfogetAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatisticsaddLogListener, 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, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic static final java.lang.String CLASS_VERSION
public static final atg.nucleus.naming.ParameterName PARAM_EMAIL
public static final atg.nucleus.naming.ParameterName OPARAM_OUTPUT_TRUE
public static final atg.nucleus.naming.ParameterName OPARAM_OUTPUT_FALSE
protected atg.userprofiling.ProfileTools mProfileTools
public atg.userprofiling.ProfileTools getProfileTools()
public void setProfileTools(atg.userprofiling.ProfileTools pProfileTools)
pProfileTools - - The profileTools to set.public void service(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
service in class atg.servlet.DynamoServletpRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse valuejavax.servlet.ServletException - if an error occursjava.io.IOException - if an error occurs