Package com.atlassian.bamboo.labels
Interface LabelDao
- All Superinterfaces:
BambooObjectDao,bucket.core.persistence.ObjectDao
- All Known Implementing Classes:
LabelHibernateDao
-
Method Summary
Modifier and TypeMethodDescription@Nullable LabelfindLabelByNameAndNamespace(String name, String namespace) @Nullable LabellingfindLabellingByBuild(Label label, ImmutablePlan plan) @Nullable LabellingfindLabellingByBuild(String name, String namespace, ImmutablePlan plan) @Nullable LabellingfindLabellingByProject(Label label, Project project) @Nullable LabellingfindLabellingByResultsSummary(Label label, ResultsSummary resultsSummary) @Nullable LabellingfindLabellingByResultsSummary(String name, String namespace, ResultsSummary buildResultsSummary) findLabellingByUser(String userName) findLabels(ImmutablePlan plan) 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) findLabelsByNameAndNamespace(List<String> names, String namespace) Find any labels that match the names in the specic namespacefindPlanLabels(String namespace) Finds labels that are *only* plan level labellings matching the namespace.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) getResultSummaryLabelNames(@NotNull ResultsSummary resultsSummary) Get names of labels related to result summarylonggetUsageCountForLabel(Label label) voidRemoves the labelling from the persistent layervoidvoidsaveLabelling(@NotNull Labelling labelling) Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findByIdMethods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw
-
Method Details
-
findLabelByNameAndNamespace
-
findLabelsByNameAndNamespace
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
-
findLabellingByBuild
-
findLabellingByBuild
@Nullable @Nullable Labelling findLabellingByBuild(String name, String namespace, ImmutablePlan plan) -
findLabellingByProject
-
findLabels
-
findLabels
-
findLabels
-
findLabels
-
findLabels
-
findLabellingByUser
-
saveLabel
-
saveLabelling
-
remove
Removes the labelling from the persistent layer- Parameters:
labelling- labelling to remove- Since:
- 9.4
-
findPlanLabels
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
-