T - the notification contextpublic class NotificationHelper<T extends NotificationContext> extends Object implements Serializable
| Constructor and Description |
|---|
NotificationHelper()
Constructs a NotificationHelperBase.
|
| Modifier and Type | Method and Description |
|---|---|
KcPersonService |
getKcPersonService() |
NotificationTypeRecipient |
getNewNotificationRecipient() |
String |
getNewPersonId() |
String |
getNewRoleId() |
String |
getNewRolodexId() |
KcNotification |
getNotification() |
T |
getNotificationContext() |
List<NotificationTypeRecipient> |
getNotificationRecipients() |
KcNotificationService |
getNotificationService() |
boolean |
getPromptUserForNotificationEditor(T context)
Determines whether the ad-hoc notification editor for this context should be shown.
|
org.kuali.rice.kim.api.role.RoleService |
getRoleService() |
RolodexService |
getRolodexService() |
void |
initializeDefaultValues(T context)
Initializes the helper with the default values from the Notification Type.
|
void |
prepareView()
Prepares the user view from the context.
|
void |
sendNotification()
Sends the ad-hoc notification.
|
void |
sendNotificationAndPersist(KcNotification notification,
KraPersistableBusinessObjectBase object) |
void |
setKcPersonService(KcPersonService kcPersonService) |
void |
setNewNotificationRecipient(NotificationTypeRecipient newNotificationRecipient) |
void |
setNewPersonId(String newPersonId)
Sets the
newPersonId while nulling the other id values. |
void |
setNewRoleId(String newRoleId)
Sets the
newRoleId while nulling the other id values. |
void |
setNewRolodexId(String newRolodexId)
Sets the
newRolodexId while nulling the other id values. |
void |
setNotification(KcNotification notification) |
void |
setNotificationContext(T notificationContext) |
void |
setNotificationRecipients(List<NotificationTypeRecipient> notificationRecipients) |
void |
setNotificationService(KcNotificationService notificationService) |
void |
setRoleService(org.kuali.rice.kim.api.role.RoleService roleService) |
void |
setRolodexService(RolodexService rolodexService) |
public NotificationHelper()
public NotificationTypeRecipient getNewNotificationRecipient()
public void setNewNotificationRecipient(NotificationTypeRecipient newNotificationRecipient)
public List<NotificationTypeRecipient> getNotificationRecipients()
public void setNotificationRecipients(List<NotificationTypeRecipient> notificationRecipients)
public KcNotification getNotification()
public void setNotification(KcNotification notification)
public T getNotificationContext()
public void setNotificationContext(T notificationContext)
public String getNewRoleId()
public void setNewRoleId(String newRoleId)
newRoleId while nulling the other id values.newRoleId - the new role idpublic String getNewPersonId()
public void setNewPersonId(String newPersonId)
newPersonId while nulling the other id values.newPersonId - the new person idpublic String getNewRolodexId()
public void setNewRolodexId(String newRolodexId)
newRolodexId while nulling the other id values.newRolodexId - the new rolodex idpublic void initializeDefaultValues(T context)
context - the notification contextpublic void prepareView()
public boolean getPromptUserForNotificationEditor(T context)
context - the notification contextpublic void sendNotification()
public void sendNotificationAndPersist(KcNotification notification, KraPersistableBusinessObjectBase object)
public KcNotificationService getNotificationService()
public void setNotificationService(KcNotificationService notificationService)
public KcPersonService getKcPersonService()
public void setKcPersonService(KcPersonService kcPersonService)
public RolodexService getRolodexService()
public void setRolodexService(RolodexService rolodexService)
public org.kuali.rice.kim.api.role.RoleService getRoleService()
public void setRoleService(org.kuali.rice.kim.api.role.RoleService roleService)
Copyright © 2013 The Kuali Foundation. All Rights Reserved.