|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NotificationDao
| Method Summary | |
|---|---|
void |
deleteNotification(NotificationRule rule)
Used to remove a notification from db. |
java.util.List<UsersNotification> |
getNotificationRulesForRecipients(java.lang.String recipientType,
java.util.Collection<java.lang.String> recipients)
Retrieve all notification rules of a specific type matching the given list of recipient values. |
java.util.List<UsersNotification> |
getNotificationRulesForRecipientType(java.lang.String recipientType)
Retrieve All notification rules with a specific recipient type (useful for retrieveing watchers and committers) |
java.util.List<NotificationSet> |
getNotificationSetsForType(NotificationSet.NotificationSetType type)
Retrieve notification sets belonging to a specific type. |
void |
saveNotificationRule(NotificationRule newRule)
Save new/existing notification rule |
| Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao |
|---|
findById |
| Methods inherited from interface bucket.core.persistence.ObjectDao |
|---|
findAll, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw |
| Method Detail |
|---|
void deleteNotification(NotificationRule rule)
rule - Complete NotificationRule Objectvoid saveNotificationRule(NotificationRule newRule)
newRule - New or Existing NotificationRule Object
@NotNull
java.util.List<UsersNotification> getNotificationRulesForRecipients(@NotNull
java.lang.String recipientType,
@NotNull
java.util.Collection<java.lang.String> recipients)
recipientType - the key of the recipient type to search forrecipients - a list of values to match (eg email addresses, usernames etc)
@NotNull java.util.List<UsersNotification> getNotificationRulesForRecipientType(java.lang.String recipientType)
recipientType -
@NotNull java.util.List<NotificationSet> getNotificationSetsForType(NotificationSet.NotificationSetType type)
type - to be retrieved
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||