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

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

public static final class NotificationChannelReviewer.Builder
extends Object
implements Serializable, ModelBuilder, NotificationChannelReviewerContract

A builder which can be used to construct NotificationChannelReviewer instances. Enforces the constraints of the NotificationChannelReviewerContract.

See Also:
Serialized Form

Method Summary
 NotificationChannelReviewer build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static NotificationChannelReviewer.Builder create()
           
static NotificationChannelReviewer.Builder create(NotificationChannelReviewerContract contract)
           
 NotificationChannel.Builder getChannel()
           
 Long getId()
           
 String getObjectId()
          Return the globally unique object id of this object.
 String getReviewerId()
           
 String getReviewerType()
           
 Long getVersionNumber()
          Returns the version number for this object.
 void setChannel(NotificationChannel.Builder channel)
           
 void setId(Long id)
           
 void setObjectId(String objectId)
           
 void setReviewerId(String reviewerId)
           
 void setReviewerType(String reviewerType)
           
 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 NotificationChannelReviewer.Builder create()

create

public static NotificationChannelReviewer.Builder create(NotificationChannelReviewerContract contract)

build

public NotificationChannelReviewer 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

getChannel

public NotificationChannel.Builder getChannel()
Specified by:
getChannel in interface NotificationChannelReviewerContract

getReviewerType

public String getReviewerType()
Specified by:
getReviewerType in interface NotificationChannelReviewerContract

getReviewerId

public String getReviewerId()
Specified by:
getReviewerId in interface NotificationChannelReviewerContract

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

setChannel

public void setChannel(NotificationChannel.Builder channel)

setReviewerType

public void setReviewerType(String reviewerType)

setReviewerId

public void setReviewerId(String reviewerId)

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.