Package jetbrains.buildServer.status
Interface StatusProvider
-
- All Known Implementing Classes:
StatusProviderImpl
public interface StatusProvider
This class contains a set of methods used by various notifiers to represent it's status. WARNING: please don't use this class, most likely it will change in the future.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResponsibilityStatus
getWatchedBuildsResponsibilityStatus(User user, Notificator notificator)
Returns aggregated (worst) responsibility status of the builds watched by the user.Status
getWatchedBuildsStatus(User user, String notificatorType)
Returns aggregated (worst) status of the builds watched by the user.Status
getWatchedBuildsStatus(User user, String notificatorType, Filter<BuildType> filter)
Returns aggregated (worst) status of the builds watched by the user.SortedMap<SProject,List<SBuildType>>
getWatchedBuildTypes(User user, String notificatorType)
Returns map of build configurations per project watched by the specified user.
-
-
-
Method Detail
-
getWatchedBuildsStatus
Status getWatchedBuildsStatus(User user, String notificatorType)
Returns aggregated (worst) status of the builds watched by the user. Watched builds are those which correspond to build configurations mentioned in the user notification rulesNotificationRule
for specified notificator.Note: paused build configurations and personal builds are ignored and do not affect calculated status.
- Parameters:
user
- user for which status is calculatednotificatorType
- type of notificator, seeNotificator.getNotificatorType()
- Returns:
- worst status among all watched builds
-
getWatchedBuildsStatus
Status getWatchedBuildsStatus(User user, String notificatorType, Filter<BuildType> filter)
Returns aggregated (worst) status of the builds watched by the user. Watched builds are those which correspond to build configurations mentioned in the user notification rulesNotificationRule
for specified notificator and accepted by the specified filter.Note: paused build configurations and personal builds are ignored and do not affect calculated status.
- Parameters:
user
- user for which status is calculatednotificatorType
- type of notificator, seeNotificator.getNotificatorType()
filter
- build configurations filter- Returns:
- worst status among filtered watched builds
-
getWatchedBuildsResponsibilityStatus
ResponsibilityStatus getWatchedBuildsResponsibilityStatus(User user, Notificator notificator)
Returns aggregated (worst) responsibility status of the builds watched by the user. Watched builds are those which correspond to build configurations mentioned in the user notification rulesNotificationRule
for specified notificator.Note: paused build configurations and personal builds are ignored and do not affect calculated status.
- Parameters:
user
- user for which status is calculatednotificator
- notificator for which status is calculated- Returns:
- worst status among all watched builds
-
getWatchedBuildTypes
SortedMap<SProject,List<SBuildType>> getWatchedBuildTypes(User user, String notificatorType)
Returns map of build configurations per project watched by the specified user. Watched projects and build configurations are those mentioned in the user notification rulesNotificationRule
for specified notificator. The map includes paused build configurations and build configurations with running personal builds owned by specified user.Projects in map are sorted according to user settings.
- Parameters:
user
- user, whose watched build configurations are returnednotificatorType
- type of notificator, seeNotificator.getNotificatorType()
- Returns:
- see above
-
-