Class Notification.Builder
java.lang.Object
org.kuali.rice.ken.api.notification.Notification.Builder
- All Implemented Interfaces:
Serializable,GloballyUnique,Versioned,ModelBuilder,KenIdentifiable,NotificationContract
- Enclosing class:
- Notification
public static final class Notification.Builder
extends Object
implements Serializable, ModelBuilder, NotificationContract
A builder which can be used to construct
Notification instances. Enforces the constraints of the NotificationContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static Notification.Buildercreate()static Notification.Buildercreate(NotificationContract contract) org.joda.time.DateTimeorg.joda.time.DateTimeThis is the namespace code for the Group.Gets the custom document type namegetId()org.joda.time.DateTimeorg.joda.time.DateTimegetTitle()voidsetAutoRemoveDateTime(org.joda.time.DateTime autoRemoveDateTime) voidsetChannel(NotificationChannel.Builder channel) voidsetContent(String content) voidsetContentMessage(String contentMessage) voidsetContentType(NotificationContentType.Builder contentType) voidsetCreationDateTime(org.joda.time.DateTime creationDateTime) voidsetDeliveryType(String deliveryType) voidsetDocTypeName(String docTypeName) Sets the custom document type name.voidvoidsetLockedDate(org.joda.time.DateTime lockedDate) voidsetObjectId(String objectId) voidsetPriority(NotificationPriority.Builder priority) voidsetProcessingFlag(String processingFlag) voidsetProducer(NotificationProducer.Builder producer) voidsetRecipients(List<NotificationRecipient.Builder> recipients) voidsetSendDateTime(org.joda.time.DateTime sendDateTime) voidsetSenders(List<NotificationSender.Builder> senders) voidvoidsetVersionNumber(Long versionNumber)
-
Method Details
-
create
-
create
-
build
- Specified by:
buildin interfaceModelBuilder
-
getPriority
- Specified by:
getPriorityin interfaceNotificationContract
-
getContent
- Specified by:
getContentin interfaceNotificationContract
-
getChannel
- Specified by:
getChannelin interfaceNotificationContract
-
getContentType
- Specified by:
getContentTypein interfaceNotificationContract
-
getCreationDateTime
public org.joda.time.DateTime getCreationDateTime()Description copied from interface:NotificationContractThis is the namespace code for the Group.This is a namespace code assigned to a Group. Together with name, it makes up another unique identifier for Group
- Specified by:
getCreationDateTimein interfaceNotificationContract- Returns:
- namespaceCode
-
getRecipients
- Specified by:
getRecipientsin interfaceNotificationContract
-
getSenders
- Specified by:
getSendersin interfaceNotificationContract
-
getAutoRemoveDateTime
public org.joda.time.DateTime getAutoRemoveDateTime()- Specified by:
getAutoRemoveDateTimein interfaceNotificationContract
-
getDeliveryType
- Specified by:
getDeliveryTypein interfaceNotificationContract
-
getProducer
- Specified by:
getProducerin interfaceNotificationContract
-
getSendDateTime
public org.joda.time.DateTime getSendDateTime()- Specified by:
getSendDateTimein interfaceNotificationContract
-
getProcessingFlag
- Specified by:
getProcessingFlagin interfaceNotificationContract
-
getLockedDate
public org.joda.time.DateTime getLockedDate()- Specified by:
getLockedDatein interfaceNotificationContract
-
getTitle
- Specified by:
getTitlein interfaceNotificationContract
-
getContentMessage
- Specified by:
getContentMessagein interfaceNotificationContract
-
getId
- Specified by:
getIdin interfaceKenIdentifiable
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-
getObjectId
- Specified by:
getObjectIdin interfaceGloballyUnique
-
getDocTypeName
Description copied from interface:NotificationContractGets the custom document type nameIf null, the system will use the default
KualiNotificationdocument type when routing the notification- Specified by:
getDocTypeNamein interfaceNotificationContract- Returns:
- the custom document type name for this Notification, or null if undefined
-
setPriority
-
setContent
-
setChannel
-
setContentType
-
setCreationDateTime
public void setCreationDateTime(org.joda.time.DateTime creationDateTime) -
setRecipients
-
setSenders
-
setAutoRemoveDateTime
public void setAutoRemoveDateTime(org.joda.time.DateTime autoRemoveDateTime) -
setDeliveryType
-
setProducer
-
setSendDateTime
public void setSendDateTime(org.joda.time.DateTime sendDateTime) -
setProcessingFlag
-
setLockedDate
public void setLockedDate(org.joda.time.DateTime lockedDate) -
setTitle
-
setContentMessage
-
setId
-
setVersionNumber
-
setObjectId
-
setDocTypeName
Sets the custom document type name.If null, the system will use the default
KualiNotificationdocument type when routing the notification. If the document type does not match any document type name in the system, the system behavior is undefined.- Parameters:
docTypeName- document type name of this notification- Since:
- 2.3.1
-