@Override public Label addLabel(final ApplicationUser remoteUser, final Long issueId, final String label, final boolean sendNotification) { notNull("issueId", issueId); notNull("label", label); validateSingleLabel(label); final Issue issue = findIssue(issueId); return addIfNotContains(issue, label, null, remoteUser, sendNotification); }
@Override public Set<Label> setLabels(final ApplicationUser remoteUser, final Long issueId, final Set<String> labels, final boolean sendNotification, final boolean causesChangeNotification) { notNull("issueId", issueId); notNull("labels", labels); validateLabels(labels); final Issue issue = findIssue(issueId); return setIfNotEqual(issue, labels, null, remoteUser, sendNotification, causesChangeNotification); }
@Override public Set<Label> setLabels(final ApplicationUser remoteUser, final Long issueId, final Long customFieldId, final Set<String> labels, final boolean sendNotification, final boolean causesChangeNotification) { notNull("issueId", issueId); notNull("customFieldId", customFieldId); notNull("labels", labels); validateLabels(labels); final Issue issue = findIssue(issueId); return setIfNotEqual(issue, labels, customFieldId, remoteUser, sendNotification, causesChangeNotification); }
@Override public Label addLabel(final ApplicationUser remoteUser, final Long issueId, final Long customFieldId, final String label, final boolean sendNotification) { notNull("issueId", issueId); notNull("label", label); notNull("customFieldId", customFieldId); validateSingleLabel(label); return addIfNotContains(findIssue(issueId), label, customFieldId, remoteUser, sendNotification); }