public interface TagsManager extends ServerExtension
| Modifier and Type | Method and Description |
|---|---|
void |
addTagDatas(BuildPromotion buildPromotion,
java.util.Collection<TagData> tags)
Add tag set to the specified build promotion.
|
void |
clearTagDatas(BuildPromotion buildPromotion)
Remove all tags from the specified build promotion.
|
java.util.List<Build> |
findAll(java.lang.String tag)
Returns all finished builds marked with the specified public tag.
|
java.util.List<Build> |
findAll(java.lang.String tag,
BuildType configuration)
Returns all finished builds marked with the specified public tag for the specified configuration.
|
java.util.List<Build> |
findAll(java.lang.String tag,
User user)
Returns all finished builds marked with the specified private tag by provided user
|
java.util.List<BuildPromotion> |
findAllPromotions(java.lang.String tag)
Returns all promotions marked with the specified public tag.
|
java.util.List<BuildPromotion> |
findAllPromotions(java.lang.String tag,
BuildType configuration)
Returns all promotions marked with the specified public tag for the specified configuration.
|
java.util.Set<TagData> |
getAllTagDatas(BuildType buildType)
Returns all public and private tags assigned to configuration builds.
|
java.util.List<java.lang.String> |
getAllTags(Build build)
Returns all public tags assigned for the specified build.
|
java.util.List<java.lang.String> |
getAllTags(BuildType buildType)
Returns all public tags assigned to configuration builds.
|
java.util.Collection<TagData> |
getTagDatas(BuildPromotion build)
Returns all public and private tags assigned for the specified promotion.
|
int |
removeTagDatas(BuildPromotion buildPromotion,
java.util.Collection<TagData> tags)
Remove particular tags from the specified build promotion.
|
void |
replacePublicTags(BuildPromotion buildPromotion,
java.util.List<java.lang.String> tagLabels)
Replace existing public tags with public tags created from provided labels
|
void |
setTagDatas(BuildPromotion buildPromotion,
java.util.Collection<TagData> tags)
Change tag set to the specified build promotion, both public and private
TagData
All old tags related to the specified promotion will be removed, new tag set will be added. |
void |
setTags(java.util.List<java.lang.String> tags,
SBuild build)
Deprecated.
|
void |
setTags(User user,
java.util.List<java.lang.String> tags,
SBuild build)
Deprecated.
|
@NotNull java.util.List<Build> findAll(java.lang.String tag)
tag - specified tag.@NotNull java.util.List<Build> findAll(java.lang.String tag, User user)
tag - specified tag.user - user.@NotNull java.util.List<Build> findAll(java.lang.String tag, @NotNull BuildType configuration)
tag - specified tag.configuration - specified configuration.@NotNull java.util.List<BuildPromotion> findAllPromotions(java.lang.String tag)
tag - specified tag.@NotNull java.util.List<BuildPromotion> findAllPromotions(java.lang.String tag, @NotNull BuildType configuration)
tag - specified tag.configuration - specified configuration.@NotNull
java.util.List<java.lang.String> getAllTags(@NotNull
Build build)
build - specified build instance.@NotNull java.util.Collection<TagData> getTagDatas(@NotNull BuildPromotion build)
build - specified build instance.@Deprecated
void setTags(java.util.List<java.lang.String> tags,
@NotNull
SBuild build)
setTags(User, List, SBuild)tags - specified tag set.build - specified build.@Deprecated void setTags(User user, java.util.List<java.lang.String> tags, @NotNull SBuild build)
BuildPromotion.setTagDatas(Collection)user - user who set specified tags - the user who performs the action, not a owner for private tagstags - specified public tag set.build - specified build.@NotNull
java.util.List<java.lang.String> getAllTags(@NotNull
BuildType buildType)
buildType - specified configuration.@NotNull java.util.Set<TagData> getAllTagDatas(@NotNull BuildType buildType)
buildType - specified configuration.void setTagDatas(@NotNull
BuildPromotion buildPromotion,
@NotNull
java.util.Collection<TagData> tags)
TagData
All old tags related to the specified promotion will be removed, new tag set will be added.buildPromotion - build promotion to tagtags - tagsvoid addTagDatas(@NotNull
BuildPromotion buildPromotion,
@NotNull
java.util.Collection<TagData> tags)
TagDatabuildPromotion - build promotion to tagtags - tagsint removeTagDatas(@NotNull
BuildPromotion buildPromotion,
@NotNull
java.util.Collection<TagData> tags)
buildPromotion - build promotion to tagtags - tagsvoid clearTagDatas(@NotNull
BuildPromotion buildPromotion)
buildPromotion - build promotion to tagvoid replacePublicTags(@NotNull
BuildPromotion buildPromotion,
@NotNull
java.util.List<java.lang.String> tagLabels)
buildPromotion - build promotion to tagtagLabels - tag labels