Class NotificationSetImpl
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.core.BambooEntityObject
-
- com.atlassian.bamboo.notification.NotificationSetImpl
-
- All Implemented Interfaces:
BambooIdProvider,BambooObject,NotificationSet,Cloneable
@Entity public class NotificationSetImpl extends BambooEntityObject implements NotificationSet
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.notification.NotificationSet
NotificationSet.NotificationSetType
-
-
Field Summary
Fields Modifier and Type Field Description static NotificationSetEMPTY
-
Constructor Summary
Constructors Constructor Description NotificationSetImpl()NotificationSetImpl(NotificationSet.NotificationSetType notificationSetType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNotification(NotificationRule notificationRule)NotificationRulegetNotificationRuleById(long id)@NotNull Set<NotificationRule>getNotificationRules()NotificationSet.NotificationSetTypegetNotificationSetType()The type of this notification set eg system or plan.List<NotificationRule>getSortedNotificationRules()voidremoveNotificationRule(long id)voidsetNotificationRules(@NotNull Set<NotificationRule> notificationRules)voidsetNotificationSetType(NotificationSet.NotificationSetType notificationSetType)-
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
-
-
-
Field Detail
-
EMPTY
public static final NotificationSet EMPTY
-
-
Constructor Detail
-
NotificationSetImpl
public NotificationSetImpl()
-
NotificationSetImpl
public NotificationSetImpl(NotificationSet.NotificationSetType notificationSetType)
-
-
Method Detail
-
getSortedNotificationRules
public List<NotificationRule> getSortedNotificationRules()
- Specified by:
getSortedNotificationRulesin interfaceNotificationSet
-
addNotification
public void addNotification(NotificationRule notificationRule)
- Specified by:
addNotificationin interfaceNotificationSet
-
getNotificationRuleById
public NotificationRule getNotificationRuleById(long id)
- Specified by:
getNotificationRuleByIdin interfaceNotificationSet
-
removeNotificationRule
public void removeNotificationRule(long id)
- Specified by:
removeNotificationRulein interfaceNotificationSet
-
setNotificationRules
public void setNotificationRules(@NotNull @NotNull Set<NotificationRule> notificationRules)
-
getNotificationRules
@NotNull public @NotNull Set<NotificationRule> getNotificationRules()
- Specified by:
getNotificationRulesin interfaceNotificationSet
-
getNotificationSetType
public NotificationSet.NotificationSetType getNotificationSetType()
Description copied from interface:NotificationSetThe type of this notification set eg system or plan.- Specified by:
getNotificationSetTypein interfaceNotificationSet- Returns:
- Type of notification set
-
setNotificationSetType
public void setNotificationSetType(NotificationSet.NotificationSetType notificationSetType)
-
-