Class NotificationRulesConstants
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.NotificationRulesConstants
-
public class NotificationRulesConstants extends Object
Provides readable names for notification events
-
-
Field Summary
Fields Modifier and Type Field Description static String
BRANCH_FILTER
static String
BUILD_FAILED_TO_START
static String
BUILD_FAILING
static String
BUILD_FINISHED_FAILURE
static String
BUILD_FINISHED_NEW_FAILURE
static String
BUILD_FINISHED_SUCCESS
static String
BUILD_PROBABLY_HANGING
static String
BUILD_STARTED
This names should not be changed as they are used in DSLstatic String
DEFAULT_USER_CHANGES_BRANCH_FILTER
static String
FIRST_FAILURE_AFTER_SUCCESS
static String
FIRST_SUCCESS_AFTER_FAILURE
static String
MUTE_UPDATED
static String
NEW_BUILD_PROBLEM_OCCURRED
static String
QUEUED_BUILD_REQUIRES_APPROVAL
static String
RESPONSIBILITY_CHANGES
-
Constructor Summary
Constructors Constructor Description NotificationRulesConstants()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
describeEvent(NotificationRule.Event event)
static List<String>
describeEvents(List<NotificationRule.Event> events)
String
getBranchFilter()
String
getBuildFailedToStart()
String
getBuildFailing()
String
getBuildFinishedFailure()
String
getBuildFinishedNewFailure()
String
getBuildFinishedSuccess()
String
getBuildProbablyHanging()
String
getBuildStarted()
static NotificationRule.Event
getEvent(String name)
static Comparator<NotificationRule.Event>
getEventComparator()
static List<NotificationRule.Event>
getEvents(Map<String,String> parameters)
static NotificationRule.Event[]
getEventsOrder()
String
getFirstFailureAfterSuccess()
String
getFirstSuccessAfterFailure()
String
getMuteUpdated()
static String
getName(NotificationRule.Event event)
String
getNewBuildProblemOccurred()
String
getQueuedBuildRequiresApproval()
String
getResponsibilityChanges()
-
-
-
Field Detail
-
BUILD_STARTED
public static final String BUILD_STARTED
This names should not be changed as they are used in DSL- See Also:
- Constant Field Values
-
BUILD_FINISHED_SUCCESS
public static final String BUILD_FINISHED_SUCCESS
- See Also:
- Constant Field Values
-
BUILD_FINISHED_FAILURE
public static final String BUILD_FINISHED_FAILURE
- See Also:
- Constant Field Values
-
BUILD_FAILING
public static final String BUILD_FAILING
- See Also:
- Constant Field Values
-
RESPONSIBILITY_CHANGES
public static final String RESPONSIBILITY_CHANGES
- See Also:
- Constant Field Values
-
BUILD_PROBABLY_HANGING
public static final String BUILD_PROBABLY_HANGING
- See Also:
- Constant Field Values
-
BUILD_FINISHED_NEW_FAILURE
public static final String BUILD_FINISHED_NEW_FAILURE
- See Also:
- Constant Field Values
-
FIRST_FAILURE_AFTER_SUCCESS
public static final String FIRST_FAILURE_AFTER_SUCCESS
- See Also:
- Constant Field Values
-
FIRST_SUCCESS_AFTER_FAILURE
public static final String FIRST_SUCCESS_AFTER_FAILURE
- See Also:
- Constant Field Values
-
BUILD_FAILED_TO_START
public static final String BUILD_FAILED_TO_START
- See Also:
- Constant Field Values
-
MUTE_UPDATED
public static final String MUTE_UPDATED
- See Also:
- Constant Field Values
-
NEW_BUILD_PROBLEM_OCCURRED
public static final String NEW_BUILD_PROBLEM_OCCURRED
- See Also:
- Constant Field Values
-
QUEUED_BUILD_REQUIRES_APPROVAL
public static final String QUEUED_BUILD_REQUIRES_APPROVAL
- See Also:
- Constant Field Values
-
BRANCH_FILTER
public static final String BRANCH_FILTER
- See Also:
- Constant Field Values
-
DEFAULT_USER_CHANGES_BRANCH_FILTER
public static final String DEFAULT_USER_CHANGES_BRANCH_FILTER
- See Also:
- Constant Field Values
-
-
Method Detail
-
describeEvents
@NotNull public static List<String> describeEvents(@NotNull List<NotificationRule.Event> events)
-
getEvents
@NotNull public static List<NotificationRule.Event> getEvents(@NotNull Map<String,String> parameters)
-
describeEvent
@Nullable public static String describeEvent(@NotNull NotificationRule.Event event)
-
getEventsOrder
public static NotificationRule.Event[] getEventsOrder()
-
getEventComparator
@NotNull public static Comparator<NotificationRule.Event> getEventComparator()
-
getEvent
@Nullable public static NotificationRule.Event getEvent(@NotNull String name)
-
getName
@Nullable public static String getName(@NotNull NotificationRule.Event event)
-
getBuildStarted
@NotNull public String getBuildStarted()
-
getBuildFinishedSuccess
@NotNull public String getBuildFinishedSuccess()
-
getBuildFinishedFailure
@NotNull public String getBuildFinishedFailure()
-
getBuildFailing
@NotNull public String getBuildFailing()
-
getResponsibilityChanges
@NotNull public String getResponsibilityChanges()
-
getBuildProbablyHanging
@NotNull public String getBuildProbablyHanging()
-
getQueuedBuildRequiresApproval
@NotNull public String getQueuedBuildRequiresApproval()
-
getBuildFinishedNewFailure
@NotNull public String getBuildFinishedNewFailure()
-
getFirstFailureAfterSuccess
@NotNull public String getFirstFailureAfterSuccess()
-
getFirstSuccessAfterFailure
@NotNull public String getFirstSuccessAfterFailure()
-
getBuildFailedToStart
@NotNull public String getBuildFailedToStart()
-
getMuteUpdated
@NotNull public String getMuteUpdated()
-
getNewBuildProblemOccurred
@NotNull public String getNewBuildProblemOccurred()
-
getBranchFilter
@NotNull public String getBranchFilter()
-
-