Package org.beangle.ems.avatar

Examples of org.beangle.ems.avatar.Avatar


    }
    return contains;
  }

  public Avatar getAvatar(String name) {
    Avatar avatar = null;
    for (AvatarBase base : bases) {
      avatar = base.getAvatar(name);
      if (null != avatar) {
        break;
      }
View Full Code Here


public class MyUploadAction extends SecurityActionSupport {

  protected AvatarBase avatarBase;

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

  protected AvatarBase avatarBase;

  public String index() throws IOException {
    String userName = getUsername();
    Avatar avatar = avatarBase.getAvatar(userName);
    if (null == avatar) {
      ServletActionContext.getResponse().getWriter().write("without you avatar [" + userName + "]");
    } else {
      AvatarUtil.copyTo(avatar, ServletActionContext.getResponse());
    }
View Full Code Here

    }
    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

    }
    return contains;
  }

  public Avatar getAvatar(String name) {
    Avatar avatar = null;
    for (AvatarBase base : bases) {
      avatar = base.getAvatar(name);
      if (null != avatar) {
        break;
      }
View Full Code Here

public class MyUploadAction extends SecurityActionSupport {

  protected AvatarBase avatarBase;

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

  protected AvatarBase avatarBase;

  public String index() throws IOException {
    String userName = getUsername();
    Avatar avatar = avatarBase.getAvatar(userName);
    if (null == avatar) {
      ServletActionContext.getResponse().getWriter().write("without you avatar [" + userName + "]");
    } else {
      AvatarUtil.copyTo(avatar, ServletActionContext.getResponse());
    }
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.