|
||||||||||
| 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(Plan plan,
com.atlassian.user.User user)
Adds a build to a user as favourite. |
int |
addLabel(java.lang.String labelName,
PlanResultKey planResultKey,
com.atlassian.user.User user)
Add a label against a build result. |
java.util.List<ResultsSummary> |
findBuildResultsSummaryByLabel(java.lang.String labelName)
Finds all ResultsSummary labelled with given labelname |
java.util.List<LabelCount> |
findLabels(java.lang.String namespace,
int maxResults,
Plan plan,
Project project)
Finds all labels in a given build, with namespace and maxResults. |
java.util.List<Label> |
findLabelsByMatchingString(java.lang.String match,
java.lang.String escapeChar)
Find all labels that match the specified string. |
java.util.List<java.lang.String> |
getFavouritesForPlan(Plan plan)
Retrieves a list of usernames which have the given plan set as a favourite. |
java.util.Collection<Label> |
getLabelsByName(java.util.List<java.lang.String> labelNames)
Gets list of labels based on label names |
boolean |
hasBuildResultsLabel(ResultsSummary buildResultsSummary,
java.lang.String label)
Checks whether the build results summary has a particular label |
boolean |
isFavourite(Plan plan,
com.atlassian.user.User user)
Determines if the build is a user's favourite Note that its more efficient to use PlanManager.filterFavouritedPlans(java.util.Collection, com.atlassian.user.User)
if you are performing this operation over a collection of Builds |
boolean |
isManuallyUnmarkedFavourite(Plan plan,
com.atlassian.user.User user)
Flag which determines if the user has manually unmarked this build as favourite. |
int |
removeFavourite(Plan plan,
com.atlassian.user.User user)
Removes a build from a user's favourite. |
int |
removeLabel(java.lang.String labelName,
PlanResultKey planResultKey,
com.atlassian.user.User user)
Removes a label against a build result. |
void |
saveLabelling(Labelling labelling)
Saves a specific labelling - does not do any validation or checking. |
| 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
PlanResultKey planResultKey,
@Nullable
com.atlassian.user.User user)
labelName - planResultKey - user -
int identifying result of add process
int removeLabel(java.lang.String labelName,
PlanResultKey planResultKey,
com.atlassian.user.User user)
labelName - planResultKey - user -
int identifying result of delete process@NotNull java.util.List<ResultsSummary> findBuildResultsSummaryByLabel(java.lang.String labelName)
ResultsSummary labelled with given labelname
labelName -
List of ResultsSummary
@NotNull
java.util.List<LabelCount> findLabels(@NotNull
java.lang.String namespace,
int maxResults,
@Nullable
Plan plan,
@Nullable
Project project)
namespace - maxResults - plan - project - @return List of LabelCount objects, mapping (Label to count of occurances.
java.util.List<Label> findLabelsByMatchingString(java.lang.String match,
java.lang.String escapeChar)
match - escapeChar -
int addFavourite(Plan plan,
com.atlassian.user.User user)
plan - user -
int identifying result of add process
int removeFavourite(@NotNull
Plan plan,
@Nullable
com.atlassian.user.User user)
plan - user -
int identifying result of removal process
boolean isFavourite(Plan plan,
com.atlassian.user.User user)
PlanManager.filterFavouritedPlans(java.util.Collection, com.atlassian.user.User)
if you are performing this operation over a collection of Builds
plan - user -
boolean yes or no
boolean isManuallyUnmarkedFavourite(@NotNull
Plan plan,
@Nullable
com.atlassian.user.User user)
plan - user -
boolean flagjava.util.List<java.lang.String> getFavouritesForPlan(Plan plan)
plan -
boolean hasBuildResultsLabel(ResultsSummary buildResultsSummary,
java.lang.String label)
buildResultsSummary - @NotNulllabel - @NotNull . could be empty
ResultsSummaryjava.util.Collection<Label> getLabelsByName(java.util.List<java.lang.String> labelNames)
labelNames -
void saveLabelling(Labelling labelling)
labelling - to save
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||