Пример #1
0
 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;
 }
Пример #2
0
 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;
 }
Пример #3
0
 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;
 }
Пример #4
0
 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);
 }
Пример #5
0
 public final boolean containsAuthor(scrum.server.admin.User author) {
   if (author == null) return false;
   return this.authorsIds.contains(author.getId());
 }