/* * * Copyright 2013 Entando S.r.l. (http://www.entando.com) All rights reserved. * * This file is part of Entando Enterprise Edition software. * You can redistribute it and/or modify it * under the terms of the Entando's EULA * * See the file License for the specific language governing permissions * and limitations under the License * * * * Copyright 2013 Entando S.r.l. (http://www.entando.com) All rights reserved. * */ package com.agiletec.plugins.jpwebdynamicform.aps.system.services.message.model; import java.util.Date; import java.util.Properties; /** * Bean class representing an Answer to a Message. * @author E.Mezzano */ public class Answer { /** * Returns the id of the answer. * @return The id of the answer. */ public String getAnswerId() { return _id; } /** * Sets the id of the answer. * @param id The id of the answer. */ public void setAnswerId(String id) { this._id = id; } /** * Returns the id of the message. * @return The id of the message. */ public String getMessageId() { return _messageId; } /** * Sets the id of the message. * @param messageId The id of the message. */ public void setMessageId(String messageId) { this._messageId = messageId; } /** * Returns the operator username. * @return The operator username. */ public String getOperator() { return _operator; } /** * Sets the operator username. * @param operator The operator username. */ public void setOperator(String operator) { this._operator = operator; } /** * Returns the date of sending of the answer. * @return The date of sending of the answer. */ public Date getSendDate() { return _sendDate; } /** * Sets the date of sending of the answer. * @param sendDate The date of sending of the answer. */ public void setSendDate(Date sendDate) { this._sendDate = sendDate; } /** * Returns the text of the answer. * @return The text of the answer. */ public String getText() { return _text; } /** * Sets the text of the answer. * @param text The text of the answer. */ public void setText(String text) { this._text = text; } /** * Returns the attachments to send with the answer. * @return The attachments of the answer. Is a map containing the name of the attachment name and the file path. */ public Properties getAttachments() { return _attachments; } /** * Sets the attachments of the answer. Must be a map containing the name of the attachment and its input stream. * @param attachments The attachments of the answer. Is a map containing the name of the attachment name and the file path. */ public void setAttachments(Properties attachments) { this._attachments = attachments; } private String _id; private String _messageId; private String _operator; private Date _sendDate; private String _text; private Properties _attachments; }