|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LabelManager
Field Summary | |
---|---|
static String |
BUILDRESULT_LABEL_NAMESPACE
|
static int |
DEFAULT_MAX_RESULTS
|
static String |
FAVOURITE_LABEL_NAME
|
static 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,
User user)
Adds a build to a user as favourite. |
int |
addLabel(String labelName,
BuildResults build,
User user)
Add a label against a build result. |
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 build,
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 String BUILDRESULT_LABEL_NAMESPACE
static final String FAVOURITE_LABEL_NAME
static final String FAVOURITE_UNMARK_LABEL_NAME
static final int DEFAULT_MAX_RESULTS
Method Detail |
---|
int addLabel(String labelName, BuildResults build, User user)
labelName
- build
- user
-
int
identifying result of add processint removeLabel(String labelName, BuildResults build, User user)
labelName
- build
- user
-
int
identifying result of delete processList findBuildResultsSummaryByLabel(String labelName)
BuildResultsSummary
labelled with given labelname
labelName
-
List
of BuildResultsSummary
List findLabels()
List
of LabelCount
objects, mapping a Label
to count of occurances.List findLabels(String namespace, int maxResults)
namespace
- maxResults
-
List
of LabelCount
objects, mapping a Label
to count of occurances.List findLabels(String namespace, int maxResults, Build build)
namespace
- maxResults
- build
-
List
of LabelCount
objects, mapping (Label
to count of occurances.List findLabels(String namespace, int maxResults, Project project)
namespace
- maxResults
- project
-
List
of LabelCount
objects, mapping (Label
to count of occurances.int addFavourite(Build build, User user)
build
- user
-
int
identifying result of add processint removeFavourite(Build build, User user)
build
- user
-
int
identifying result of removal processboolean isFavourite(Build build, User user)
build
- user
-
boolean
yes or noboolean isManuallyUnmarkedFavourite(Build build, User user)
build
- user
-
boolean
flag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |