Package com.atlassian.bamboo.labels
Interface LabelDao
-
- All Superinterfaces:
BambooObjectDao
,bucket.core.persistence.ObjectDao
- All Known Implementing Classes:
LabelHibernateDao
public interface LabelDao extends BambooObjectDao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable Label
findLabelByNameAndNamespace(String name, String namespace)
@Nullable Labelling
findLabellingByBuild(Label label, ImmutablePlan plan)
@Nullable Labelling
findLabellingByBuild(String name, String namespace, ImmutablePlan plan)
@Nullable Labelling
findLabellingByProject(Label label, Project project)
@Nullable Labelling
findLabellingByResultsSummary(Label label, ResultsSummary resultsSummary)
@Nullable Labelling
findLabellingByResultsSummary(String name, String namespace, ResultsSummary buildResultsSummary)
@NotNull List<Labelling>
findLabellingByUser(String userName)
@NotNull List<Labelling>
findLabels(ImmutablePlan plan)
@NotNull List<Labelling>
findLabels(Project project)
@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<Label>
findLabelsByNameAndNamespace(List<String> names, String namespace)
Find any labels that match the names in the specic namespace@NotNull Set<Label>
findPlanLabels(String namespace)
Finds labels that are *only* plan level labellings matching the namespace.@NotNull Set<Label>
findPlanLabels(String namespace, @NotNull PlanIdentifier plan)
Finds labels that are *only* plan level labellings matching the namespace and associated with a plan.@NotNull List<ResultsSummary>
findResultsSummaryByNameAndNamespace(String name, String namespace)
@NotNull Set<String>
getResultSummaryLabelNames(@NotNull ResultsSummary resultsSummary)
Get names of labels related to result summarylong
getUsageCountForLabel(Label label)
void
remove(@NotNull Labelling labelling)
Removes the labelling from the persistent layervoid
saveLabel(@NotNull Label label)
void
saveLabelling(@NotNull Labelling labelling)
-
Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findById
-
-
-
-
Method Detail
-
findLabelByNameAndNamespace
@Nullable @Nullable Label findLabelByNameAndNamespace(String name, String namespace)
-
findLabelsByNameAndNamespace
@NotNull @NotNull List<Label> findLabelsByNameAndNamespace(List<String> names, String namespace)
Find any labels that match the names in the specic namespace- Parameters:
names
-namespace
-- Returns:
-
findResultsSummaryByNameAndNamespace
@NotNull @NotNull List<ResultsSummary> findResultsSummaryByNameAndNamespace(String name, String namespace)
-
findLabellingByResultsSummary
@Nullable @Nullable Labelling findLabellingByResultsSummary(Label label, ResultsSummary resultsSummary)
-
findLabellingByResultsSummary
@Nullable @Nullable Labelling findLabellingByResultsSummary(String name, String namespace, ResultsSummary buildResultsSummary)
-
getUsageCountForLabel
long getUsageCountForLabel(Label label)
-
findLabellingByBuild
@Nullable @Nullable Labelling findLabellingByBuild(Label label, ImmutablePlan plan)
-
findLabellingByBuild
@Nullable @Nullable Labelling findLabellingByBuild(String name, String namespace, ImmutablePlan plan)
-
findLabellingByProject
@Nullable @Nullable Labelling findLabellingByProject(Label label, Project project)
-
findLabels
@NotNull @NotNull List<LabelCount> findLabels(String namespace, int maxResults)
-
findLabels
@NotNull @NotNull List<LabelCount> findLabels(String namespace, int maxResults, Plan plan)
-
findLabels
@NotNull @NotNull List<LabelCount> findLabels(String namespace, int maxResults, Project project)
-
findLabels
@NotNull @NotNull List<Labelling> findLabels(ImmutablePlan plan)
-
saveLabel
void saveLabel(@NotNull @NotNull Label label)
-
saveLabelling
void saveLabelling(@NotNull @NotNull Labelling labelling)
-
remove
void remove(@NotNull @NotNull Labelling labelling)
Removes the labelling from the persistent layer- Parameters:
labelling
- labelling to remove- Since:
- 9.4
-
findPlanLabels
@NotNull @NotNull Set<Label> findPlanLabels(String namespace)
Finds labels that are *only* plan level labellings matching the namespace. No duplicates in the returned set (obviously)- Parameters:
namespace
- label namespace- Returns:
- set of labels
-
findPlanLabels
@NotNull @NotNull Set<Label> findPlanLabels(String namespace, @NotNull @NotNull PlanIdentifier plan)
Finds labels that are *only* plan level labellings matching the namespace and associated with a plan. No duplicates in the returned set (obviously)- Parameters:
namespace
- label namespaceplan
- plan to filter labels with- Returns:
- set of labels
-
getResultSummaryLabelNames
@NotNull @NotNull Set<String> getResultSummaryLabelNames(@NotNull @NotNull ResultsSummary resultsSummary)
Get names of labels related to result summary- Parameters:
resultsSummary
- result summary- Returns:
- set of unique label names
-
-