Class WatchedBuildsImpl

    • Constructor Detail

      • WatchedBuildsImpl

        public WatchedBuildsImpl()
      • WatchedBuildsImpl

        public WatchedBuildsImpl​(@NotNull
                                 WatchedBuilds watchedBuilds)
    • Method Detail

      • getAdditionalData

        @NotNull
        public Map<String,​String> getAdditionalData()
        Description copied from interface: WatchedBuildsEx
        Returns map of additional filter values like branch filter, user changes filter, ... See UserRulesAwareNotificationListener for keys
        Specified by:
        getAdditionalData in interface WatchedBuildsEx
        Returns:
      • isWatchAllBranches

        public boolean isWatchAllBranches()
      • getBranchFilterWithDefault

        @NotNull
        public String getBranchFilterWithDefault()
      • isLocalRule

        public boolean isLocalRule()
      • getBranchFilter

        public String getBranchFilter()
      • isUnsubscribeRule

        public boolean isUnsubscribeRule()
      • hasSelectedBuildTypes

        public boolean hasSelectedBuildTypes()
        Specified by:
        hasSelectedBuildTypes in interface WatchedBuildsEx
        Returns:
        true if this WatchedBuilds is has at lease one watched build configuration. Is not affected by watched projects.
      • hasSelectedProjects

        public boolean hasSelectedProjects()
        Specified by:
        hasSelectedProjects in interface WatchedBuildsEx
        Returns:
        true if this WatchedBuilds is has at lease one watched project. Is not affected by watched build configurations.
      • isWatchAllProjects

        public boolean isWatchAllProjects()
        Specified by:
        isWatchAllProjects in interface WatchedBuildsEx
        Returns:
        true if this WatchedBuilds has Root project watched. Root project could be watched among with other projects and configurations.
      • setProjectsToWatch

        public void setProjectsToWatch​(@NotNull
                                       Set<String> projectIds)
      • setBuildTypesToWatch

        public void setBuildTypesToWatch​(@NotNull
                                         Set<String> buildTypeIds)
      • removeProjectsFromWatch

        public void removeProjectsFromWatch​(@NotNull
                                            Set<String> projectIds)
      • removeBuildTypesFromWatch

        public void removeBuildTypesFromWatch​(@NotNull
                                              Set<String> buildTypeIds)
      • getUserId

        public Long getUserId()
        Description copied from interface: WatchedBuilds
        If builds with changes are watched returns id of the watcher
        Specified by:
        getUserId in interface WatchedBuilds
        Returns:
        id of the watcher or null
      • setUserId

        public void setUserId​(long id)
        Description copied from interface: WatchedBuildsEx
        Sets the watcher id
        Specified by:
        setUserId in interface WatchedBuildsEx
        Parameters:
        id - the user id
      • getProjectIds

        @NotNull
        public Set<String> getProjectIds()
        Description copied from interface: WatchedBuilds
        Returns watched project internal ids Is not affected by watched build configurations (configuration parent is not added)
        Specified by:
        getProjectIds in interface WatchedBuilds
        Returns:
        see above
      • getBuildTypeIds

        @NotNull
        public Set<String> getBuildTypeIds()
        Description copied from interface: WatchedBuilds
        Returns watched configurations ids. Is not affected by watched projects (project children are not added)
        Specified by:
        getBuildTypeIds in interface WatchedBuilds
        Returns:
        if there are watched configurations specified, returns their ids. Empty collection otherwise.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object