|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.bc.issue.label.DefaultLabelService
public class DefaultLabelService
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.bc.issue.label.LabelService |
---|
LabelService.AddLabelValidationResult, LabelService.LabelsResult, LabelService.LabelSuggestionResult, LabelService.LabelValidationResult, LabelService.SetLabelValidationResult |
Constructor Summary | |
---|---|
DefaultLabelService(PermissionManager permissionManager,
IssueManager issueManager,
LabelManager labelManager,
I18nHelper.BeanFactory beanFactory,
CustomFieldManager customFieldManager,
FieldLayoutManager fieldLayoutManager)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultLabelService(PermissionManager permissionManager, IssueManager issueManager, LabelManager labelManager, I18nHelper.BeanFactory beanFactory, CustomFieldManager customFieldManager, FieldLayoutManager fieldLayoutManager)
Method Detail |
---|
public LabelService.LabelsResult getLabels(com.atlassian.crowd.embedded.api.User user, Long issueId)
LabelService
getLabels
in interface LabelService
user
- The user performing the operationissueId
- The issue id that the label is linked against
public LabelService.LabelsResult getLabels(com.atlassian.crowd.embedded.api.User user, Long issueId, Long customFieldId)
LabelService
getLabels
in interface LabelService
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.
public LabelService.SetLabelValidationResult validateSetLabels(com.atlassian.crowd.embedded.api.User user, Long issueId, Set<String> labels)
LabelService
validateSetLabels
in interface LabelService
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
public LabelService.SetLabelValidationResult validateSetLabels(com.atlassian.crowd.embedded.api.User user, Long issueId, Long customFieldId, Set<String> labels)
LabelService
validateSetLabels
in interface LabelService
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
public LabelService.LabelsResult setLabels(com.atlassian.crowd.embedded.api.User user, LabelService.SetLabelValidationResult result, boolean sendNotification, boolean causeChangeNotification)
LabelService
setLabels
in interface LabelService
user
- The user performing the operationresult
- The validation result obtained by calling LabelService.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
public LabelService.AddLabelValidationResult validateAddLabel(com.atlassian.crowd.embedded.api.User user, Long issueId, String label)
LabelService
validateAddLabel
in interface LabelService
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
public LabelService.AddLabelValidationResult validateAddLabel(com.atlassian.crowd.embedded.api.User user, Long issueId, Long customFieldId, String label)
LabelService
validateAddLabel
in interface LabelService
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
public LabelService.LabelsResult addLabel(com.atlassian.crowd.embedded.api.User user, LabelService.AddLabelValidationResult result, boolean sendNotification)
LabelService
addLabel
in interface LabelService
user
- The user performing the operationresult
- The validation result obtained via LabelService.validateAddLabel(User, Long, String)
sendNotification
- true if a notification e-mail should be sent, false otherwise
public LabelService.LabelSuggestionResult getSuggestedLabels(com.atlassian.crowd.embedded.api.User user, Long issueId, String token)
LabelService
getSuggestedLabels
in interface LabelService
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
public LabelService.LabelSuggestionResult getSuggestedLabels(com.atlassian.crowd.embedded.api.User user, Long issueId, Long customFieldId, String token)
LabelService
getSuggestedLabels
in interface LabelService
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 |