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
-
-
Constructor Summary
Constructors Constructor Description NotificationSetImpl()
NotificationSetImpl(NotificationSet.NotificationSetType notificationSetType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNotification(NotificationRule notificationRule)
NotificationRule
getNotificationRuleById(long id)
@NotNull Set<NotificationRule>
getNotificationRules()
NotificationSet.NotificationSetType
getNotificationSetType()
The type of this notification set eg system or plan.List<NotificationRule>
getSortedNotificationRules()
void
removeNotificationRule(long id)
void
setNotificationRules(@NotNull Set<NotificationRule> notificationRules)
void
setNotificationSetType(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
-
-
-
-
Constructor Detail
-
NotificationSetImpl
public NotificationSetImpl()
-
NotificationSetImpl
public NotificationSetImpl(NotificationSet.NotificationSetType notificationSetType)
-
-
Method Detail
-
getSortedNotificationRules
public List<NotificationRule> getSortedNotificationRules()
- Specified by:
getSortedNotificationRules
in interfaceNotificationSet
-
addNotification
public void addNotification(NotificationRule notificationRule)
- Specified by:
addNotification
in interfaceNotificationSet
-
getNotificationRuleById
public NotificationRule getNotificationRuleById(long id)
- Specified by:
getNotificationRuleById
in interfaceNotificationSet
-
removeNotificationRule
public void removeNotificationRule(long id)
- Specified by:
removeNotificationRule
in interfaceNotificationSet
-
setNotificationRules
public void setNotificationRules(@NotNull @NotNull Set<NotificationRule> notificationRules)
-
getNotificationRules
@NotNull public @NotNull Set<NotificationRule> getNotificationRules()
- Specified by:
getNotificationRules
in interfaceNotificationSet
-
getNotificationSetType
public NotificationSet.NotificationSetType getNotificationSetType()
Description copied from interface:NotificationSet
The type of this notification set eg system or plan.- Specified by:
getNotificationSetType
in interfaceNotificationSet
- Returns:
- Type of notification set
-
setNotificationSetType
public void setNotificationSetType(NotificationSet.NotificationSetType notificationSetType)
-
-