|
||||||||||
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.opensymphony.user.User remoteUser,
java.lang.Long issueId,
java.lang.Long customFieldId,
java.lang.String label,
boolean sendNotification)
Adds a label to the issue and customFieldId provided. |
Label |
addLabel(com.opensymphony.user.User remoteUser,
java.lang.Long issueId,
java.lang.String label,
boolean sendNotification)
Adds a label to the issue provided. |
protected CustomFieldManager |
getFieldManager()
|
java.util.Set<Label> |
getLabels(java.lang.Long issueId)
Returns all the labels for the given issue. |
java.util.Set<Label> |
getLabels(java.lang.Long issueId,
java.lang.Long customFieldId)
Returns all the labels for the given issue and custom field. |
java.util.Set<java.lang.String> |
getSuggestedLabels(com.opensymphony.user.User user,
java.lang.Long issueId,
java.lang.Long customFieldId,
java.lang.String token)
Returns a set of label suggestions sorted alphabetically for the label custom field provided. |
java.util.Set<java.lang.String> |
getSuggestedLabels(com.opensymphony.user.User user,
java.lang.Long issueId,
java.lang.String token)
Returns a set of label suggestions sorted alphabetically for the labels system field. |
java.util.Set<java.lang.Long> |
removeLabelsForCustomField(java.lang.Long customFieldId)
This method deletes all label entries for the custom field provided. |
java.util.Set<Label> |
setLabels(com.opensymphony.user.User remoteUser,
java.lang.Long issueId,
java.lang.Long customFieldId,
java.util.Set<java.lang.String> labels,
boolean sendNotification,
boolean causesChangeNotification)
Sets the labels for a particular issue and field combo to the set specified as a parameter. |
java.util.Set<Label> |
setLabels(com.opensymphony.user.User remoteUser,
java.lang.Long issueId,
java.util.Set<java.lang.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 java.util.Set<Label> getLabels(java.lang.Long issueId)
LabelManager
getLabels
in interface LabelManager
issueId
- The issue id that the label is linked against
public java.util.Set<Label> setLabels(com.opensymphony.user.User remoteUser, java.lang.Long issueId, java.util.Set<java.lang.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 java.util.Set<Label> getLabels(java.lang.Long issueId, java.lang.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 java.util.Set<Label> setLabels(com.opensymphony.user.User remoteUser, java.lang.Long issueId, java.lang.Long customFieldId, java.util.Set<java.lang.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.opensymphony.user.User remoteUser, java.lang.Long issueId, java.lang.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.opensymphony.user.User remoteUser, java.lang.Long issueId, java.lang.Long customFieldId, java.lang.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 java.util.Set<java.lang.Long> removeLabelsForCustomField(java.lang.Long customFieldId)
LabelManager
removeLabelsForCustomField
in interface LabelManager
customFieldId
- the custom field for which to delete labels
public java.util.Set<java.lang.String> getSuggestedLabels(com.opensymphony.user.User user, java.lang.Long issueId, java.lang.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 java.util.Set<java.lang.String> getSuggestedLabels(com.opensymphony.user.User user, java.lang.Long issueId, java.lang.Long customFieldId, java.lang.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 |