|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.label.DefaultLabelManager
public class DefaultLabelManager
Manager responsible for label operations.
Constructor Summary | |
---|---|
DefaultLabelManager(LabelStore labelStore,
IssueIndexManager issueIndexManager,
IssueManager issueManager,
IssueUpdater issueUpdater)
|
Method Summary | |
---|---|
Label |
addLabel(com.atlassian.crowd.embedded.api.User remoteUser,
Long issueId,
Long customFieldId,
String label,
boolean sendNotification)
Adds a label to the issue and customFieldId provided. |
Label |
addLabel(com.atlassian.crowd.embedded.api.User remoteUser,
Long issueId,
String label,
boolean sendNotification)
Adds a label to the issue provided. |
protected CustomFieldManager |
getFieldManager()
|
Set<Label> |
getLabels(Long issueId)
Returns all the labels for the given issue. |
Set<Label> |
getLabels(Long issueId,
Long customFieldId)
Returns all the labels for the given issue and custom field. |
Set<String> |
getSuggestedLabels(com.atlassian.crowd.embedded.api.User user,
Long issueId,
Long customFieldId,
String token)
Returns a set of label suggestions sorted alphabetically for the label custom field provided. |
Set<String> |
getSuggestedLabels(com.atlassian.crowd.embedded.api.User user,
Long issueId,
String token)
Returns a set of label suggestions sorted alphabetically for the labels system field. |
Set<Long> |
removeLabelsForCustomField(Long customFieldId)
This method deletes all label entries for the custom field provided. |
Set<Label> |
setLabels(com.atlassian.crowd.embedded.api.User remoteUser,
Long issueId,
Long customFieldId,
Set<String> labels,
boolean sendNotification,
boolean causesChangeNotification)
Sets the labels for a particular issue and field combo to the set specified as a parameter. |
Set<Label> |
setLabels(com.atlassian.crowd.embedded.api.User remoteUser,
Long issueId,
Set<String> labels,
boolean sendNotification,
boolean causesChangeNotification)
Sets the labels for a particular issue to the set specified as a parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultLabelManager(LabelStore labelStore, IssueIndexManager issueIndexManager, IssueManager issueManager, IssueUpdater issueUpdater)
Method Detail |
---|
protected CustomFieldManager getFieldManager()
public Set<Label> getLabels(Long issueId)
LabelManager
getLabels
in interface LabelManager
issueId
- The issue id that the label is linked against
public Set<Label> setLabels(com.atlassian.crowd.embedded.api.User remoteUser, Long issueId, Set<String> labels, boolean sendNotification, boolean causesChangeNotification)
LabelManager
setLabels
in interface LabelManager
remoteUser
- The user setting labelsissueId
- The issue id that the label is linked againstlabels
- the new labels for this issuesendNotification
- true if an e-mail should be sent to users notifying them of the issue updatecausesChangeNotification
- true if a change history should be created, false otherwise
public Set<Label> getLabels(Long issueId, Long customFieldId)
LabelManager
getLabels
in interface LabelManager
issueId
- 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 Set<Label> setLabels(com.atlassian.crowd.embedded.api.User remoteUser, Long issueId, Long customFieldId, Set<String> labels, boolean sendNotification, boolean causesChangeNotification)
LabelManager
setLabels
in interface LabelManager
remoteUser
- The user setting labelsissueId
- The issue id that the label is linked againstcustomFieldId
- Custom field id for the labels CF or null if it's the system field.labels
- the new labels for this issue and custom field combosendNotification
- true if an e-mail should be sent to users notifying them of the issue updatecausesChangeNotification
- true if a change history should be created, false otherwise
public Label addLabel(com.atlassian.crowd.embedded.api.User remoteUser, Long issueId, String label, boolean sendNotification)
LabelManager
addLabel
in interface LabelManager
remoteUser
- The user setting labelsissueId
- The issue id that the label is linked againstlabel
- The new label to add to the issuesendNotification
- true if an e-mail should be sent to users notifying them of the issue update
public Label addLabel(com.atlassian.crowd.embedded.api.User remoteUser, Long issueId, Long customFieldId, String label, boolean sendNotification)
LabelManager
addLabel
in interface LabelManager
remoteUser
- The user setting labelsissueId
- The issue id that the label is linked againstcustomFieldId
- The id of the custom field to add the label tolabel
- The new label to add to the issuesendNotification
- true if an e-mail should be sent to users notifying them of the issue update
public Set<Long> removeLabelsForCustomField(Long customFieldId)
LabelManager
removeLabelsForCustomField
in interface LabelManager
customFieldId
- the custom field for which to delete labels
public Set<String> getSuggestedLabels(com.atlassian.crowd.embedded.api.User user, Long issueId, String token)
LabelManager
getSuggestedLabels
in interface LabelManager
user
- The user retrieving suggestions for the labels system fieldissueId
- The issue for which suggestions should be generated or null
token
- The search token entered by the user
public Set<String> getSuggestedLabels(com.atlassian.crowd.embedded.api.User user, Long issueId, Long customFieldId, String token)
LabelManager
getSuggestedLabels
in interface LabelManager
user
- The user retrieving suggestions for the labels custom fieldissueId
- The issue for which suggestions should be generated or null
customFieldId
- The label custom field to generate suggestions fortoken
- The search token entered by the user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |