Class NotificationsUtil
- java.lang.Object
-
- jetbrains.buildServer.notification.impl.NotificationsUtil
-
public final class NotificationsUtil extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
NotificationsUtil.WatchedResult
-
Constructor Summary
Constructors Constructor Description NotificationsUtil(HierarchyProvider hierarchyProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<NotificationRule>
filter(List<NotificationRule> allRules, String currentProjectInternalId, String currentBuildTypeInternalId)
static Collection<String>
getAllAffectedProjectIds(NotificationRule rule, ProjectManagerEx projectManagerEx)
NotificationsUtil.WatchedResult
getWatched(Iterator<NotificationRule> rules)
boolean
isAnyEventWatched(Iterator<NotificationRule> rules)
boolean
isBeingWatched(NotificationRule rule, String projectId, String buildTypeId)
boolean
isEffective(NotificationRule rule, Iterator<NotificationRule> rules)
boolean
isEffective(NotificationRule rule, Iterator<NotificationRule> rules, Set<String> wantedProjectIds, Set<String> wantedBuildTypeIds)
boolean
isExcludeEverythingRule(NotificationRule next)
List<NotificationRule>
reorder(List<NotificationRule> rules, String project, String buildType)
-
-
-
Constructor Detail
-
NotificationsUtil
@Autowired public NotificationsUtil(@NotNull HierarchyProvider hierarchyProvider)
-
-
Method Detail
-
getWatched
@NotNull public NotificationsUtil.WatchedResult getWatched(@NotNull Iterator<NotificationRule> rules)
-
isExcludeEverythingRule
public boolean isExcludeEverythingRule(NotificationRule next)
-
filter
public List<NotificationRule> filter(@NotNull List<NotificationRule> allRules, @Nullable String currentProjectInternalId, @Nullable String currentBuildTypeInternalId)
-
isEffective
public boolean isEffective(@NotNull NotificationRule rule, @NotNull Iterator<NotificationRule> rules)
- Parameters:
rule
-rules
-- Returns:
- true if rule will have any effect having rules before it.
-
isEffective
public boolean isEffective(@NotNull NotificationRule rule, @NotNull Iterator<NotificationRule> rules, @Nullable Set<String> wantedProjectIds, @Nullable Set<String> wantedBuildTypeIds)
-
isAnyEventWatched
public boolean isAnyEventWatched(@NotNull Iterator<NotificationRule> rules)
-
isBeingWatched
public boolean isBeingWatched(@NotNull NotificationRule rule, @Nullable String projectId, @Nullable String buildTypeId)
-
reorder
public List<NotificationRule> reorder(@NotNull List<NotificationRule> rules, @Nullable String project, @Nullable String buildType)
-
getAllAffectedProjectIds
public static Collection<String> getAllAffectedProjectIds(@NotNull NotificationRule rule, @NotNull ProjectManagerEx projectManagerEx)
-
-