示例#1
0
 @SuppressWarnings("unused") // Used in bulkeditusergroups.jsp
 public Collection<ApplicationUser> getUsersToAssignToTheMultiSelect() {
   final Collection<ApplicationUser> users = new ArrayList<ApplicationUser>();
   for (String username : getUsersToAssign()) {
     users.add(userManager.getUserByName(username));
   }
   return users;
 }
 @Override
 public Attachment createAttachmentCopySourceFile(
     final File file,
     final String filename,
     final String contentType,
     final String attachmentAuthor,
     final Issue issue,
     final Map<String, Object> attachmentProperties,
     final Date createdTime)
     throws AttachmentException {
   return createAttachment(
       file,
       filename,
       contentType,
       userManager.getUserByName(attachmentAuthor),
       issue,
       null,
       null,
       attachmentProperties,
       createdTime,
       true);
 }
示例#3
0
 public ApplicationUser getApplicationUser() {
   if (user == null) {
     user = userManager.getUserByName(getName());
   }
   return user;
 }