001 /**
002 * Copyright 2005-2011 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package org.kuali.rice.ken.bo;
017
018 import org.kuali.rice.ken.util.NotificationConstants;
019
020
021 /**
022 * This class represents the data structure that will house information for
023 * a Notification Response
024 * @author Kuali Rice Team (rice.collab@kuali.org)
025 */
026 public class NotificationResponse {
027
028 private String status;
029
030 private String message;
031
032 private Long notificationId;
033
034 /**
035 * Constructs a NotificationResponse.java instance.
036 */
037 public NotificationResponse() {
038 status = NotificationConstants.RESPONSE_STATUSES.SUCCESS;
039 }
040
041 /**
042 * Gets the status attribute.
043 * @return Returns the response status.
044 */
045 public String getStatus() {
046 return status;
047 }
048
049 /**
050 * Sets the status attribute value.
051 * @param status The status to set.
052 */
053 public void setStatus(String status) {
054 this.status = status;
055 }
056
057 /**
058 * Gets the message attribute.
059 * @return Returns the response message.
060 */
061
062 public String getMessage() {
063 return message;
064 }
065
066 /**
067 * Sets the message attribute value.
068 * @param message The message to set.
069 */
070 public void setMessage(String message) {
071 this.message = message;
072 }
073
074 /**
075 * Gets the id of the sent notification
076 * @return the id of the sent notification
077 */
078 public Long getNotificationId() {
079 return notificationId;
080 }
081
082 /**
083 * Sets the id of the sent notification
084 * @param notificationId the id of the sent notification
085 */
086 public void setNotificationId(Long notificationId) {
087 this.notificationId = notificationId;
088 }
089
090 }