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 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; }
private void onStartConversation(GwtConversation conversation) { User user = conversation.getSession().getUser(); if (user == null) throw new PermissionDeniedException("Login required."); conversation.clearRemoteEntities(); conversation.getNextData().applicationInfo = webApplication.getApplicationInfo(); conversation.sendToClient(webApplication.getSystemConfig()); conversation.getNextData().setUserId(user.getId()); conversation.sendUserScopeDataToClient(user); }
public final boolean containsAuthor(scrum.server.admin.User author) { if (author == null) return false; return this.authorsIds.contains(author.getId()); }