Package org.kuali.rice.ken.bo
Class NotificationBo
java.lang.Object
org.kuali.rice.krad.bo.BusinessObjectBase
org.kuali.rice.krad.bo.PersistableBusinessObjectBase
org.kuali.rice.ken.bo.NotificationBo
- All Implemented Interfaces:
Serializable,Cloneable,org.apache.ojb.broker.PersistenceBrokerAware,org.eclipse.persistence.descriptors.changetracking.ChangeTracker,org.eclipse.persistence.internal.descriptors.PersistenceEntity,org.eclipse.persistence.internal.descriptors.PersistenceObject,org.eclipse.persistence.internal.weaving.PersistenceWeaved,org.eclipse.persistence.internal.weaving.PersistenceWeavedChangeTracking,org.eclipse.persistence.internal.weaving.PersistenceWeavedFetchGroups,org.eclipse.persistence.internal.weaving.PersistenceWeavedRest,org.eclipse.persistence.queries.FetchGroupTracker,GloballyUnique,Versioned,ModelObjectBasic,KenIdentifiable,NotificationContract,Lockable,BusinessObject,PersistableBusinessObject
@Entity
public class NotificationBo
extends PersistableBusinessObjectBase
implements NotificationContract, Lockable
This class represents an instace of a notification message that is received by the overall
system.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, newCollectionRecord, objectId, versionNumberFields inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
_persistence_cacheKey, _persistence_fetchGroup, _persistence_href, _persistence_links, _persistence_listener, _persistence_primaryKey, _persistence_relationshipInfo, _persistence_session, _persistence_shouldRefreshFetchGroup -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRecipient(NotificationRecipientBo recipient) Adds a recipientvoidaddSender(NotificationSenderBo sender) Adds a senderstatic NotificationBofrom(Notification im) Converts a immutable object to its mutable counterpartorg.joda.time.DateTimeGets the autoRemoveDateTime attribute.Gets the channel attribute.Gets the content attribute.This method just uses StringUtils to get at the content of thetag that exists in the notification content. Gets the contentType attribute.org.joda.time.DateTimeReturns when this Notification entry was createdGets the deliveryType attribute.getId()Gets the id attribute.org.joda.time.DateTimeGets the lockedDate attribute.Return value of lock column for OJB optimistic lockingGets the priority attribute.Gets the processingFlag attribute.Gets the producer attribute.getRecipient(int index) Retrieves a recipient at the specified indexGets the recipients attribute.org.joda.time.DateTimeGets the sendDateTime attribute.getSender(int index) Retrieves a sender at the specified indexGets the senders attribute.getTitle()Gets the titlevoidsetAutoRemoveDateTimeValue(Timestamp autoRemoveDateTimeValue) Sets the autoRemoveDateTime attribute value.voidsetChannel(NotificationChannelBo channel) Sets the channel attribute value.voidsetContent(String content) Sets the content attribute value.voidsetContentType(NotificationContentTypeBo contentType) Sets the contentType attribute value.voidsetCreationDateTimeValue(Timestamp created) Sets the creation date of this Notification entryvoidsetDeliveryType(String deliveryType) Sets the deliveryType attribute value.voidsetDocTypeName(String docTypeName) Sets the custom document type name.voidSets the id attribute value.voidsetLockedDateValue(Timestamp lockedDateValue) Sets the lockedDate attribute value.voidsetLockVerNbr(Integer lockVerNbr) Set value of lock column for OJB optimistic lockingvoidsetPriority(NotificationPriorityBo priority) Sets the priority attribute value.voidsetProcessingFlag(String processingFlag) Sets the processingFlag attribute value.voidsetProducer(NotificationProducerBo producer) Sets the producer attribute value.voidsetRecipients(List<NotificationRecipientBo> recipients) Sets the recipients attribute value.voidsetSendDateTimeValue(Timestamp sendDateTimeValue) Sets the sendDateTime attribute value.voidsetSenders(List<NotificationSenderBo> senders) Sets the senders attribute value.voidSets the titlestatic Notificationto(NotificationBo bo) Converts a mutable bo to its immutable counterpartMethods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
_persistence_get, _persistence_get_objectId, _persistence_get_versionNumber, _persistence_new, _persistence_post_clone, _persistence_set, _persistence_set_objectId, _persistence_set_versionNumber, afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getLegacyDataAdapter, getObjectId, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumberMethods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
_persistence_checkFetched, _persistence_checkFetchedForSet, _persistence_getCacheKey, _persistence_getFetchGroup, _persistence_getHref, _persistence_getId, _persistence_getLinks, _persistence_getPropertyChangeListener, _persistence_getRelationships, _persistence_getSession, _persistence_isAttributeFetched, _persistence_propertyChange, _persistence_resetFetchGroup, _persistence_setCacheKey, _persistence_setFetchGroup, _persistence_setHref, _persistence_setId, _persistence_setLinks, _persistence_setPropertyChangeListener, _persistence_setRelationships, _persistence_setSession, _persistence_setShouldRefreshFetchGroup, _persistence_shallow_clone, _persistence_shouldRefreshFetchGroup, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kuali.rice.core.api.mo.common.GloballyUnique
getObjectIdMethods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toStringMethods inherited from interface org.eclipse.persistence.internal.descriptors.PersistenceObject
_persistence_shallow_cloneMethods inherited from interface org.kuali.rice.core.api.mo.common.Versioned
getVersionNumber
-
Constructor Details
-
NotificationBo
public NotificationBo()Constructs a Notification instance.
-
-
Method Details
-
getCreationDateTimeValue
Returns when this Notification entry was created- Returns:
- when this Notification entry was created
-
getCreationDateTime
public org.joda.time.DateTime getCreationDateTime()- Specified by:
getCreationDateTimein interfaceNotificationContract
-
setCreationDateTimeValue
Sets the creation date of this Notification entry- Parameters:
created- the creation date of this Notification entry
-
getLockVerNbr
Return value of lock column for OJB optimistic locking- Returns:
- value of lock column for OJB optimistic locking
-
setLockVerNbr
Set value of lock column for OJB optimistic locking- Parameters:
lockVerNbr- value of lock column for OJB optimistic locking
-
getRecipients
Gets the recipients attribute.- Specified by:
getRecipientsin interfaceNotificationContract- Returns:
- Returns the recipients.
-
setRecipients
Sets the recipients attribute value.- Parameters:
recipients- The recipients to set.
-
getRecipient
Retrieves a recipient at the specified index- Parameters:
index- the index in the recipients collection- Returns:
- the recipient if found or null
-
addRecipient
Adds a recipient- Parameters:
recipient- The recipient to add
-
getSenders
Gets the senders attribute.- Specified by:
getSendersin interfaceNotificationContract- Returns:
- Returns the senders.
-
setSenders
Sets the senders attribute value.- Parameters:
senders- The senders to set.
-
getSender
Retrieves a sender at the specified index- Parameters:
index- the index in the senders collection- Returns:
- the sender if found or null
-
addSender
Adds a sender- Parameters:
sender- The sender to add
-
getAutoRemoveDateTimeValue
Gets the autoRemoveDateTime attribute.- Returns:
- Returns the autoRemoveDateTime.
-
getAutoRemoveDateTime
public org.joda.time.DateTime getAutoRemoveDateTime()- Specified by:
getAutoRemoveDateTimein interfaceNotificationContract
-
setAutoRemoveDateTimeValue
Sets the autoRemoveDateTime attribute value.- Parameters:
autoRemoveDateTimeValue- The autoRemoveDateTime to set.
-
getChannel
Gets the channel attribute.- Specified by:
getChannelin interfaceNotificationContract- Returns:
- Returns the channel.
-
setChannel
Sets the channel attribute value.- Parameters:
channel- The channel to set.
-
getContent
Gets the content attribute.- Specified by:
getContentin interfaceNotificationContract- Returns:
- Returns the content.
-
setContent
Sets the content attribute value.- Parameters:
content- The content to set.
-
getContentType
Gets the contentType attribute.- Specified by:
getContentTypein interfaceNotificationContract- Returns:
- Returns the contentType.
-
setContentType
Sets the contentType attribute value.- Parameters:
contentType- The contentType to set.
-
getDeliveryType
Gets the deliveryType attribute.- Specified by:
getDeliveryTypein interfaceNotificationContract- Returns:
- Returns the deliveryType.
-
setDeliveryType
Sets the deliveryType attribute value.- Parameters:
deliveryType- The deliveryType to set.
-
getId
Gets the id attribute.- Specified by:
getIdin interfaceKenIdentifiable- Returns:
- Returns the id.
-
setId
Sets the id attribute value.- Parameters:
id- The id to set.
-
getPriority
Gets the priority attribute.- Specified by:
getPriorityin interfaceNotificationContract- Returns:
- Returns the priority.
-
setPriority
Sets the priority attribute value.- Parameters:
priority- The priority to set.
-
getProducer
Gets the producer attribute.- Specified by:
getProducerin interfaceNotificationContract- Returns:
- Returns the producer.
-
setProducer
Sets the producer attribute value.- Parameters:
producer- The producer to set.
-
getSendDateTimeValue
Gets the sendDateTime attribute.- Returns:
- Returns the sendDateTime.
-
getSendDateTime
public org.joda.time.DateTime getSendDateTime()- Specified by:
getSendDateTimein interfaceNotificationContract
-
setSendDateTimeValue
Sets the sendDateTime attribute value.- Parameters:
sendDateTimeValue- The sendDateTime to set.
-
getProcessingFlag
Gets the processingFlag attribute.- Specified by:
getProcessingFlagin interfaceNotificationContract- Returns:
- Returns the processingFlag.
-
setProcessingFlag
Sets the processingFlag attribute value.- Parameters:
processingFlag- The processingFlag to set.
-
getLockedDateValue
Gets the lockedDate attribute.- Specified by:
getLockedDateValuein interfaceLockable- Returns:
- Returns the lockedDate.
-
getLockedDate
public org.joda.time.DateTime getLockedDate()- Specified by:
getLockedDatein interfaceNotificationContract
-
setLockedDateValue
Sets the lockedDate attribute value.- Specified by:
setLockedDateValuein interfaceLockable- Parameters:
lockedDateValue- The lockedDate to set.
-
getTitle
Gets the title- Specified by:
getTitlein interfaceNotificationContract- Returns:
- the title of this notification
-
setTitle
Sets the title- Parameters:
title- the title of this notification
-
getContentMessage
This method just uses StringUtils to get at the content of thetag that exists in the notification content. - Specified by:
getContentMessagein interfaceNotificationContract- Returns:
- String
-
getDocTypeName
- Specified by:
getDocTypeNamein interfaceNotificationContract
-
setDocTypeName
Sets the custom document type name.If null, the system will use the default
KualiNotificationdocument type when routing the notification. If the document type does not match any document type name in the system, the system behavior is undefined.- Parameters:
docTypeName- document type name of this notification
-
to
Converts a mutable bo to its immutable counterpart- Parameters:
bo- the mutable business object- Returns:
- the immutable object
-
from
Converts a immutable object to its mutable counterpart- Parameters:
im- immutable object- Returns:
- the mutable bo
-