Interface WatchedBuildsEx
-
- All Superinterfaces:
WatchedBuilds
- All Known Implementing Classes:
WatchedBuildsImpl
public interface WatchedBuildsEx extends WatchedBuilds
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addBuildTypeToWatch(String buildTypeId)
void
addProjectToWatch(String projectId)
Map<String,String>
getAdditionalData()
Returns map of additional filter values like branch filter, user changes filter, ...boolean
hasSelectedBuildTypes()
boolean
hasSelectedProjects()
boolean
isWatchAllProjects()
boolean
isWatchCommittedBuilds()
boolean
isWatchFavoriteBuilds()
void
setAdditionalData(Map<String,String> additionalData)
void
setUserId(long id)
Sets the watcher idvoid
setWatchCommittedBuilds(boolean watchCommittedBuilds)
-
Methods inherited from interface jetbrains.buildServer.notification.WatchedBuilds
getBuildTypeIds, getProjectIds, getUserId, getWatchType
-
-
-
-
Method Detail
-
getAdditionalData
@NotNull Map<String,String> getAdditionalData()
Returns map of additional filter values like branch filter, user changes filter, ... See UserRulesAwareNotificationListener for keys- Returns:
-
isWatchCommittedBuilds
boolean isWatchCommittedBuilds()
-
isWatchFavoriteBuilds
boolean isWatchFavoriteBuilds()
-
setWatchCommittedBuilds
void setWatchCommittedBuilds(boolean watchCommittedBuilds)
-
hasSelectedBuildTypes
boolean hasSelectedBuildTypes()
- Returns:
- true if this WatchedBuilds is has at lease one watched build configuration. Is not affected by watched projects.
-
hasSelectedProjects
boolean hasSelectedProjects()
- Returns:
- true if this WatchedBuilds is has at lease one watched project. Is not affected by watched build configurations.
-
isWatchAllProjects
boolean isWatchAllProjects()
- Returns:
- true if this WatchedBuilds has Root project watched. Root project could be watched among with other projects and configurations.
-
addProjectToWatch
void addProjectToWatch(@NotNull String projectId)
- Parameters:
projectId
-- Throws:
IllegalStateException
- if this is WatchType.SYSTEM_WIDE WatchedBuilds
-
addBuildTypeToWatch
void addBuildTypeToWatch(@NotNull String buildTypeId)
- Parameters:
buildTypeId
-- Throws:
IllegalStateException
- if this is WatchType.SYSTEM_WIDE WatchedBuilds
-
setUserId
void setUserId(long id)
Sets the watcher id- Parameters:
id
- the user id
-
-