Interface LabelDao

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

        long getUsageCountForLabel​(Label label)
      • findLabellingByProject

        @Nullable
        @Nullable Labelling findLabellingByProject​(Label label,
                                                   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