com.ibm.commerce.emarketing.beans
Class EmailActivityUrlHelperDataBean

java.lang.Object
  com.ibm.commerce.beans.InputDataBeanImpl
      com.ibm.commerce.beans.SmartDataBeanImpl
          com.ibm.commerce.emarketing.beans.EmailActivityUrlHelperDataBeanBase
              com.ibm.commerce.emarketing.beans.EmailActivityUrlHelperDataBean
All Implemented Interfaces:
DataBean, Delegator, InputDataBean, Protectable, java.io.Serializable, SmartDataBean

public class EmailActivityUrlHelperDataBean
extends EmailActivityUrlHelperDataBeanBase

Provides JSP authors with the encrypted url strings to use to record various e-mail activity events.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
Copyright.
static java.lang.String ENCRYPTO
The query string parameter used to identify the encrypted parameters.
Fields inherited from class com.ibm.commerce.beans.SmartDataBeanImpl
commandContext
Fields inherited from class com.ibm.commerce.beans.InputDataBeanImpl
requestProperties
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
Constructor Summary
EmailActivityUrlHelperDataBean(java.lang.String urlHeader, java.lang.Long usersId, java.lang.Integer emailPromotionId, java.lang.Integer storeId)
Constructor.
Method Summary
java.lang.String getClickedEventUrl(java.lang.String nextUrl)
get the openedEventUrl()
java.lang.String getOpenedEventUrl(java.lang.String nextUrl)
get the clickedEventUrl
java.lang.String getOptOutUrl(java.lang.String nextUrl)
get the optOutUrl()
void populate()
populate the data bean.
Methods inherited from class com.ibm.commerce.emarketing.beans.EmailActivityUrlHelperDataBeanBase
getDelegate, getOwner
Methods inherited from class com.ibm.commerce.beans.SmartDataBeanImpl
fulfills, getCommandContext, getResources, setCommandContext
Methods inherited from class com.ibm.commerce.beans.InputDataBeanImpl
getRequestProperties, setRequestProperties
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills
Methods inherited from interface com.ibm.commerce.beans.InputDataBean
getRequestProperties, setRequestProperties
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.
See Also:
Constant Field Values

ENCRYPTO

public static final java.lang.String ENCRYPTO
The query string parameter used to identify the encrypted parameters.
See Also:
Constant Field Values
Constructor Detail

EmailActivityUrlHelperDataBean

public EmailActivityUrlHelperDataBean(java.lang.String urlHeader,
                                      java.lang.Long usersId,
                                      java.lang.Integer emailPromotionId,
                                      java.lang.Integer storeId)
Constructor.
Parameters:
urlHeader - The url path to the EmailEventCmdImpl command.
usersId - the ID of the user who received the email.
emailPromotionId - the ID of the e-mail activity.
storeId - The ID of the store to which the activity belongs.
Method Detail

populate

public void populate()
              throws java.lang.Exception
populate the data bean.
Specified by:
populate in interface SmartDataBean
Overrides:
populate in class SmartDataBeanImpl
Throws:
java.lang.Exception - Thrown when the encryption algorithms fail to execute successfully.

getOpenedEventUrl

public java.lang.String getOpenedEventUrl(java.lang.String nextUrl)
get the clickedEventUrl
Parameters:
nextUrl - The url to forward on to the browser after recording the open event.
Returns:
String

getClickedEventUrl

public java.lang.String getClickedEventUrl(java.lang.String nextUrl)
get the openedEventUrl()
Parameters:
nextUrl - The url to forward on to the browser after recording the open event.
Returns:
String

getOptOutUrl

public java.lang.String getOptOutUrl(java.lang.String nextUrl)
get the optOutUrl()
Parameters:
nextUrl - The url to forward on to the browser after recording the open event.
Returns:
String

Feedback