com.atlassian.bamboo.labels
Interface LabelDao

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

public interface LabelDao
extends BambooObjectDao


Method Summary
 java.util.List<BuildResultsSummary> findBuildResultsSummaryByLabel(Label label)
           
 Label findLabelByNameAndNamespace(java.lang.String name, java.lang.String namespace)
           
 Labelling findLabellingByBuild(Label label, Build build)
           
 Labelling findLabellingByBuildResultsSummary(Label label, BuildResultsSummary buildResultsSummary)
           
 Labelling findLabellingByProject(Label label, Project project)
           
 java.util.List<Labelling> findLabellingByUser(java.lang.String userName)
           
 java.util.List<Labelling> findLabels(Build build)
           
 java.util.List<Labelling> findLabels(Project project)
           
 java.util.List<LabelCount> findLabels(java.lang.String namespace, int maxResults)
           
 java.util.List<LabelCount> findLabels(java.lang.String namespace, int maxResults, Build build)
           
 java.util.List<LabelCount> findLabels(java.lang.String namespace, int maxResults, Project project)
           
 java.util.List<Label> findLabelsByNameAndNamespace(java.util.List<java.lang.String> names, java.lang.String namespace)
          Find any labels that match the names in the specic namespace
 int getUsageCountForLabel(Label label)
           
 
Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findById
 
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw
 

Method Detail

findLabelByNameAndNamespace

Label findLabelByNameAndNamespace(java.lang.String name,
                                  java.lang.String namespace)

findLabelsByNameAndNamespace

java.util.List<Label> findLabelsByNameAndNamespace(java.util.List<java.lang.String> names,
                                                   java.lang.String namespace)
Find any labels that match the names in the specic namespace

Parameters:
names -
namespace -
Returns:

findBuildResultsSummaryByLabel

java.util.List<BuildResultsSummary> findBuildResultsSummaryByLabel(Label label)

findLabellingByBuildResultsSummary

Labelling findLabellingByBuildResultsSummary(Label label,
                                             BuildResultsSummary buildResultsSummary)

getUsageCountForLabel

int getUsageCountForLabel(Label label)

findLabels

java.util.List<LabelCount> findLabels(java.lang.String namespace,
                                      int maxResults)

findLabellingByBuild

@Nullable
Labelling findLabellingByBuild(Label label,
                                        Build build)

findLabellingByProject

Labelling findLabellingByProject(Label label,
                                 Project project)

findLabels

java.util.List<LabelCount> findLabels(java.lang.String namespace,
                                      int maxResults,
                                      Build build)

findLabels

java.util.List<LabelCount> findLabels(java.lang.String namespace,
                                      int maxResults,
                                      Project project)

findLabels

java.util.List<Labelling> findLabels(Build build)

findLabels

java.util.List<Labelling> findLabels(Project project)

findLabellingByUser

java.util.List<Labelling> findLabellingByUser(java.lang.String userName)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.