|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@PublicApi public interface LabelService
The label service is responsible for setting and getting labels for issue and custom field combinations. It can also be used to add and remove individual labels from an isssue.
Nested Class Summary | |
---|---|
static class |
LabelService.AddLabelValidationResult
|
static class |
LabelService.LabelsResult
|
static class |
LabelService.LabelSuggestionResult
|
static class |
LabelService.LabelValidationResult
|
static class |
LabelService.SetLabelValidationResult
|
Method Summary | |
---|---|
LabelService.LabelsResult |
addLabel(com.atlassian.crowd.embedded.api.User user,
LabelService.AddLabelValidationResult result,
boolean sendNotification)
Adds the label to the issue specified by the validation result. |
LabelService.LabelsResult |
getLabels(com.atlassian.crowd.embedded.api.User user,
Long issueId)
Returns all the labels for the given issue. |
LabelService.LabelsResult |
getLabels(com.atlassian.crowd.embedded.api.User user,
Long issueId,
Long customFieldId)
Returns all the labels for the given issue and custom field. |
LabelService.LabelSuggestionResult |
getSuggestedLabels(com.atlassian.crowd.embedded.api.User user,
Long issueId,
Long customFieldId,
String token)
Given a token to search for, this method returns a number of suggestions for the label. |
LabelService.LabelSuggestionResult |
getSuggestedLabels(com.atlassian.crowd.embedded.api.User user,
Long issueId,
String token)
Given a token to search for, this method returns a number of suggestions for the label. |
LabelService.LabelsResult |
setLabels(com.atlassian.crowd.embedded.api.User user,
LabelService.SetLabelValidationResult result,
boolean sendNotification,
boolean causeChangeNotification)
Sets the labels for a particular issue to the set specified as a parameter. |
LabelService.AddLabelValidationResult |
validateAddLabel(com.atlassian.crowd.embedded.api.User user,
Long issueId,
Long customFieldId,
String label)
Validates that the user provided can add the label provided for a particular issue. |
LabelService.AddLabelValidationResult |
validateAddLabel(com.atlassian.crowd.embedded.api.User user,
Long issueId,
String label)
Validates that the user provided can add the label provided for a particular issue. |
LabelService.SetLabelValidationResult |
validateSetLabels(com.atlassian.crowd.embedded.api.User user,
Long issueId,
Long customFieldId,
Set<String> labels)
Validates that the user provided can set the labels provided for a particular issue. |
LabelService.SetLabelValidationResult |
validateSetLabels(com.atlassian.crowd.embedded.api.User user,
Long issueId,
Set<String> labels)
Validates that the user provided can set the labels provided for a particular issue. |
Method Detail |
---|
LabelService.LabelsResult getLabels(com.atlassian.crowd.embedded.api.User user, Long issueId)
user
- The user performing the operationissueId
- The issue id that the label is linked against
LabelService.SetLabelValidationResult validateSetLabels(com.atlassian.crowd.embedded.api.User user, Long issueId, Set<String> labels)
user
- The user performing the operationissueId
- The issue id of the issue that labels will be set onlabels
- The actual labels as strings to set on the issue
LabelService.SetLabelValidationResult validateSetLabels(com.atlassian.crowd.embedded.api.User user, Long issueId, Long customFieldId, Set<String> labels)
user
- The user performing the operationissueId
- The issue id of the issue that labels will be set oncustomFieldId
- The custom field id against which to set the labelslabels
- The actual labels as strings to set on the issue
LabelService.LabelsResult getLabels(com.atlassian.crowd.embedded.api.User user, Long issueId, Long customFieldId)
user
- The user performing the operationissueId
- The issue id that the label is linked againstcustomFieldId
- Custom field id for the labels CF or null if it's the system field.
LabelService.LabelsResult setLabels(com.atlassian.crowd.embedded.api.User user, LabelService.SetLabelValidationResult result, boolean sendNotification, boolean causeChangeNotification)
user
- The user performing the operationresult
- The validation result obtained by calling validateSetLabels(User,
Long, java.util.Set)
sendNotification
- true if a notification e-mail should be sent, false otherwisecauseChangeNotification
- true if a change history should be created, false otherwise
LabelService.AddLabelValidationResult validateAddLabel(com.atlassian.crowd.embedded.api.User user, Long issueId, String label)
user
- The user performing the operationissueId
- The issue id of the issue that labels will be set onlabel
- The actual labels as strings to set on the issue
LabelService.AddLabelValidationResult validateAddLabel(com.atlassian.crowd.embedded.api.User user, Long issueId, Long customFieldId, String label)
user
- The user performing the operationissueId
- The issue id of the issue that labels will be set oncustomFieldId
- Custom field id for the labels CF or null if it's the system field.label
- The actual labels as strings to set on the issue
LabelService.LabelsResult addLabel(com.atlassian.crowd.embedded.api.User user, LabelService.AddLabelValidationResult result, boolean sendNotification)
user
- The user performing the operationresult
- The validation result obtained via validateAddLabel(User, Long, String)
sendNotification
- true if a notification e-mail should be sent, false otherwise
LabelService.LabelSuggestionResult getSuggestedLabels(com.atlassian.crowd.embedded.api.User user, Long issueId, String token)
user
- The user trying to get label suggestionsissueId
- The issue for which suggestions are being fetched or null
token
- The prefix for the labels to be suggested. May be null for popular label suggestions
LabelService.LabelSuggestionResult getSuggestedLabels(com.atlassian.crowd.embedded.api.User user, Long issueId, Long customFieldId, String token)
user
- The user trying to get label suggestionsissueId
- The issue for which suggestions are being fetched or null
customFieldId
- The labels custom field for which to provide suggestionstoken
- The prefix for the labels to be suggested. May be null for popular label suggestions
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |