public class LabelHibernateDao extends BambooHibernateObjectDao implements LabelDao
Constructor and Description |
---|
LabelHibernateDao() |
Modifier and Type | Method and 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) |
Class |
getPersistentClass() |
@NotNull Set<String> |
getResultSummaryLabelNames(@NotNull ResultsSummary resultsSummary)
Get names of labels related to result summary
|
long |
getUsageCountForLabel(Label label) |
void |
saveLabel(@NotNull Label label) |
void |
saveLabelling(@NotNull Labelling labelling) |
findAll, findAllSorted, findById, findById, refresh, remove, replicate, save, saveRaw, updateModificationData
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findById
public Class getPersistentClass()
getPersistentClass
in interface bucket.core.persistence.ObjectDao
@Nullable public @Nullable Label findLabelByNameAndNamespace(String name, String namespace)
findLabelByNameAndNamespace
in interface LabelDao
@NotNull public @NotNull List<Label> findLabelsByNameAndNamespace(List<String> names, String namespace)
LabelDao
findLabelsByNameAndNamespace
in interface LabelDao
@Nullable public @Nullable Labelling findLabellingByResultsSummary(Label label, ResultsSummary resultsSummary)
findLabellingByResultsSummary
in interface LabelDao
@Nullable public @Nullable Labelling findLabellingByResultsSummary(String name, String namespace, ResultsSummary buildResultsSummary)
findLabellingByResultsSummary
in interface LabelDao
@Nullable public @Nullable Labelling findLabellingByBuild(Label label, ImmutablePlan plan)
findLabellingByBuild
in interface LabelDao
@Nullable public @Nullable Labelling findLabellingByBuild(String name, String namespace, ImmutablePlan plan)
findLabellingByBuild
in interface LabelDao
@Nullable public @Nullable Labelling findLabellingByProject(Label label, Project project)
findLabellingByProject
in interface LabelDao
public long getUsageCountForLabel(Label label)
getUsageCountForLabel
in interface LabelDao
@NotNull public @NotNull List<ResultsSummary> findResultsSummaryByNameAndNamespace(String name, String namespace)
findResultsSummaryByNameAndNamespace
in interface LabelDao
@NotNull public @NotNull List<LabelCount> findLabels(String namespace, int maxResults)
findLabels
in interface LabelDao
@NotNull public @NotNull Set<Label> findPlanLabels(String namespace)
LabelDao
findPlanLabels
in interface LabelDao
namespace
- label namespace@NotNull public @NotNull Set<Label> findPlanLabels(String namespace, @NotNull @NotNull PlanIdentifier plan)
LabelDao
findPlanLabels
in interface LabelDao
namespace
- label namespaceplan
- plan to filter labels with@NotNull public @NotNull List<LabelCount> findLabels(String namespace, int maxResults, Plan plan)
findLabels
in interface LabelDao
@NotNull public @NotNull List<LabelCount> findLabels(String namespace, int maxResults, Project project)
findLabels
in interface LabelDao
@NotNull public @NotNull List<Labelling> findLabels(ImmutablePlan plan)
findLabels
in interface LabelDao
@NotNull public @NotNull List<Labelling> findLabels(Project project)
findLabels
in interface LabelDao
@NotNull public @NotNull List<Labelling> findLabellingByUser(String userName)
findLabellingByUser
in interface LabelDao
public void saveLabel(@NotNull @NotNull Label label)
public void saveLabelling(@NotNull @NotNull Labelling labelling)
saveLabelling
in interface LabelDao
@NotNull public @NotNull Set<String> getResultSummaryLabelNames(@NotNull @NotNull ResultsSummary resultsSummary)
LabelDao
getResultSummaryLabelNames
in interface LabelDao
resultsSummary
- result summaryCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.