org.kuali.rice.ken.bo
Class NotificationResponseBo

java.lang.Object
  extended by org.kuali.rice.ken.bo.NotificationResponseBo
All Implemented Interfaces:
NotificationResponseContract

public class NotificationResponseBo
extends Object
implements NotificationResponseContract

This class represents the data structure that will house information for a Notification Response TODO: Really this class should just be replaced by NotificationResponse...

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
NotificationResponseBo()
          Constructs a NotificationResponse.java instance.
 
Method Summary
static NotificationResponseBo from(NotificationResponse im)
          Converts a immutable object to its mutable counterpart
 String getMessage()
          Gets the message attribute.
 Long getNotificationId()
          Gets the id of the sent notification
 String getStatus()
          Gets the status attribute.
 void setMessage(String message)
          Sets the message attribute value.
 void setNotificationId(Long notificationId)
          Sets the id of the sent notification
 void setStatus(String status)
          Sets the status attribute value.
static NotificationResponse to(NotificationResponseBo bo)
          Converts a mutable bo to its immutable counterpart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationResponseBo

public NotificationResponseBo()
Constructs a NotificationResponse.java instance.

Method Detail

getStatus

public String getStatus()
Gets the status attribute.

Specified by:
getStatus in interface NotificationResponseContract
Returns:
Returns the response status.

setStatus

public void setStatus(String status)
Sets the status attribute value.

Parameters:
status - The status to set.

getMessage

public String getMessage()
Gets the message attribute.

Specified by:
getMessage in interface NotificationResponseContract
Returns:
Returns the response message.

setMessage

public void setMessage(String message)
Sets the message attribute value.

Parameters:
message - The message to set.

getNotificationId

public Long getNotificationId()
Gets the id of the sent notification

Specified by:
getNotificationId in interface NotificationResponseContract
Returns:
the id of the sent notification

setNotificationId

public void setNotificationId(Long notificationId)
Sets the id of the sent notification

Parameters:
notificationId - the id of the sent notification

to

public static NotificationResponse to(NotificationResponseBo bo)
Converts a mutable bo to its immutable counterpart

Parameters:
bo - the mutable business object
Returns:
the immutable object

from

public static NotificationResponseBo from(NotificationResponse im)
Converts a immutable object to its mutable counterpart

Parameters:
im - immutable object
Returns:
the mutable bo


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.