public interface UserGroupNotificationRulesManager
NotificationRulesManager| Modifier and Type | Method and Description |
|---|---|
long |
addNewRule(java.lang.String groupCode,
java.lang.String notifierType,
NotificationRule rule)
Adds a new rule to the rules of the specified group for the specified notifier type.
|
void |
applyOrder(java.lang.String groupCode,
java.lang.String notifierType,
long[] ruleIds)
Sorts the notification rules in the specified order
|
java.util.Collection<java.lang.Long> |
findConflictingRules(java.lang.String groupCode,
java.lang.String notifierType,
WatchedBuilds watch)
Searches for the conflicting rules with the specified watched builds and the notifier type.
|
NotificationRule |
findRuleById(java.lang.String groupCode,
long ruleId)
Searches for a rule with specified id among rules of the specified group.
|
java.util.List<NotificationRule> |
getDefaultRules()
Returns the list of default notification rules.
|
java.util.List<NotificationRule> |
getGroupNotificationRules(java.lang.String groupCode,
java.lang.String notifierType)
Returns user group notification rules for the specified notifier.
|
void |
removeRule(java.lang.String groupCode,
long ruleId)
Removes the rule with specified id from the list of rules associated with specified group.
|
void |
removeRule(java.lang.String groupCode,
NotificationRule rule)
Removes the specified rule from the list of rules associated with specified group.
|
void |
setGroupNotificationRules(java.lang.String groupCode,
java.lang.String notifierType,
java.util.List<NotificationRule> rules)
Sets the group notification rules for the specified notifier.
|
@NotNull java.util.List<NotificationRule> getGroupNotificationRules(@NotNull java.lang.String groupCode, @NotNull java.lang.String notifierType) throws UserGroupException
groupCode - the group codenotifierType - type of the notifierUserGroupException - if user group with the given code does not existvoid setGroupNotificationRules(@NotNull
java.lang.String groupCode,
@NotNull
java.lang.String notifierType,
@NotNull
java.util.List<NotificationRule> rules)
throws UserGroupException
groupCode - the group codenotifierType - type of the notifierrules - the rules to setUserGroupException - if user group with the given code does not existvoid removeRule(@NotNull
java.lang.String groupCode,
long ruleId)
throws UserGroupException
groupCode - the group coderuleId - id of the ruleUserGroupException - if user group with the given code does not existvoid removeRule(@NotNull
java.lang.String groupCode,
@NotNull
NotificationRule rule)
throws UserGroupException
groupCode - the group coderule - rule to removeUserGroupException - if user group with the given code does not existvoid applyOrder(@NotNull
java.lang.String groupCode,
@NotNull
java.lang.String notifierType,
@NotNull
long[] ruleIds)
groupCode - the group codenotifierType - type of the notifierruleIds - ids of the rules in the required orderlong addNewRule(@NotNull
java.lang.String groupCode,
@NotNull
java.lang.String notifierType,
@NotNull
NotificationRule rule)
throws UserGroupException,
DuplicateNotificationRuleException
groupCode - the group codenotifierType - type of the notifierrule - rule to addUserGroupException - if user group with the given code does not existDuplicateNotificationRuleException - if similar rule already exists@Nullable
java.util.Collection<java.lang.Long> findConflictingRules(@NotNull
java.lang.String groupCode,
@NotNull
java.lang.String notifierType,
@NotNull
WatchedBuilds watch)
throws UserGroupException
groupCode - the group codenotifierType - type of the notifierwatch - watched buildsUserGroupException - if user group with the given code does not exist@Nullable NotificationRule findRuleById(@NotNull java.lang.String groupCode, long ruleId) throws UserGroupException
groupCode - the group coderuleId - id of the ruleUserGroupException - if user group with the given code does not exist@NotNull java.util.List<NotificationRule> getDefaultRules()