EmailMessage.java

package com.mycim.valueobject.alm;

import com.mycim.valueobject.security.User;

import java.io.Serializable;
import java.util.Date;

/**
 * @author andy
 */
public class EmailMessage implements Serializable {

    public static final String USERGROUP_SEPARATOR = ",";

    private static final long serialVersionUID = 8519903428811219564L;

    private long messageRrn;

    private String fromUser;

    private String toUsers;

    private String ccUsers;

    private String subject;

    private String content;

    private String emailType;

    private Date createdDate;

    private User createdUser;

    private Date lastUpdatedDate;

    private User lastUpdatedUser;

    private String attributeData1;

    private String attributeData2;

    private String attributeData3;

    private String attributeData4;

    private String attributeData5;

    /**
     * @return the messageRrn
     */
    public long getMessageRrn() {
        return messageRrn;
    }

    /**
     * @param messageRrn the messageRrn to set
     */
    public void setMessageRrn(long messageRrn) {
        this.messageRrn = messageRrn;
    }

    /**
     * @return the fromUser
     */
    public String getFromUser() {
        return fromUser;
    }

    /**
     * @param fromUser the fromUser to set
     */
    public void setFromUser(String fromUser) {
        this.fromUser = fromUser;
    }

    /**
     * @return the toUsers
     */
    public String getToUsers() {
        return toUsers;
    }

    /**
     * @param toUsers the toUsers to set
     */
    public void setToUsers(String toUsers) {
        this.toUsers = toUsers;
    }

    /**
     * @return the ccUsers
     */
    public String getCcUsers() {
        return ccUsers;
    }

    /**
     * @param ccUsers the ccUsers to set
     */
    public void setCcUsers(String ccUsers) {
        this.ccUsers = ccUsers;
    }

    /**
     * @return the subject
     */
    public String getSubject() {
        return subject;
    }

    /**
     * @param subject the subject to set
     */
    public void setSubject(String subject) {
        this.subject = subject;
    }

    /**
     * @return the content
     */
    public String getContent() {
        return content;
    }

    /**
     * @param content the content to set
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * @return the emailType
     */
    public String getEmailType() {
        return emailType;
    }

    /**
     * @param emailType the emailType to set
     */
    public void setEmailType(String emailType) {
        this.emailType = emailType;
    }

    /**
     * @return the createdDate
     */
    public Date getCreatedDate() {
        return createdDate;
    }

    /**
     * @param createdDate the createdDate to set
     */
    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    /**
     * @return the createdUser
     */
    public User getCreatedUser() {
        return createdUser;
    }

    /**
     * @param createdUser the createdUser to set
     */
    public void setCreatedUser(User createdUser) {
        this.createdUser = createdUser;
    }

    /**
     * @return the lastUpdatedDate
     */
    public Date getLastUpdatedDate() {
        return lastUpdatedDate;
    }

    /**
     * @param lastUpdatedDate the lastUpdatedDate to set
     */
    public void setLastUpdatedDate(Date lastUpdatedDate) {
        this.lastUpdatedDate = lastUpdatedDate;
    }

    /**
     * @return the lastUpdatedUser
     */
    public User getLastUpdatedUser() {
        return lastUpdatedUser;
    }

    /**
     * @param lastUpdatedUser the lastUpdatedUser to set
     */
    public void setLastUpdatedUser(User lastUpdatedUser) {
        this.lastUpdatedUser = lastUpdatedUser;
    }

    /**
     * @return the attributeData1
     */
    public String getAttributeData1() {
        return attributeData1;
    }

    /**
     * @param attributeData1 the attributeData1 to set
     */
    public void setAttributeData1(String attributeData1) {
        this.attributeData1 = attributeData1;
    }

    /**
     * @return the attributeData2
     */
    public String getAttributeData2() {
        return attributeData2;
    }

    /**
     * @param attributeData2 the attributeData2 to set
     */
    public void setAttributeData2(String attributeData2) {
        this.attributeData2 = attributeData2;
    }

    /**
     * @return the attributeData3
     */
    public String getAttributeData3() {
        return attributeData3;
    }

    /**
     * @param attributeData3 the attributeData3 to set
     */
    public void setAttributeData3(String attributeData3) {
        this.attributeData3 = attributeData3;
    }

    /**
     * @return the attributeData4
     */
    public String getAttributeData4() {
        return attributeData4;
    }

    /**
     * @param attributeData4 the attributeData4 to set
     */
    public void setAttributeData4(String attributeData4) {
        this.attributeData4 = attributeData4;
    }

    /**
     * @return the attributeData5
     */
    public String getAttributeData5() {
        return attributeData5;
    }

    /**
     * @param attributeData5 the attributeData5 to set
     */
    public void setAttributeData5(String attributeData5) {
        this.attributeData5 = attributeData5;
    }

    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    public String toString() {
        return "EmailMessage [messageRrn=" + messageRrn + ", fromUser=" + fromUser + ", toUsers=" + toUsers + ", " +
                "ccUsers=" + ccUsers + ", subject=" + subject + ", content=" + content + ", emailType=" + emailType +
                ", createdDate=" + createdDate + ", createdUser=" + createdUser + ", lastUpdatedDate=" +
                lastUpdatedDate + ", lastUpdatedUser=" + lastUpdatedUser + ", attributeData1=" + attributeData1 +
                ", attributeData2=" + attributeData2 + ", attributeData3=" + attributeData3 + ", attributeData4=" +
                attributeData4 + ", attributeData5=" + attributeData5 + "]";
    }

}