Package org.kuali.rice.ken.bo
Class NotificationResponseBo
java.lang.Object
org.kuali.rice.ken.bo.NotificationResponseBo
- All Implemented Interfaces:
org.kuali.rice.ken.api.notification.NotificationResponseContract
public class NotificationResponseBo
extends Object
implements org.kuali.rice.ken.api.notification.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NotificationResponseBofrom(org.kuali.rice.ken.api.notification.NotificationResponse im) Converts a immutable object to its mutable counterpartGets the message attribute.Gets the id of the sent notificationGets the status attribute.voidsetMessage(String message) Sets the message attribute value.voidsetNotificationId(Long notificationId) Sets the id of the sent notificationvoidSets the status attribute value.static org.kuali.rice.ken.api.notification.NotificationResponseConverts a mutable bo to its immutable counterpart
-
Constructor Details
-
NotificationResponseBo
public NotificationResponseBo()
-
-
Method Details
-
getStatus
Gets the status attribute.- Specified by:
getStatusin interfaceorg.kuali.rice.ken.api.notification.NotificationResponseContract- Returns:
- Returns the response status.
-
setStatus
Sets the status attribute value.- Parameters:
status- The status to set.
-
getMessage
Gets the message attribute.- Specified by:
getMessagein interfaceorg.kuali.rice.ken.api.notification.NotificationResponseContract- Returns:
- Returns the response message.
-
setMessage
Sets the message attribute value.- Parameters:
message- The message to set.
-
getNotificationId
Gets the id of the sent notification- Specified by:
getNotificationIdin interfaceorg.kuali.rice.ken.api.notification.NotificationResponseContract- Returns:
- the id of the sent notification
-
setNotificationId
Sets the id of the sent notification- Parameters:
notificationId- the id of the sent notification
-
to
public static org.kuali.rice.ken.api.notification.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(org.kuali.rice.ken.api.notification.NotificationResponse im) Converts a immutable object to its mutable counterpart- Parameters:
im- immutable object- Returns:
- the mutable bo
-