org.kuali.rice.ken.bo
Class NotificationChannelBo

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.ken.bo.NotificationChannelBo
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, GloballyUnique, Versioned, ModelObjectBasic, KenIdentifiable, NotificationChannelContract, BusinessObject, PersistableBusinessObject

@Entity
public class NotificationChannelBo
extends PersistableBusinessObjectBase
implements NotificationChannelContract

This class represents and instance of a Notification Channel. A Notification Channel is correlated to a specific class of notification, or in other words a specific business purpose. For instance, all overdue books from a specific library could be a channel or a channel for concerts coming to campus could be another channel.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
NotificationChannelBo()
          Constructs a NotificationChannel instance.
 
Method Summary
 void addRecipientList(NotificationRecipientListBo recipientList)
          This method adds a recipient list to the overall set of recipient lists that are associated with this channnel.
 boolean equals(Object obj)
          Compares the id values of each NotificationChannel object.
static NotificationChannelBo from(NotificationChannel im)
          Converts a immutable object to its mutable counterpart
 String getDescription()
          Gets the description attribute.
 Long getId()
          Gets the id attribute.
 String getName()
          Gets the name attribute.
 List<NotificationProducerBo> getProducers()
          Gets the producers attribute.
 List<NotificationRecipientListBo> getRecipientLists()
          Gets the recipientLists attribute.
 List<NotificationChannelReviewerBo> getReviewers()
          Gets the list of reviewers for notification publications to this channel
 List<UserChannelSubscriptionBo> getSubscriptions()
          Gets the list of subscriptions to this channel
 boolean isSubscribable()
          Gets the subscribable attribute.
 void removeRecipientList(NotificationRecipientListBo recipientList)
          This method removes a recipient list object from the overall list.
 void setDescription(String description)
          Sets the description attribute value.
 void setId(Long id)
          Sets the id attribute value.
 void setName(String name)
          Sets the name attribute value.
 void setProducers(List<NotificationProducerBo> producers)
          Sets the producers attribute value.
 void setRecipientLists(List<NotificationRecipientListBo> recipientLists)
          Sets the recipientLists attribute value.
 void setReviewers(List<NotificationChannelReviewerBo> reviewers)
          Sets the list of reviewers for notification publications to this channel
 void setSubscribable(boolean subscribable)
          Sets the subscribable attribute value.
 void setSubscriptions(List<UserChannelSubscriptionBo> subscriptions)
          Sets the list of subscriptions to this channel
static NotificationChannel to(NotificationChannelBo bo)
          Converts a mutable bo to its immutable counterpart
 
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
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
 
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.Versioned
getVersionNumber
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.GloballyUnique
getObjectId
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Constructor Detail

NotificationChannelBo

public NotificationChannelBo()
Constructs a NotificationChannel instance.

Method Detail

getRecipientLists

public List<NotificationRecipientListBo> getRecipientLists()
Gets the recipientLists attribute.

Specified by:
getRecipientLists in interface NotificationChannelContract
Returns:
Returns the recipientLists.

setRecipientLists

public void setRecipientLists(List<NotificationRecipientListBo> recipientLists)
Sets the recipientLists attribute value.

Parameters:
recipientLists - The recipientLists to set.

addRecipientList

public void addRecipientList(NotificationRecipientListBo recipientList)
This method adds a recipient list to the overall set of recipient lists that are associated with this channnel.

Parameters:
recipientList -

removeRecipientList

public void removeRecipientList(NotificationRecipientListBo recipientList)
This method removes a recipient list object from the overall list.

Parameters:
recipientList -

getDescription

public String getDescription()
Gets the description attribute.

Specified by:
getDescription in interface NotificationChannelContract
Returns:
Returns the description.

setDescription

public void setDescription(String description)
Sets the description attribute value.

Parameters:
description - The description to set.

getId

public Long getId()
Gets the id attribute.

Specified by:
getId in interface KenIdentifiable
Returns:
Returns the id.

setId

public void setId(Long id)
Sets the id attribute value.

Parameters:
id - The id to set.

getName

public String getName()
Gets the name attribute.

Specified by:
getName in interface NotificationChannelContract
Returns:
Returns the name.

setName

public void setName(String name)
Sets the name attribute value.

Parameters:
name - The name to set.

isSubscribable

public boolean isSubscribable()
Gets the subscribable attribute.

Specified by:
isSubscribable in interface NotificationChannelContract
Returns:
Returns the subscribable.

setSubscribable

public void setSubscribable(boolean subscribable)
Sets the subscribable attribute value.

Parameters:
subscribable - The subscribable to set.

getProducers

public List<NotificationProducerBo> getProducers()
Gets the producers attribute.

Specified by:
getProducers in interface NotificationChannelContract
Returns:
Returns the producers.

setProducers

public void setProducers(List<NotificationProducerBo> producers)
Sets the producers attribute value.

Parameters:
producers - The producers to set.

getReviewers

public List<NotificationChannelReviewerBo> getReviewers()
Gets the list of reviewers for notification publications to this channel

Specified by:
getReviewers in interface NotificationChannelContract
Returns:
the list of reviewers for notification publications to this channel

setReviewers

public void setReviewers(List<NotificationChannelReviewerBo> reviewers)
Sets the list of reviewers for notification publications to this channel

Parameters:
reviewers - the list of reviewers for notification publications to this channel

getSubscriptions

public List<UserChannelSubscriptionBo> getSubscriptions()
Gets the list of subscriptions to this channel

Specified by:
getSubscriptions in interface NotificationChannelContract
Returns:
the list of subscriptions to this channel

setSubscriptions

public void setSubscriptions(List<UserChannelSubscriptionBo> subscriptions)
Sets the list of subscriptions to this channel

Parameters:
subscriptions - the list of subscriptions to this channel

equals

public boolean equals(Object obj)
Compares the id values of each NotificationChannel object.

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

to

public static NotificationChannel to(NotificationChannelBo bo)
Converts a mutable bo to its immutable counterpart

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

from

public static NotificationChannelBo from(NotificationChannel 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.