public static final class Notification.Builder extends Object implements Serializable, ModelBuilder, NotificationContract
Notification
instances. Enforces the constraints of the NotificationContract
.public static Notification.Builder create()
public static Notification.Builder create(NotificationContract contract)
public Notification build()
ModelBuilder
build
in interface ModelBuilder
public NotificationPriority.Builder getPriority()
getPriority
in interface NotificationContract
public String getContent()
getContent
in interface NotificationContract
public NotificationChannel.Builder getChannel()
getChannel
in interface NotificationContract
public NotificationContentType.Builder getContentType()
getContentType
in interface NotificationContract
public org.joda.time.DateTime getCreationDateTime()
NotificationContract
This is a namespace code assigned to a Group. Together with name, it makes up another unique identifier for Group
getCreationDateTime
in interface NotificationContract
public List<NotificationRecipient.Builder> getRecipients()
getRecipients
in interface NotificationContract
public List<NotificationSender.Builder> getSenders()
getSenders
in interface NotificationContract
public org.joda.time.DateTime getAutoRemoveDateTime()
getAutoRemoveDateTime
in interface NotificationContract
public String getDeliveryType()
getDeliveryType
in interface NotificationContract
public NotificationProducer.Builder getProducer()
getProducer
in interface NotificationContract
public org.joda.time.DateTime getSendDateTime()
getSendDateTime
in interface NotificationContract
public String getProcessingFlag()
getProcessingFlag
in interface NotificationContract
public org.joda.time.DateTime getLockedDate()
getLockedDate
in interface NotificationContract
public String getTitle()
getTitle
in interface NotificationContract
public String getContentMessage()
getContentMessage
in interface NotificationContract
public Long getId()
getId
in interface KenIdentifiable
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public String getObjectId()
GloballyUnique
getObjectId
in interface GloballyUnique
public String getDocTypeName()
NotificationContract
If null, the system will use the default KualiNotification
document type when routing the notification
getDocTypeName
in interface NotificationContract
public void setPriority(NotificationPriority.Builder priority)
public void setContent(String content)
public void setChannel(NotificationChannel.Builder channel)
public void setContentType(NotificationContentType.Builder contentType)
public void setCreationDateTime(org.joda.time.DateTime creationDateTime)
public void setRecipients(List<NotificationRecipient.Builder> recipients)
public void setSenders(List<NotificationSender.Builder> senders)
public void setAutoRemoveDateTime(org.joda.time.DateTime autoRemoveDateTime)
public void setDeliveryType(String deliveryType)
public void setProducer(NotificationProducer.Builder producer)
public void setSendDateTime(org.joda.time.DateTime sendDateTime)
public void setProcessingFlag(String processingFlag)
public void setLockedDate(org.joda.time.DateTime lockedDate)
public void setContentMessage(String contentMessage)
public void setVersionNumber(Long versionNumber)
public void setObjectId(String objectId)
public void setDocTypeName(String docTypeName)
If null, the system will use the default KualiNotification
document type when routing the notification.
If the document type does not match any document type name in the system, the system behavior is undefined.
docTypeName
- document type name of this notificationCopyright © 2005–2014 The Kuali Foundation. All rights reserved.