jetbrains.buildServer.notification
Interface NotificationRule

All Superinterfaces:
java.lang.Comparable<NotificationRule>

public interface NotificationRule
extends java.lang.Comparable<NotificationRule>

Presents one notification rule.


Nested Class Summary
static class NotificationRule.Event
           
 
Method Summary
 java.util.Set<NotificationRule.Event> getEvents()
          Returns associated events.
 long getId()
          Returns id.
 int getPosition()
          Returns the position of this rule in the list.
 WatchedBuilds getWatchedBuilds()
          Returns builds watched by the rule.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getId

long getId()
Returns id.

Returns:
id.

getEvents

@NotNull
java.util.Set<NotificationRule.Event> getEvents()
Returns associated events.

Returns:
list of events when rule has to work.

getWatchedBuilds

WatchedBuilds getWatchedBuilds()
Returns builds watched by the rule.

Returns:
builds watched by the rule.

getPosition

int getPosition()
Returns the position of this rule in the list.

Returns:
the "position" of this watch