|
||||||||||
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.opensymphony.user.User user,
LabelService.AddLabelValidationResult result,
boolean sendNotification)
Adds the label to the issue specified by the validation result. |
LabelService.LabelsResult |
getLabels(com.opensymphony.user.User user,
java.lang.Long issueId)
Returns all the labels for the given issue. |
LabelService.LabelsResult |
getLabels(com.opensymphony.user.User user,
java.lang.Long issueId,
java.lang.Long customFieldId)
Returns all the labels for the given issue and custom field. |
LabelService.LabelSuggestionResult |
getSuggestedLabels(com.opensymphony.user.User user,
java.lang.Long issueId,
java.lang.Long customFieldId,
java.lang.String token)
Given a token to search for, this method returns a number of suggestions for the label. |
LabelService.LabelSuggestionResult |
getSuggestedLabels(com.opensymphony.user.User user,
java.lang.Long issueId,
java.lang.String token)
Given a token to search for, this method returns a number of suggestions for the label. |
LabelService.LabelsResult |
setLabels(com.opensymphony.user.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.opensymphony.user.User user,
java.lang.Long issueId,
java.lang.Long customFieldId,
java.lang.String label)
Validates that the user provided can add the label provided for a particular issue. |
LabelService.AddLabelValidationResult |
validateAddLabel(com.opensymphony.user.User user,
java.lang.Long issueId,
java.lang.String label)
Validates that the user provided can add the label provided for a particular issue. |
LabelService.SetLabelValidationResult |
validateSetLabels(com.opensymphony.user.User user,
java.lang.Long issueId,
java.lang.Long customFieldId,
java.util.Set<java.lang.String> labels)
Validates that the user provided can set the labels provided for a particular issue. |
LabelService.SetLabelValidationResult |
validateSetLabels(com.opensymphony.user.User user,
java.lang.Long issueId,
java.util.Set<java.lang.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.opensymphony.user.User user, java.lang.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.opensymphony.user.User user, java.lang.Long issueId, java.lang.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.opensymphony.user.User user, java.lang.Long issueId, java.util.Set<java.lang.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.opensymphony.user.User user, java.lang.Long issueId, java.lang.Long customFieldId, java.util.Set<java.lang.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.opensymphony.user.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(com.opensymphony.user.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.opensymphony.user.User user, java.lang.Long issueId, java.lang.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.opensymphony.user.User user, java.lang.Long issueId, java.lang.Long customFieldId, java.lang.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.opensymphony.user.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(com.opensymphony.user.User, Long,
String)
sendNotification
- true if a notification e-mail should be sent, false otherwise
public LabelService.LabelSuggestionResult getSuggestedLabels(com.opensymphony.user.User user, java.lang.Long issueId, java.lang.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.opensymphony.user.User user, java.lang.Long issueId, java.lang.Long customFieldId, java.lang.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 |