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 classNotificationsUtil.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.WatchedResultgetWatched(Iterator<NotificationRule> rules)booleanisAnyEventWatched(Iterator<NotificationRule> rules)booleanisBeingWatched(NotificationRule rule, String projectId, String buildTypeId)booleanisEffective(NotificationRule rule, Iterator<NotificationRule> rules)booleanisEffective(NotificationRule rule, Iterator<NotificationRule> rules, Set<String> wantedProjectIds, Set<String> wantedBuildTypeIds)booleanisExcludeEverythingRule(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)
-
-