Class WatchedBuildsImpl
- java.lang.Object
-
- jetbrains.buildServer.notification.impl.WatchedBuildsImpl
-
- All Implemented Interfaces:
WatchedBuilds,WatchedBuildsEx
public class WatchedBuildsImpl extends Object implements WatchedBuildsEx
-
-
Constructor Summary
Constructors Constructor Description WatchedBuildsImpl()WatchedBuildsImpl(Collection<String> projectIds, Collection<String> buildTypesIds, Map<String,String> additionalData)WatchedBuildsImpl(WatchedBuilds watchedBuilds)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBuildTypeToWatch(String buildTypeId)voidaddProjectToWatch(String projectId)static WatchedBuildsImplcreateForSystemWide(Map<String,String> additionalData)booleanequals(Object o)Map<String,String>getAdditionalData()Returns map of additional filter values like branch filter, user changes filter, ...StringgetBranchFilter()StringgetBranchFilterWithDefault()Set<String>getBuildTypeIds()Returns watched configurations ids.Set<String>getProjectIds()Returns watched project internal ids Is not affected by watched build configurations (configuration parent is not added)LonggetUserId()If builds with changes are watched returns id of the watcherWatchTypegetWatchType()Returns type of this watchinthashCode()booleanhasSelectedBuildTypes()booleanhasSelectedProjects()booleanisLocalRule()booleanisUnsubscribeRule()booleanisWatchAllBranches()booleanisWatchAllProjects()booleanisWatchCommittedBuilds()booleanisWatchFavoriteBuilds()voidremoveBuildTypesFromWatch(Set<String> buildTypeIds)voidremoveProjectsFromWatch(Set<String> projectIds)voidsetAdditionalData(Map<String,String> additionalData)voidsetBuildTypesToWatch(Set<String> buildTypeIds)voidsetProjectsToWatch(Set<String> projectIds)voidsetUserId(long id)Sets the watcher idvoidsetWatchCommittedBuilds(boolean watchCommittedBuilds)StringtoString()
-
-
-
Constructor Detail
-
WatchedBuildsImpl
public WatchedBuildsImpl()
-
WatchedBuildsImpl
public WatchedBuildsImpl(@NotNull Collection<String> projectIds, @NotNull Collection<String> buildTypesIds, @NotNull Map<String,String> additionalData)
-
WatchedBuildsImpl
public WatchedBuildsImpl(@NotNull WatchedBuilds watchedBuilds)
-
-
Method Detail
-
createForSystemWide
public static WatchedBuildsImpl createForSystemWide(Map<String,String> additionalData)
-
getAdditionalData
@NotNull public Map<String,String> getAdditionalData()
Description copied from interface:WatchedBuildsExReturns map of additional filter values like branch filter, user changes filter, ... See UserRulesAwareNotificationListener for keys- Specified by:
getAdditionalDatain interfaceWatchedBuildsEx- Returns:
-
setAdditionalData
public void setAdditionalData(@NotNull Map<String,String> additionalData)- Specified by:
setAdditionalDatain interfaceWatchedBuildsEx
-
isWatchCommittedBuilds
public boolean isWatchCommittedBuilds()
- Specified by:
isWatchCommittedBuildsin interfaceWatchedBuildsEx
-
isWatchFavoriteBuilds
public boolean isWatchFavoriteBuilds()
- Specified by:
isWatchFavoriteBuildsin interfaceWatchedBuildsEx
-
isWatchAllBranches
public boolean isWatchAllBranches()
-
getBranchFilterWithDefault
@NotNull public String getBranchFilterWithDefault()
-
isLocalRule
public boolean isLocalRule()
-
getBranchFilter
public String getBranchFilter()
-
isUnsubscribeRule
public boolean isUnsubscribeRule()
-
setWatchCommittedBuilds
public void setWatchCommittedBuilds(boolean watchCommittedBuilds)
- Specified by:
setWatchCommittedBuildsin interfaceWatchedBuildsEx
-
hasSelectedBuildTypes
public boolean hasSelectedBuildTypes()
- Specified by:
hasSelectedBuildTypesin interfaceWatchedBuildsEx- 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:
hasSelectedProjectsin interfaceWatchedBuildsEx- 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:
isWatchAllProjectsin interfaceWatchedBuildsEx- Returns:
- true if this WatchedBuilds has Root project watched. Root project could be watched among with other projects and configurations.
-
addProjectToWatch
public void addProjectToWatch(@NotNull String projectId)- Specified by:
addProjectToWatchin interfaceWatchedBuildsEx
-
addBuildTypeToWatch
public void addBuildTypeToWatch(@NotNull String buildTypeId)- Specified by:
addBuildTypeToWatchin interfaceWatchedBuildsEx
-
getUserId
public Long getUserId()
Description copied from interface:WatchedBuildsIf builds with changes are watched returns id of the watcher- Specified by:
getUserIdin interfaceWatchedBuilds- Returns:
- id of the watcher or null
-
setUserId
public void setUserId(long id)
Description copied from interface:WatchedBuildsExSets the watcher id- Specified by:
setUserIdin interfaceWatchedBuildsEx- Parameters:
id- the user id
-
getProjectIds
@NotNull public Set<String> getProjectIds()
Description copied from interface:WatchedBuildsReturns watched project internal ids Is not affected by watched build configurations (configuration parent is not added)- Specified by:
getProjectIdsin interfaceWatchedBuilds- Returns:
- see above
-
getBuildTypeIds
@NotNull public Set<String> getBuildTypeIds()
Description copied from interface:WatchedBuildsReturns watched configurations ids. Is not affected by watched projects (project children are not added)- Specified by:
getBuildTypeIdsin interfaceWatchedBuilds- Returns:
- if there are watched configurations specified, returns their ids. Empty collection otherwise.
-
getWatchType
@NotNull public WatchType getWatchType()
Description copied from interface:WatchedBuildsReturns type of this watch- Specified by:
getWatchTypein interfaceWatchedBuilds- Returns:
- type of this watch
-
-