@Entity public class NotificationBo extends PersistableBusinessObjectBase implements NotificationContract, Lockable
extension, versionNumber
Constructor and Description |
---|
NotificationBo()
Constructs a Notification instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addRecipient(NotificationRecipientBo recipient)
Adds a recipient
|
void |
addSender(NotificationSenderBo sender)
Adds a sender
|
static NotificationBo |
from(Notification im)
Converts a immutable object to its mutable counterpart
|
org.joda.time.DateTime |
getAutoRemoveDateTime() |
Timestamp |
getAutoRemoveDateTimeValue()
Gets the autoRemoveDateTime attribute.
|
NotificationChannelBo |
getChannel()
Gets the channel attribute.
|
String |
getContent()
Gets the content attribute.
|
String |
getContentMessage()
This method just uses StringUtils to get at the content of the
|
NotificationContentTypeBo |
getContentType()
Gets the contentType attribute.
|
org.joda.time.DateTime |
getCreationDateTime()
This is the namespace code for the Group.
|
Timestamp |
getCreationDateTimeValue()
Returns when this Notification entry was created
|
String |
getDeliveryType()
Gets the deliveryType attribute.
|
Long |
getId()
Gets the id attribute.
|
org.joda.time.DateTime |
getLockedDate() |
Timestamp |
getLockedDateValue()
Gets the lockedDate attribute.
|
Integer |
getLockVerNbr()
Return value of lock column for OJB optimistic locking
|
NotificationPriorityBo |
getPriority()
Gets the priority attribute.
|
String |
getProcessingFlag()
Gets the processingFlag attribute.
|
NotificationProducerBo |
getProducer()
Gets the producer attribute.
|
NotificationRecipientBo |
getRecipient(int index)
Retrieves a recipient at the specified index
|
List<NotificationRecipientBo> |
getRecipients()
Gets the recipients attribute.
|
org.joda.time.DateTime |
getSendDateTime() |
Timestamp |
getSendDateTimeValue()
Gets the sendDateTime attribute.
|
NotificationSenderBo |
getSender(int index)
Retrieves a sender at the specified index
|
List<NotificationSenderBo> |
getSenders()
Gets the senders attribute.
|
String |
getTitle()
Gets the title
|
void |
setAutoRemoveDateTimeValue(Timestamp autoRemoveDateTimeValue)
Sets the autoRemoveDateTime attribute value.
|
void |
setChannel(NotificationChannelBo channel)
Sets the channel attribute value.
|
void |
setContent(String content)
Sets the content attribute value.
|
void |
setContentType(NotificationContentTypeBo contentType)
Sets the contentType attribute value.
|
void |
setCreationDateTimeValue(Timestamp created)
Sets the creation date of this Notification entry
|
void |
setDeliveryType(String deliveryType)
Sets the deliveryType attribute value.
|
void |
setId(Long id)
Sets the id attribute value.
|
void |
setLockedDateValue(Timestamp lockedDateValue)
Sets the lockedDate attribute value.
|
void |
setLockVerNbr(Integer lockVerNbr)
Set value of lock column for OJB optimistic locking
|
void |
setPriority(NotificationPriorityBo priority)
Sets the priority attribute value.
|
void |
setProcessingFlag(String processingFlag)
Sets the processingFlag attribute value.
|
void |
setProducer(NotificationProducerBo producer)
Sets the producer attribute value.
|
void |
setRecipients(List<NotificationRecipientBo> recipients)
Sets the recipients attribute value.
|
void |
setSendDateTimeValue(Timestamp sendDateTimeValue)
Sets the sendDateTime attribute value.
|
void |
setSenders(List<NotificationSenderBo> senders)
Sets the senders attribute value.
|
void |
setTitle(String title)
Sets the title
|
static Notification |
to(NotificationBo bo)
Converts a mutable bo to its immutable counterpart
|
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVersionNumber
getObjectId
toString
public NotificationBo()
public Timestamp getCreationDateTimeValue()
public org.joda.time.DateTime getCreationDateTime()
NotificationContract
This is a namespace code assigned to a Group. Together with name, it makes up another unique identifier for Group
getCreationDateTime
in interface NotificationContract
public void setCreationDateTimeValue(Timestamp created)
created
- the creation date of this Notification entrypublic Integer getLockVerNbr()
public void setLockVerNbr(Integer lockVerNbr)
lockVerNbr
- value of lock column for OJB optimistic lockingpublic List<NotificationRecipientBo> getRecipients()
getRecipients
in interface NotificationContract
public void setRecipients(List<NotificationRecipientBo> recipients)
recipients
- The recipients to set.public NotificationRecipientBo getRecipient(int index)
index
- the index in the recipients collectionpublic void addRecipient(NotificationRecipientBo recipient)
recipient
- The recipient to addpublic List<NotificationSenderBo> getSenders()
getSenders
in interface NotificationContract
public void setSenders(List<NotificationSenderBo> senders)
senders
- The senders to set.public NotificationSenderBo getSender(int index)
index
- the index in the senders collectionpublic void addSender(NotificationSenderBo sender)
sender
- The sender to addpublic Timestamp getAutoRemoveDateTimeValue()
public org.joda.time.DateTime getAutoRemoveDateTime()
getAutoRemoveDateTime
in interface NotificationContract
public void setAutoRemoveDateTimeValue(Timestamp autoRemoveDateTimeValue)
autoRemoveDateTimeValue
- The autoRemoveDateTime to set.public NotificationChannelBo getChannel()
getChannel
in interface NotificationContract
public void setChannel(NotificationChannelBo channel)
channel
- The channel to set.public String getContent()
getContent
in interface NotificationContract
public void setContent(String content)
content
- The content to set.public NotificationContentTypeBo getContentType()
getContentType
in interface NotificationContract
public void setContentType(NotificationContentTypeBo contentType)
contentType
- The contentType to set.public String getDeliveryType()
getDeliveryType
in interface NotificationContract
public void setDeliveryType(String deliveryType)
deliveryType
- The deliveryType to set.public Long getId()
getId
in interface KenIdentifiable
public NotificationPriorityBo getPriority()
getPriority
in interface NotificationContract
public void setPriority(NotificationPriorityBo priority)
priority
- The priority to set.public NotificationProducerBo getProducer()
getProducer
in interface NotificationContract
public void setProducer(NotificationProducerBo producer)
producer
- The producer to set.public Timestamp getSendDateTimeValue()
public org.joda.time.DateTime getSendDateTime()
getSendDateTime
in interface NotificationContract
public void setSendDateTimeValue(Timestamp sendDateTimeValue)
sendDateTimeValue
- The sendDateTime to set.public String getProcessingFlag()
getProcessingFlag
in interface NotificationContract
public void setProcessingFlag(String processingFlag)
processingFlag
- The processingFlag to set.public Timestamp getLockedDateValue()
getLockedDateValue
in interface Lockable
public org.joda.time.DateTime getLockedDate()
getLockedDate
in interface NotificationContract
public void setLockedDateValue(Timestamp lockedDateValue)
setLockedDateValue
in interface Lockable
lockedDateValue
- The lockedDate to set.public String getTitle()
getTitle
in interface NotificationContract
public void setTitle(String title)
title
- the title of this notificationpublic String getContentMessage()
getContentMessage
in interface NotificationContract
public static Notification to(NotificationBo bo)
bo
- the mutable business objectpublic static NotificationBo from(Notification im)
im
- immutable objectCopyright © 2005–2016 The Kuali Foundation. All rights reserved.