Package jetbrains.buildServer.status
Class StatusProviderImpl
- java.lang.Object
-
- jetbrains.buildServer.status.StatusProviderImpl
-
- All Implemented Interfaces:
StatusProvider
public class StatusProviderImpl extends Object implements StatusProvider
- Author:
- Kir
-
-
Constructor Summary
Constructors Constructor Description StatusProviderImpl()
-
Method Summary
All Methods Instance Methods Concrete 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.void
setCommittedBuilds(CommittedBuildsHolder committedBuilds)
void
setProjectManager(ProjectManagerEx projectManager)
-
-
-
Method Detail
-
setProjectManager
public void setProjectManager(ProjectManagerEx projectManager)
-
setCommittedBuilds
public void setCommittedBuilds(CommittedBuildsHolder committedBuilds)
-
getWatchedBuildsStatus
public Status getWatchedBuildsStatus(User user, String notificatorType)
Description copied from interface:StatusProvider
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.
- Specified by:
getWatchedBuildsStatus
in interfaceStatusProvider
- Parameters:
user
- user for which status is calculatednotificatorType
- type of notificator, seeNotificator.getNotificatorType()
- Returns:
- worst status among all watched builds
-
getWatchedBuildsStatus
public Status getWatchedBuildsStatus(User user, String notificatorType, Filter<BuildType> filter)
Description copied from interface:StatusProvider
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.
- Specified by:
getWatchedBuildsStatus
in interfaceStatusProvider
- 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
public ResponsibilityStatus getWatchedBuildsResponsibilityStatus(User user, Notificator notificator)
Description copied from interface:StatusProvider
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.
- Specified by:
getWatchedBuildsResponsibilityStatus
in interfaceStatusProvider
- Parameters:
user
- user for which status is calculatednotificator
- notificator for which status is calculated- Returns:
- worst status among all watched builds
-
getWatchedBuildTypes
public SortedMap<SProject,List<SBuildType>> getWatchedBuildTypes(User user, String notificatorType)
Description copied from interface:StatusProvider
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.
- Specified by:
getWatchedBuildTypes
in interfaceStatusProvider
- Parameters:
user
- user, whose watched build configurations are returnednotificatorType
- type of notificator, seeNotificator.getNotificatorType()
- Returns:
- see above
-
-