Class EmailNotification

java.lang.Object
com.thortech.xl.vo.workflow.EmailNotification
All Implemented Interfaces:
Serializable

public class EmailNotification extends Object implements Serializable
Author:
nkaushik Represents the email notifications defined for the task
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the name of the email template based on which the email to send should be generated
    Returns the Key of the Email Template based on which the email to send is generated
    Returns the Email Notification Definition Key (MEV_KEY)
    Returns the status for which the email should be sent
    Returns the Key of the Status based on which the email is sent
    boolean
    Returns whether the email should be sent to the Task Assignee
    boolean
    Returns whether the email should be sent to the Requester
    boolean
    Returns whether the email should be sent to the Beneficiary User
    boolean
    Returns whether the email should be sent to the Beneficiary Users Manager
    void
    setAssignee(boolean assignee)
    Sets whether the email should be sent to the Task Assignee
    void
    setEmailTemplate(String emailTemplate)
    Sets the name of the email template based on which the email to send should be generated
    void
    setEmailTemplateKey(String emailTemplateKey)
    Sets the Key of the Email Template based on which the email to send is generated
    void
    Sets the Email Notification Definition Key (MEV_KEY)
    void
    setRequester(boolean requester)
    Sets whether the email should be sent to the Requester
    void
    setStatus(String status)
    Sets the status for which the email should be sent
    void
    setStatusKey(String statusKey)
    Sets the Key of the Status based on which the email is sent
    void
    setUser(boolean user)
    Sets whether the email should be sent to the beneficiary User
    void
    setUserManager(boolean userManager)
    Sets whether the email should be sent to the Beneficiary Users Manager

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EmailNotification

      public EmailNotification()
  • Method Details

    • isAssignee

      public boolean isAssignee()
      Returns whether the email should be sent to the Task Assignee
      Returns:
      True if it should be sent, False if not.
    • setAssignee

      public void setAssignee(boolean assignee)
      Sets whether the email should be sent to the Task Assignee
      Parameters:
      assignee - True if it should be sent, False if not.
    • getEmailTemplate

      public String getEmailTemplate()
      Returns the name of the email template based on which the email to send should be generated
      Returns:
      The Email Template Name.
    • setEmailTemplate

      public void setEmailTemplate(String emailTemplate)
      Sets the name of the email template based on which the email to send should be generated
      Parameters:
      emailTemplate - The Email Template Name to set.
    • isRequester

      public boolean isRequester()
      Returns whether the email should be sent to the Requester
      Returns:
      True if it should be sent, False if not.
    • setRequester

      public void setRequester(boolean requester)
      Sets whether the email should be sent to the Requester
      Parameters:
      requester - True if it should be sent, False if not.
    • getStatus

      public String getStatus()
      Returns the status for which the email should be sent
      Returns:
      The status.
    • setStatus

      public void setStatus(String status)
      Sets the status for which the email should be sent
      Parameters:
      status - The status to set.
    • isUser

      public boolean isUser()
      Returns whether the email should be sent to the Beneficiary User
      Returns:
      True if it should be sent, False if not.
    • setUser

      public void setUser(boolean user)
      Sets whether the email should be sent to the beneficiary User
      Parameters:
      user - True if it should be sent, False if not.
    • isUserManager

      public boolean isUserManager()
      Returns whether the email should be sent to the Beneficiary Users Manager
      Returns:
      True if it should be sent, False if not.
    • setUserManager

      public void setUserManager(boolean userManager)
      Sets whether the email should be sent to the Beneficiary Users Manager
      Parameters:
      userManager - True if it should be sent, False if not.
    • getKey

      public String getKey()
      Returns the Email Notification Definition Key (MEV_KEY)
      Returns:
      The key.
    • setKey

      public void setKey(String key)
      Sets the Email Notification Definition Key (MEV_KEY)
      Parameters:
      key - The key to set.
    • getEmailTemplateKey

      public String getEmailTemplateKey()
      Returns the Key of the Email Template based on which the email to send is generated
      Returns:
      The Email Template Key.
    • setEmailTemplateKey

      public void setEmailTemplateKey(String emailTemplateKey)
      Sets the Key of the Email Template based on which the email to send is generated
      Parameters:
      emailTemplateKey - The Email Template Key to set.
    • getStatusKey

      public String getStatusKey()
      Returns the Key of the Status based on which the email is sent
      Returns:
      The Status Key.
    • setStatusKey

      public void setStatusKey(String statusKey)
      Sets the Key of the Status based on which the email is sent
      Parameters:
      statusKey - The Status Key to set.