Interface LabelDao

All Superinterfaces:
BambooObjectDao, bucket.core.persistence.ObjectDao
All Known Implementing Classes:
LabelHibernateDao

public interface LabelDao extends BambooObjectDao
  • Method Details

    • 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)
    • findLabels

      @NotNull @NotNull List<Labelling> findLabels(Project project)
    • findLabellingByUser

      @NotNull @NotNull List<Labelling> findLabellingByUser(String userName)
    • 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 namespace
      plan - 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