public final boolean addAuthors(Collection<scrum.server.admin.User> authors) { if (authors == null) throw new IllegalArgumentException("authors == null"); boolean added = false; for (scrum.server.admin.User author : authors) { added = added | this.authorsIds.add(author.getId()); } return added; }
public final boolean addAuthor(scrum.server.admin.User author) { if (author == null) throw new IllegalArgumentException("author == null"); boolean added = this.authorsIds.add(author.getId()); if (added) updateLastModified(); if (added) fireModified("authors+=" + author); return added; }
public final boolean removeAuthor(scrum.server.admin.User author) { if (author == null) throw new IllegalArgumentException("author == null"); if (this.authorsIds == null) return false; boolean removed = this.authorsIds.remove(author.getId()); if (removed) updateLastModified(); if (removed) fireModified("authors-=" + author); return removed; }
public final boolean containsAuthor(scrum.server.admin.User author) { if (author == null) return false; return this.authorsIds.contains(author.getId()); }