|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.bamboo.labels.LabelManagerImpl
public class LabelManagerImpl
Field Summary |
---|
Fields inherited from interface com.atlassian.bamboo.labels.LabelManager |
---|
BUILDRESULT_LABEL_NAMESPACE, DEFAULT_MAX_RESULTS, FAVOURITE_LABEL_NAME, FAVOURITE_UNMARK_LABEL_NAME, LABEL_ADDED_TO_BUILD_RESULT, LABEL_CREATED, LABEL_DELETED, LABEL_REMOVED_FROM_BUILD_RESULT, NO_CHANGE |
Constructor Summary | |
---|---|
LabelManagerImpl()
|
Method Summary | |
---|---|
int |
addFavourite(Build build,
User user)
Adds a build to a user as favourite. |
int |
addLabel(String labelName,
BuildResults buildResults,
User user)
Add a label against a build result. |
protected int |
addLabel(String labelName,
String namespace,
Project project,
Build build,
BuildResults buildResults,
String userName)
|
List |
findBuildResultsSummaryByLabel(String labelName)
Finds all BuildResultsSummary labelled with given labelname |
List |
findLabels()
Finds all labels with namespace = 'label', and maxResults set to 200 |
List |
findLabels(String namespace,
int maxResults)
Finds all labels given namespace, and maxResults |
List |
findLabels(String namespace,
int maxResults,
Build build)
Finds all labels in a given build, with namespace and maxResults. |
List |
findLabels(String namespace,
int maxResults,
Project project)
Finds all labels in a given project, with namespace and maxResults. |
boolean |
isFavourite(Build build,
User user)
Determins if the build is a user's favourite |
boolean |
isManuallyUnmarkedFavourite(Build build,
User user)
Flag which determines if the user has manually unmarked this build as favourite. |
int |
removeFavourite(Build build,
User user)
Removes a build from a user's favourite. |
int |
removeLabel(String labelName,
BuildResults buildResults,
User user)
Removes a label against a build result. |
protected int |
removeLabel(String labelName,
String namespace,
Project project,
Build build,
BuildResults buildResults,
String userName)
|
void |
setBuildResultsIndexer(BuildResultsIndexer buildResultsIndexer)
|
void |
setLabelDao(LabelDao labelDao)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LabelManagerImpl()
Method Detail |
---|
public int addLabel(String labelName, BuildResults buildResults, User user)
LabelManager
addLabel
in interface LabelManager
int
identifying result of add processpublic int removeLabel(String labelName, BuildResults buildResults, User user)
LabelManager
removeLabel
in interface LabelManager
int
identifying result of delete processpublic List findBuildResultsSummaryByLabel(String labelName)
LabelManager
BuildResultsSummary
labelled with given labelname
findBuildResultsSummaryByLabel
in interface LabelManager
List
of BuildResultsSummary
public boolean isFavourite(Build build, User user)
LabelManager
isFavourite
in interface LabelManager
boolean
yes or nopublic boolean isManuallyUnmarkedFavourite(Build build, User user)
LabelManager
isManuallyUnmarkedFavourite
in interface LabelManager
boolean
flagpublic int addFavourite(Build build, User user)
LabelManager
addFavourite
in interface LabelManager
int
identifying result of add processpublic int removeFavourite(Build build, User user)
LabelManager
removeFavourite
in interface LabelManager
int
identifying result of removal processpublic List findLabels()
LabelManager
findLabels
in interface LabelManager
List
of LabelCount
objects, mapping a Label
to count of occurances.public List findLabels(String namespace, int maxResults)
LabelManager
findLabels
in interface LabelManager
List
of LabelCount
objects, mapping a Label
to count of occurances.public List findLabels(String namespace, int maxResults, Build build)
LabelManager
findLabels
in interface LabelManager
List
of LabelCount
objects, mapping (Label
to count of occurances.public List findLabels(String namespace, int maxResults, Project project)
LabelManager
findLabels
in interface LabelManager
List
of LabelCount
objects, mapping (Label
to count of occurances.protected int addLabel(String labelName, String namespace, Project project, Build build, BuildResults buildResults, String userName)
protected int removeLabel(String labelName, String namespace, Project project, Build build, BuildResults buildResults, String userName)
public void setLabelDao(LabelDao labelDao)
public void setBuildResultsIndexer(BuildResultsIndexer buildResultsIndexer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |