Package org.kuali.rice.ken.bo
Class NotificationRecipientBo
java.lang.Object
org.kuali.rice.krad.bo.BusinessObjectBase
org.kuali.rice.krad.bo.PersistableBusinessObjectBase
org.kuali.rice.ken.bo.NotificationRecipientBo
- 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,org.kuali.rice.core.api.mo.common.GloballyUnique,org.kuali.rice.core.api.mo.common.Versioned,org.kuali.rice.core.api.mo.ModelObjectBasic,org.kuali.rice.ken.api.common.KenIdentifiable,org.kuali.rice.ken.api.notification.NotificationRecipientContract,org.kuali.rice.krad.bo.BusinessObject,org.kuali.rice.krad.bo.PersistableBusinessObject
@Entity
public class NotificationRecipientBo
extends org.kuali.rice.krad.bo.PersistableBusinessObjectBase
implements org.kuali.rice.ken.api.notification.NotificationRecipientContract
This class houses information pertaining to each recipient for a Notification message. This
recipient can be either a user or a group - which is specified by the recipient type.
- 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 TypeMethodDescriptionstatic NotificationRecipientBofrom(org.kuali.rice.ken.api.notification.NotificationRecipient im) Converts a immutable object to its mutable counterpartgetId()Gets the id attribute.Gets the notificationId attribute.Gets the recipientId attribute.Gets the recipientType attribute.voidSets the id attribute value.voidsetNotification(NotificationBo notification) voidsetRecipientId(String recipientId) Sets the recipientId attribute value.voidsetRecipientType(String recipientType) Sets the recipientType attribute value.static org.kuali.rice.ken.api.notification.NotificationRecipientConverts 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
-
NotificationRecipientBo
public NotificationRecipientBo()Constructs a NotificationRecipient instance.
-
-
Method Details
-
getId
Gets the id attribute.- Specified by:
getIdin interfaceorg.kuali.rice.ken.api.common.KenIdentifiable- Returns:
- Returns the id.
-
setId
Sets the id attribute value.- Parameters:
id- The id to set.
-
getNotificationId
Gets the notificationId attribute.- Specified by:
getNotificationIdin interfaceorg.kuali.rice.ken.api.notification.NotificationRecipientContract- Returns:
- Returns the notificationId.
-
getRecipientId
Gets the recipientId attribute.- Specified by:
getRecipientIdin interfaceorg.kuali.rice.ken.api.notification.NotificationRecipientContract- Returns:
- Returns the recipientId.
-
setRecipientId
Sets the recipientId attribute value.- Parameters:
recipientId- The recipientId to set.
-
getRecipientType
Gets the recipientType attribute.- Specified by:
getRecipientTypein interfaceorg.kuali.rice.ken.api.notification.NotificationRecipientContract- Returns:
- Returns the recipientType.
-
setRecipientType
Sets the recipientType attribute value.- Parameters:
recipientType- The recipientType to set.
-
getNotification
-
setNotification
-
to
public static org.kuali.rice.ken.api.notification.NotificationRecipient to(NotificationRecipientBo bo) Converts a mutable bo to its immutable counterpart- Parameters:
bo- the mutable business object- Returns:
- the immutable object
-
from
public static NotificationRecipientBo from(org.kuali.rice.ken.api.notification.NotificationRecipient im) Converts a immutable object to its mutable counterpart- Parameters:
im- immutable object- Returns:
- the mutable bo
-