Examples of Avatar


Examples of org.beangle.ems.avatar.Avatar

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

Examples of org.beangle.ems.avatar.Avatar

  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

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

Examples of org.beangle.ems.avatar.Avatar

      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

Examples of org.beangle.ems.avatar.Avatar

   * @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

Examples of org.beangle.ems.avatar.Avatar

      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

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

Examples of org.beangle.ems.avatar.Avatar

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

Examples of org.beangle.ems.avatar.Avatar

  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

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
TOP
Copyright © 2018 www.massapi.com. 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.