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 intcompareTo(NotificationRule o)booleanequals(Object o)Map<String,String>getAdditionalData()Set<NotificationRule.Event>getEvents()Returns associated events.longgetId()Returns id.intgetPosition()Returns the position of this rule in the list.WatchedBuildsExgetWatchedBuilds()Returns builds watched by the rule.inthashCode()voidsetAdditionalData(Map<String,String> additionalData)voidsetId(long ruleId)voidsetPosition(int rulePosition)voidsetWatchedBuilds(WatchedBuildsEx watchedBuilds)StringtoString()
-
-
-
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:NotificationRuleReturns id.- Specified by:
getIdin interfaceNotificationRule- Returns:
- id.
-
getEvents
@NotNull public Set<NotificationRule.Event> getEvents()
Description copied from interface:NotificationRuleReturns associated events.- Specified by:
getEventsin interfaceNotificationRule- Returns:
- list of events when rule has to work.
-
getWatchedBuilds
public WatchedBuildsEx getWatchedBuilds()
Description copied from interface:NotificationRuleReturns builds watched by the rule.- Specified by:
getWatchedBuildsin interfaceNotificationRule- Returns:
- builds watched by the rule.
-
setWatchedBuilds
public void setWatchedBuilds(WatchedBuildsEx watchedBuilds)
-
getPosition
public int getPosition()
Description copied from interface:NotificationRuleReturns the position of this rule in the list.- Specified by:
getPositionin interfaceNotificationRule- Returns:
- the "position" of this watch
-
setPosition
public void setPosition(int rulePosition)
- Specified by:
setPositionin interfaceNotificationRuleInit
-
getAdditionalData
@NotNull public Map<String,String> getAdditionalData()
- Specified by:
getAdditionalDatain interfaceNotificationRule- Returns:
- additional data associated with this rule
-
compareTo
public int compareTo(@NotNull NotificationRule o)- Specified by:
compareToin interfaceComparable<NotificationRule>
-
setId
public void setId(long ruleId)
- Specified by:
setIdin interfaceNotificationRuleInit
-
-