|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LabelManager
Field Summary | |
---|---|
static java.lang.String |
BUILDRESULT_LABEL_NAMESPACE
|
static int |
DEFAULT_MAX_RESULTS
|
static java.lang.String |
FAVOURITE_LABEL_NAME
|
static java.lang.String |
FAVOURITE_UNMARK_LABEL_NAME
|
static int |
LABEL_ADDED_TO_BUILD_RESULT
|
static int |
LABEL_CREATED
|
static int |
LABEL_DELETED
|
static int |
LABEL_REMOVED_FROM_BUILD_RESULT
|
static int |
NO_CHANGE
|
Method Summary | |
---|---|
int |
addFavourite(Build build,
com.atlassian.user.User user)
Adds a build to a user as favourite. |
int |
addLabel(java.lang.String labelName,
BuildResults buildResults,
com.atlassian.user.User user)
Add a label against a build result. |
java.util.List<BuildResultsSummary> |
findBuildResultsSummaryByLabel(java.lang.String labelName)
Finds all BuildResultsSummary labelled with given labelname |
java.util.List<LabelCount> |
findLabels(java.lang.String namespace,
int maxResults,
Build build,
Project project)
Finds all labels in a given build, with namespace and maxResults. |
java.util.List |
getFavouritesForBuild(Build build)
Retrieves a list of usernames which have the given build set as a favourite. |
boolean |
hasBuildResultsLabel(BuildResultsSummary buildResultsSummary,
java.lang.String label)
Checks whether the build results summary has a particular label |
boolean |
isFavourite(Build build,
com.atlassian.user.User user)
Determins if the build is a user's favourite |
boolean |
isManuallyUnmarkedFavourite(Build build,
com.atlassian.user.User user)
Flag which determines if the user has manually unmarked this build as favourite. |
int |
removeFavourite(Build build,
com.atlassian.user.User user)
Removes a build from a user's favourite. |
int |
removeLabel(java.lang.String labelName,
BuildResults build,
com.atlassian.user.User user)
Removes a label against a build result. |
Field Detail |
---|
static final int NO_CHANGE
static final int LABEL_CREATED
static final int LABEL_ADDED_TO_BUILD_RESULT
static final int LABEL_DELETED
static final int LABEL_REMOVED_FROM_BUILD_RESULT
static final java.lang.String BUILDRESULT_LABEL_NAMESPACE
static final java.lang.String FAVOURITE_LABEL_NAME
static final java.lang.String FAVOURITE_UNMARK_LABEL_NAME
static final int DEFAULT_MAX_RESULTS
Method Detail |
---|
int addLabel(@Nullable java.lang.String labelName, @Nullable BuildResults buildResults, @Nullable com.atlassian.user.User user)
labelName
- build
- user
-
int
identifying result of add processint removeLabel(java.lang.String labelName, BuildResults build, com.atlassian.user.User user)
labelName
- build
- user
-
int
identifying result of delete processjava.util.List<BuildResultsSummary> findBuildResultsSummaryByLabel(java.lang.String labelName)
BuildResultsSummary
labelled with given labelname
labelName
-
List
of BuildResultsSummary
@NotNull java.util.List<LabelCount> findLabels(@NotNull java.lang.String namespace, int maxResults, @Nullable Build build, @Nullable Project project)
namespace
- maxResults
- build
- project
-
List
of LabelCount
objects, mapping (Label
to count of occurances.int addFavourite(Build build, com.atlassian.user.User user)
build
- user
-
int
identifying result of add processint removeFavourite(@NotNull Build build, @Nullable com.atlassian.user.User user)
build
- user
-
int
identifying result of removal processboolean isFavourite(Build build, com.atlassian.user.User user)
build
- user
-
boolean
yes or noboolean isManuallyUnmarkedFavourite(Build build, com.atlassian.user.User user)
build
- user
-
boolean
flagjava.util.List getFavouritesForBuild(Build build)
build
-
boolean hasBuildResultsLabel(BuildResultsSummary buildResultsSummary, java.lang.String label)
buildResultsSummary
- @NotNulllabel
- @NotNull . could be empty
BuildResultsSummary
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |