Class TeamServerSummary


  • public class TeamServerSummary
    extends Object
    Summary data for specified user. A bit of terminology: significant configuration (project, change) means configuration (project, change) that adds to the user "status".
    • Method Detail

      • getProjects

        public Collection<BuildProject> getProjects()
        Returns all projects registered on server.
        Returns:
        all projects.
      • getRootProject

        @NotNull
        public BuildProject getRootProject()
        Returns root project
        Returns:
        see above
      • getAllProjects

        public List<BuildProject> getAllProjects()
        Returns all projects registered on server including filtered out with investigations.
        Returns:
        all projects including filtered out with investigations.
      • getChanges

        public List<UserChangeInfo> getChanges()
        Returns changes calculated according to policy.
        Returns:
        changes calculated according to policy.
      • getPersonalChanges

        public List<UserChangeInfo> getPersonalChanges()
        Returns list of all user personal changes.
        Returns:
        list of all user personal changes.
      • getCreatedDate

        public Date getCreatedDate()
        Returns the date when summary was built.
        Returns:
        the date when summary was built.
      • getStatus

        public Status getStatus​(BuildProject project)
        Returns project status calculated as cumulative status of the watched configurations in this project.
        Parameters:
        project -
        Returns:
        complex status of specified project, calculated according to the set of watched configurations.
      • getStatus

        public Status getStatus​(BuildType configuration)
        Returns specified configuration status it is watched or Status.UNKNOWN otherwise.
        Returns:
        status of the configuration if it is watched. UNKNOWN otherwise
      • responsibleExists

        public boolean responsibleExists()
        Returns true if all watched configurations have responsible person.
        Returns:
        true if all watched configurations have responsible person.
      • getStatus

        public Status getStatus()
        Returns status of the watched configurations for the user.
        Returns:
        complex status, calculated according to all watched configurations.
      • projectIsVisible

        public boolean projectIsVisible​(BuildProject project)
        Returns true if the project is watched by the user.
        Parameters:
        project -
        Returns:
        true is project is significant
      • getWatchedConfigurationIds

        public Set<String> getWatchedConfigurationIds()
      • configurationIsVisible

        public boolean configurationIsVisible​(BuildType buildConfiguration)
        Returns if the configuration is watched by the user.
        Parameters:
        buildConfiguration -
        Returns:
        true if configuration is significant.
      • getChangesStatus

        public Status getChangesStatus()
        Returns status of user changes within watched configurations.
        Returns:
        complex status of changes, made by specified user.
      • findConfigurationById

        public BuildType findConfigurationById​(String id)
        Returns configuration with specified id.
        Parameters:
        id -
        Returns:
        configuration with specified id.
      • findProjectById

        public BuildProject findProjectById​(String id,
                                            boolean findInAdditionalProjects)
        Returns project with specified id.
        Parameters:
        id -
        Returns:
        project with specified id.
      • getTestsWithInvestigation

        public Map<String,​List<TestData>> getTestsWithInvestigation()
        Returns list of the tests user is responsible for grouped by project id.
        Returns:
        list of the tests user is responsible for grouped by project id
      • getFilteredOutProjectsCount

        public int getFilteredOutProjectsCount()
      • getFilteredOutChangesCount

        public int getFilteredOutChangesCount()
      • setSummaryCounter

        public void setSummaryCounter​(int summaryCounter)
      • getSummaryCounter

        public int getSummaryCounter()
        Returns event counter on the moment of this summary creation
        Returns:
      • createSubscription

        public SubscriptionsCollection createSubscription​(@NotNull
                                                          User user)
        Creates new subscription corresponding to this summary to request new counter from the server
        Parameters:
        user -
        Returns: