Interface WatchedBuilds


  • public interface WatchedBuilds
    Describes notification rule watch scope. Since TC 10 there are 2 types of WatchedBuilds: SYSTEM_WIDE and SPECIFIC_PROJECT_BUILD_TYPES (see WatchType). SYSTEM_WIDE stands for non-builds related events like investigations, tests and so on. SPECIFIC_PROJECT_BUILD_TYPES stands for build related events and could be filtered by projects and build configurations. In case there are no projects and build configurations watched WatchedBuilds will cover all projects (same as watched _Root)
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> getBuildTypeIds()
      Returns watched configurations ids.
      java.util.Set<java.lang.String> getProjectIds()
      Returns watched project internal ids Is not affected by watched build configurations (configuration parent is not added)
      java.lang.Long getUserId()
      If builds with changes are watched returns id of the watcher
      WatchType getWatchType()
      Returns type of this watch
    • Method Detail

      • getWatchType

        @NotNull
        WatchType getWatchType()
        Returns type of this watch
        Returns:
        type of this watch
      • getProjectIds

        @NotNull
        java.util.Set<java.lang.String> getProjectIds()
        Returns watched project internal ids Is not affected by watched build configurations (configuration parent is not added)
        Returns:
        see above
        Since:
        10.0
      • getBuildTypeIds

        @NotNull
        java.util.Set<java.lang.String> getBuildTypeIds()
        Returns watched configurations ids. Is not affected by watched projects (project children are not added)
        Returns:
        if there are watched configurations specified, returns their ids. Empty collection otherwise.
      • getUserId

        @Nullable
        java.lang.Long getUserId()
        If builds with changes are watched returns id of the watcher
        Returns:
        id of the watcher or null