Class NotificationRuleImpl
- java.lang.Object
-
- jetbrains.buildServer.notification.impl.NotificationRuleImpl
-
- All Implemented Interfaces:
Comparable<NotificationRule>
,NotificationRule
,NotificationRuleInit
public class NotificationRuleImpl extends Object implements NotificationRuleInit
Presents one simple notification rule.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.notification.NotificationRule
NotificationRule.Event
-
-
Constructor Summary
Constructors Constructor Description NotificationRuleImpl(NotificationRule rule)
NotificationRuleImpl(WatchedBuildsEx watchedBuilds, Collection<NotificationRule.Event> events)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(NotificationRule o)
boolean
equals(Object o)
Map<String,String>
getAdditionalData()
Set<NotificationRule.Event>
getEvents()
Returns associated events.long
getId()
Returns id.int
getPosition()
Returns the position of this rule in the list.WatchedBuildsEx
getWatchedBuilds()
Returns builds watched by the rule.int
hashCode()
void
setAdditionalData(Map<String,String> additionalData)
void
setId(long ruleId)
void
setPosition(int rulePosition)
void
setWatchedBuilds(WatchedBuildsEx watchedBuilds)
String
toString()
-
-
-
Constructor Detail
-
NotificationRuleImpl
public NotificationRuleImpl(@NotNull WatchedBuildsEx watchedBuilds, @NotNull Collection<NotificationRule.Event> events)
-
NotificationRuleImpl
public NotificationRuleImpl(@NotNull NotificationRule rule)
-
-
Method Detail
-
getId
public long getId()
Description copied from interface:NotificationRule
Returns id.- Specified by:
getId
in interfaceNotificationRule
- Returns:
- id.
-
getEvents
@NotNull public Set<NotificationRule.Event> getEvents()
Description copied from interface:NotificationRule
Returns associated events.- Specified by:
getEvents
in interfaceNotificationRule
- Returns:
- list of events when rule has to work.
-
getWatchedBuilds
public WatchedBuildsEx getWatchedBuilds()
Description copied from interface:NotificationRule
Returns builds watched by the rule.- Specified by:
getWatchedBuilds
in interfaceNotificationRule
- Returns:
- builds watched by the rule.
-
setWatchedBuilds
public void setWatchedBuilds(WatchedBuildsEx watchedBuilds)
-
getPosition
public int getPosition()
Description copied from interface:NotificationRule
Returns the position of this rule in the list.- Specified by:
getPosition
in interfaceNotificationRule
- Returns:
- the "position" of this watch
-
setPosition
public void setPosition(int rulePosition)
- Specified by:
setPosition
in interfaceNotificationRuleInit
-
getAdditionalData
@NotNull public Map<String,String> getAdditionalData()
- Specified by:
getAdditionalData
in interfaceNotificationRule
- Returns:
- additional data associated with this rule
-
compareTo
public int compareTo(@NotNull NotificationRule o)
- Specified by:
compareTo
in interfaceComparable<NotificationRule>
-
setId
public void setId(long ruleId)
- Specified by:
setId
in interfaceNotificationRuleInit
-
-