Exemple #1
0
 public People(Jenkins parent) {
   this.parent = parent;
   // for Hudson, really load all users
   Map<User, UserInfo> users = getUserInfo(parent.getItems());
   User unknown = User.getUnknown();
   for (User u : User.getAll()) {
     if (u == unknown) continue; // skip the special 'unknown' user
     if (!users.containsKey(u)) users.put(u, new UserInfo(u, null, null));
   }
   this.users = toList(users);
 }
 /**
  * Gets id of primary owner.
  *
  * @return userId of the primary owner. The result will be "unknown" if the user is not specified.
  */
 public @Nonnull String getPrimaryOwnerId() {
   return ownershipEnabled ? primaryOwnerId : User.getUnknown().getId();
 }
Exemple #3
0
 /** @see Jenkins#getAsynchPeople */
 public AsynchPeople(Jenkins parent) {
   this.parent = parent;
   items = parent.getItems();
   unknown = User.getUnknown();
 }