Class StatusProviderImpl

    • Constructor Detail

      • StatusProviderImpl

        public StatusProviderImpl()
    • Method Detail

      • setProjectManager

        public void setProjectManager​(ProjectManagerEx projectManager)
      • 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 rules NotificationRule for specified notificator.

        Note: paused build configurations and personal builds are ignored and do not affect calculated status.

        Specified by:
        getWatchedBuildsStatus in interface StatusProvider
        Parameters:
        user - user for which status is calculated
        notificatorType - type of notificator, see Notificator.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 rules 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.

        Specified by:
        getWatchedBuildsStatus in interface StatusProvider
        Parameters:
        user - user for which status is calculated
        notificatorType - type of notificator, see Notificator.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 rules NotificationRule for specified notificator.

        Note: paused build configurations and personal builds are ignored and do not affect calculated status.

        Specified by:
        getWatchedBuildsResponsibilityStatus in interface StatusProvider
        Parameters:
        user - user for which status is calculated
        notificator - 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 rules 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.

        Specified by:
        getWatchedBuildTypes in interface StatusProvider
        Parameters:
        user - user, whose watched build configurations are returned
        notificatorType - type of notificator, see Notificator.getNotificatorType()
        Returns:
        see above