public class SubscriptionNotificationCmdImpl extends TaskCommandImpl implements SubscriptionNotificationCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The copy right field.
|
Constructor and Description |
---|
SubscriptionNotificationCmdImpl()
Default implementation of the constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object[] | buildNotificationMessageSubjectParameters(java.lang.Integer languageId, java.lang.String subjectMessageKey)
This method builds the subject parameters for the message.
|
protected java.lang.String | buildSubjectForMerchantNotification(java.lang.String subjectKey, CommandContext context)
This method builds the subject for the merchant e-mail notification based on the subject key and the context.It refers to the ECMessageHelper to fetch the message using the key specified.
|
protected java.lang.String | buildSubjectForUserNotification(java.lang.String strMsgSubjectKey, CommandContext context)
This method builds the subject for the user notification e-mail.
|
protected void | createTicklerForCSR()
This method creates a tickler for the CSR.
|
protected CommerceFoundationFactory | getCommerceFoundationFactory()
This method returns an instance of the commerce foundation factory.
|
protected TypedProperty | getMerchantNotificationProperties()
This method returns the merchant notification properties.
|
protected OnlineStoreType | getOnlineStore()
This method returns the online store information corresponding to the store ID of the subscription.
|
protected PersonType | getPerson()
This method returns the person logical noun corresponding to the owner of the subscription.
|
protected Subscription | getSubscription()
This method returns the subscription physical SDO corresponding to the unique ID of the subscription specified.
|
protected java.lang.Long | getSubscriptionId()
This method returns the unique ID of the subscription for which the notification is being sent.
|
protected TypedProperty | getTicklerProperties()
This method returns the input properties set for creating the tickler.
|
protected TypedProperty | getUserNotificationProperties()
This method returns the user e-mail notification properties.
|
protected boolean | isSetCreateTicklerForCSR()
This method indicates if the tickler creation flag is set.
|
protected boolean | isSetNotifyMerchantByEmail()
This method indicates if the merchant notification flag is set.
|
protected boolean | isSetNotifyUser()
This method indicates if the user notification flag is set.
|
protected void | notifyMerchant()
This method notifies the merchant by e-mail.
|
protected void | notifyUser()
This method sends the e-mail notification to the user.
|
void | performExecute()
This method performs the business logic for the command.
|
void | setCreateTicklerForCSR(boolean createTickler)
This method sets the tickler notification flag for the command.
|
void | setMerchantNotificationProperties(TypedProperty properties)
This method sets the input properties for e-mail to be sent to the merchant.
|
void | setNotifyMerchantByEmail(boolean notifyMerchantByEmail)
This method sets the merchant e-mail notification flag for the command.
|
void | setNotifyUser(boolean notifyUserByEmail)
This method sets the user e-mail notification flag for the command.
|
void | setSubscriptionId(java.lang.Long subscriptionId)
This method sets the unique ID of the subscription for which the notifications are being sent.
|
void | setTicklerProperties(TypedProperty properties)
This method sets the input properties for the tickler creation.
|
void | setUserNotificationProperties(TypedProperty properties)
This method sets the input properties for e-mail to be sent to the user.
|
void | validateParameters()
This method validates the parameters for the command.
|
public static final java.lang.String COPYRIGHT
public SubscriptionNotificationCmdImpl()
public void setCreateTicklerForCSR(boolean createTickler)
public void setNotifyMerchantByEmail(boolean notifyMerchantByEmail)
public void setNotifyUser(boolean notifyUserByEmail)
public void setSubscriptionId(java.lang.Long subscriptionId)
public void setMerchantNotificationProperties(TypedProperty properties)
public void setTicklerProperties(TypedProperty properties)
public void setUserNotificationProperties(TypedProperty properties)
public void validateParameters() throws ECException
public void performExecute() throws ECException
protected boolean isSetCreateTicklerForCSR()
protected boolean isSetNotifyMerchantByEmail()
protected boolean isSetNotifyUser()
protected java.lang.Long getSubscriptionId()
protected Subscription getSubscription()
protected void notifyUser() throws ECException
protected java.lang.String buildSubjectForUserNotification(java.lang.String strMsgSubjectKey, CommandContext context)
protected java.lang.Object[] buildNotificationMessageSubjectParameters(java.lang.Integer languageId, java.lang.String subjectMessageKey)
protected TypedProperty getMerchantNotificationProperties()
protected TypedProperty getUserNotificationProperties()
protected PersonType getPerson()
protected void notifyMerchant() throws ECException
protected java.lang.String buildSubjectForMerchantNotification(java.lang.String subjectKey, CommandContext context)
protected OnlineStoreType getOnlineStore()
protected CommerceFoundationFactory getCommerceFoundationFactory()
protected void createTicklerForCSR() throws ECException
protected TypedProperty getTicklerProperties()