Class MailTemplateSummary

  • All Implemented Interfaces:
    Serializable

    @Entity
    public class MailTemplateSummary
    extends Object
    implements Serializable
    The MailTemplateSummary class holds the information for a mail template.
    Author:
    Marcus Portmann
    See Also:
    Serialized Form
    • Constructor Detail

      • MailTemplateSummary

        public MailTemplateSummary()
        Constructs a new MailTemplateSummary.
      • MailTemplateSummary

        public MailTemplateSummary​(String id,
                                   String name,
                                   MailTemplateContentType contentType)
        Constructs a new MailTemplateSummary.
        Parameters:
        id - the ID for the mail template
        name - the name of the mail template
        contentType - the content type for the mail template
    • Method Detail

      • equals

        public boolean equals​(Object object)
        Indicates whether some other object is "equal to" this one.
        Overrides:
        equals in class Object
        Parameters:
        object - the reference object with which to compare
        Returns:
        true if this object is the same as the object argument otherwise false
      • getContentType

        public MailTemplateContentType getContentType()
        Returns the content type for the mail template.
        Returns:
        the content type for the mail template
      • getId

        public String getId()
        Returns the ID for the mail template.
        Returns:
        the ID for the mail template
      • getName

        public String getName()
        Returns the name of the mail template.
        Returns:
        the name of the mail template
      • hashCode

        public int hashCode()
        Returns a hash code value for the object.
        Overrides:
        hashCode in class Object
        Returns:
        a hash code value for the object
      • toString

        public String toString()
        Returns a string representation of the object.
        Overrides:
        toString in class Object
        Returns:
        a string representation of the object