Package org.beangle.ems.avatar

Examples of org.beangle.ems.avatar.Avatar


    }
    return null;
  }

  public String info() {
    Avatar avatar = avatarBase.getAvatar(getUsername());
    put("avatar", avatar);
    put("user", getUser());
    return forward();
  }
View Full Code Here


      User user = users.get(0);
      put("user", StrUtils.concat(userName, "(", user.getFullname(), ")"));
    } else {
      put("user", userName);
    }
    Avatar avatar = avatarBase.getAvatar(userName);
    put("avatar", avatar);
    return forward();
  }
View Full Code Here

   * @throws IOException
   */
  public String index() throws IOException {
    String userName = get("user.name");
    if (StringUtils.isEmpty(userName)) { return null; }
    Avatar avatar = avatarBase.getAvatar(userName);
    if (null == avatar) {
      avatar = avatarBase.getDefaultAvatar();
    }
    AvatarUtil.copyTo(avatar, ServletActionContext.getResponse());
    return null;
View Full Code Here

      User user = users.get(0);
      put("user", StrUtils.concat(userName, "(", user.getFullname(), ")"));
    } else {
      put("user", userName);
    }
    Avatar avatar = avatarBase.getAvatar(userName);
    put("avatar", avatar);
    return forward();
  }
View Full Code Here

TOP

Related Classes of org.beangle.ems.avatar.Avatar

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.