public interface LabelDao extends BambooObjectDao
findById
@Nullable Label findLabelByNameAndNamespace(String name, String namespace)
@NotNull List<Label> findLabelsByNameAndNamespace(List<String> names, String namespace)
names
- namespace
- @NotNull List<ResultsSummary> findResultsSummaryByNameAndNamespace(String name, String namespace)
@Nullable Labelling findLabellingByResultsSummary(Label label, ResultsSummary resultsSummary)
@Nullable Labelling findLabellingByResultsSummary(String name, String namespace, ResultsSummary buildResultsSummary)
long getUsageCountForLabel(Label label)
@Nullable Labelling findLabellingByBuild(Label label, ImmutablePlan plan)
@Nullable Labelling findLabellingByBuild(String name, String namespace, ImmutablePlan plan)
@NotNull List<LabelCount> findLabels(String namespace, int maxResults)
@NotNull List<LabelCount> findLabels(String namespace, int maxResults, Plan plan)
@NotNull List<LabelCount> findLabels(String namespace, int maxResults, Project project)
@NotNull List<Labelling> findLabels(ImmutablePlan plan)
void saveLabel(@NotNull Label label)
void saveLabelling(@NotNull Labelling labelling)
@NotNull Set<Label> findPlanLabels(String namespace)
namespace
- label namespace@NotNull Set<Label> findPlanLabels(String namespace, @NotNull PlanIdentifier plan)
namespace
- label namespaceplan
- plan to filter labels with@NotNull Set<String> getResultSummaryLabelNames(@NotNull ResultsSummary resultsSummary)
resultsSummary
- result summaryCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.