public class LabelHibernateDao extends BambooHibernateObjectDao implements LabelDao
Constructor and Description |
---|
LabelHibernateDao() |
findAll, findAllSorted, findById, findById, refresh, remove, replicate, save, saveRaw, setIndexer, 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 Label findLabelByNameAndNamespace(String name, String namespace)
findLabelByNameAndNamespace
in interface LabelDao
@NotNull public List<Label> findLabelsByNameAndNamespace(List<String> names, String namespace)
LabelDao
findLabelsByNameAndNamespace
in interface LabelDao
@Nullable public Labelling findLabellingByResultsSummary(Label label, ResultsSummary resultsSummary)
findLabellingByResultsSummary
in interface LabelDao
@Nullable public Labelling findLabellingByResultsSummary(String name, String namespace, ResultsSummary buildResultsSummary)
findLabellingByResultsSummary
in interface LabelDao
@Nullable public Labelling findLabellingByBuild(Label label, ImmutablePlan plan)
findLabellingByBuild
in interface LabelDao
@Nullable public Labelling findLabellingByBuild(String name, String namespace, ImmutablePlan plan)
findLabellingByBuild
in interface LabelDao
@Nullable public Labelling findLabellingByProject(Label label, Project project)
findLabellingByProject
in interface LabelDao
public long getUsageCountForLabel(Label label)
getUsageCountForLabel
in interface LabelDao
@NotNull public List<ResultsSummary> findResultsSummaryByNameAndNamespace(String name, String namespace)
findResultsSummaryByNameAndNamespace
in interface LabelDao
@NotNull public List<LabelCount> findLabels(String namespace, int maxResults)
findLabels
in interface LabelDao
@NotNull public Set<Label> findPlanLabels(String namespace)
LabelDao
findPlanLabels
in interface LabelDao
namespace
- label namespace@NotNull public Set<Label> findPlanLabels(String namespace, @NotNull PlanIdentifier plan)
LabelDao
findPlanLabels
in interface LabelDao
namespace
- label namespaceplan
- plan to filter labels with@NotNull public List<LabelCount> findLabels(String namespace, int maxResults, Plan plan)
findLabels
in interface LabelDao
@NotNull public List<LabelCount> findLabels(String namespace, int maxResults, Project project)
findLabels
in interface LabelDao
@NotNull public List<Labelling> findLabels(ImmutablePlan plan)
findLabels
in interface LabelDao
@NotNull public List<Labelling> findLabels(Project project)
findLabels
in interface LabelDao
@NotNull public List<Labelling> findLabellingByUser(String userName)
findLabellingByUser
in interface LabelDao
public void saveLabelling(@NotNull Labelling labelling)
saveLabelling
in interface LabelDao
@NotNull public Set<String> getResultSummaryLabelNames(@NotNull ResultsSummary resultsSummary)
LabelDao
getResultSummaryLabelNames
in interface LabelDao
resultsSummary
- result summaryCopyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.