org.kuali.rice.ken.api.notification
Class NotificationSender.Builder

java.lang.Object
  extended by org.kuali.rice.ken.api.notification.NotificationSender.Builder
All Implemented Interfaces:
Serializable, GloballyUnique, Versioned, ModelBuilder, KenIdentifiable, NotificationSenderContract
Enclosing class:
NotificationSender

public static final class NotificationSender.Builder
extends Object
implements Serializable, ModelBuilder, NotificationSenderContract

A builder which can be used to construct NotificationSender instances. Enforces the constraints of the NotificationSenderContract.

See Also:
Serialized Form

Method Summary
 NotificationSender build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static NotificationSender.Builder create()
           
static NotificationSender.Builder create(NotificationSenderContract contract)
           
 Long getId()
           
 Long getNotificationId()
           
 String getObjectId()
          Return the globally unique object id of this object.
 String getSenderName()
           
 Long getVersionNumber()
          Returns the version number for this object.
 void setId(Long id)
           
 void setNotificationId(Long notificationId)
           
 void setObjectId(String objectId)
           
 void setSenderName(String senderName)
           
 void setVersionNumber(Long versionNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static NotificationSender.Builder create()

create

public static NotificationSender.Builder create(NotificationSenderContract contract)

build

public NotificationSender build()
Description copied from interface: ModelBuilder
Returns an instance of the object being built by this builder based on the current state of the builder. It should be possible to invoke this method more than once on the same builder. It should never return null;

Specified by:
build in interface ModelBuilder
Returns:
an instance of the object being built by this builder, should never return null

getNotificationId

public Long getNotificationId()
Specified by:
getNotificationId in interface NotificationSenderContract

getSenderName

public String getSenderName()
Specified by:
getSenderName in interface NotificationSenderContract

getId

public Long getId()
Specified by:
getId in interface KenIdentifiable

getVersionNumber

public Long getVersionNumber()
Description copied from interface: Versioned
Returns the version number for this object. In general, this value should only be null if the object has not yet been stored to a persistent data store. This version number is generally used for the purposes of optimistic locking.

Specified by:
getVersionNumber in interface Versioned
Returns:
the version number, or null if one has not been assigned yet

getObjectId

public String getObjectId()
Description copied from interface: GloballyUnique
Return the globally unique object id of this object. In general, this value should only be null if the object has not yet been stored to a persistent data store.

Specified by:
getObjectId in interface GloballyUnique
Returns:
the objectId of this object, or null if it has not been set yet

setNotificationId

public void setNotificationId(Long notificationId)

setSenderName

public void setSenderName(String senderName)

setId

public void setId(Long id)

setVersionNumber

public void setVersionNumber(Long versionNumber)

setObjectId

public void setObjectId(String objectId)


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.