|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.issue.label.OfBizLabelStore
public class OfBizLabelStore
OfBiz implementation of the LabelStore
Nested Class Summary | |
---|---|
static class |
OfBizLabelStore.Columns
|
Field Summary | |
---|---|
static String |
TABLE
|
Constructor Summary | |
---|---|
OfBizLabelStore(OfBizDelegator ofBizDelegator)
|
Method Summary | |
---|---|
Label |
addLabel(Long issueId,
Long customFieldId,
String label)
Adds a new label to the issue for the custom field specified. |
Set<Label> |
getLabels(Long issueId,
Long customFieldId)
Returns all the labels for the given issue and custom field. |
void |
removeLabel(Long labelId,
Long issueId,
Long customFieldId)
Removes the label identified by id |
Set<Long> |
removeLabelsForCustomField(Long customFieldId)
Deletes all labels for a given custom field. |
Set<Label> |
setLabels(Long issueId,
Long customFieldId,
Set<String> labels)
Sets the labels for a particular issue and field combo 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 |
Field Detail |
---|
public static final String TABLE
Constructor Detail |
---|
public OfBizLabelStore(OfBizDelegator ofBizDelegator)
Method Detail |
---|
public Set<Label> getLabels(Long issueId, Long customFieldId)
LabelStore
getLabels
in interface LabelStore
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(Long issueId, Long customFieldId, Set<String> labels)
LabelStore
setLabels
in interface LabelStore
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.labels
- the new labels for this issue and custom field combo
public Label addLabel(Long issueId, Long customFieldId, String label)
LabelStore
addLabel
in interface LabelStore
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.label
- The new label to add
public void removeLabel(Long labelId, Long issueId, Long customFieldId)
LabelStore
removeLabel
in interface LabelStore
labelId
- The id of the label to deleteissueId
- 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<Long> removeLabelsForCustomField(Long customFieldId)
LabelStore
removeLabelsForCustomField
in interface LabelStore
customFieldId
- The custom field id for which to delete labels
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |