public interface StatusProvider
Modifier and Type | Method and Description |
---|---|
ResponsibilityStatus |
getWatchedBuildsResponsibilityStatus(User user,
Notificator notificator)
Returns aggregated (worst) responsibility status of the builds watched by the user.
|
Status |
getWatchedBuildsStatus(User user,
java.lang.String notificatorType)
Returns aggregated (worst) status of the builds watched by the user.
|
Status |
getWatchedBuildsStatus(User user,
java.lang.String notificatorType,
Filter<BuildType> filter)
Returns aggregated (worst) status of the builds watched by the user.
|
java.util.SortedMap<SProject,java.util.List<SBuildType>> |
getWatchedBuildTypes(User user,
java.lang.String notificatorType)
Returns map of build configurations per project watched by the specified user.
|
Status getWatchedBuildsStatus(User user, java.lang.String notificatorType)
NotificationRule
for specified notificator.
Note: paused build configurations and personal builds are ignored and do not affect calculated status.
user
- user for which status is calculatednotificatorType
- type of notificator, see Notificator.getNotificatorType()
Status getWatchedBuildsStatus(User user, java.lang.String notificatorType, Filter<BuildType> filter)
NotificationRule
for specified notificator and accepted by the specified filter.
Note: paused build configurations and personal builds are ignored and do not affect calculated status.
user
- user for which status is calculatednotificatorType
- type of notificator, see Notificator.getNotificatorType()
filter
- build configurations filterResponsibilityStatus getWatchedBuildsResponsibilityStatus(User user, Notificator notificator)
NotificationRule
for specified notificator.
Note: paused build configurations and personal builds are ignored and do not affect calculated status.
user
- user for which status is calculatednotificator
- notificator for which status is calculatedjava.util.SortedMap<SProject,java.util.List<SBuildType>> getWatchedBuildTypes(User user, java.lang.String notificatorType)
NotificationRule
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.
user
- user, whose watched build configurations are returnednotificatorType
- type of notificator, see Notificator.getNotificatorType()