Package org.brain.pojos

Examples of org.brain.pojos.User


    document.setSimpletitle(simpletitle);
    document.setIsbn(isbn);
    document.setLabel(label);
    document.setNote(note);
    //修改用户名称
    User user = ToolBean.getUserSession();
    document.setImage("pic/"+user.getUsername()+"/"+image);
    document.setLanguage(language);
    //document.setLastsearchtime(new Date());
    document.setEdittime(new Date());
 
    System.out.println("this is a test panel!");
View Full Code Here


  public void setLink(String link) {
    this.link = link;
  }

  public String getSecondauthor() {
    User user;
    user = ToolBean.getUserSession();
    secondauthor=user.getUsername();
    return this.secondauthor;
  }
View Full Code Here

    document.setClassify(classify);
   
    document.setCreatetime(new Date());
    document.setYears(years);
    //修改用户名称
    User user = ToolBean.getUserSession();
    document.setLink("file/"+user.getUsername()+"/"+link);
    document.setSecondauthor(user.getUsername());
    document.setSecondtitle(secondtitle);
    document.setPlaceofpublication(placeofpublication);
    document.setPress(press);
    document.setSerialnumber(serialnumber);
    document.setPagenumber(pagenumber);
    document.setReferencescited(referencescited);
    document.setVersion(version);
    document.setDate(date);
    document.setSimpletitle(simpletitle);
    document.setIsbn(isbn);
    document.setLabel(label);
    document.setNote(note);
    document.setImage("pic/"+user.getUsername()+"/"+image);
    document.setLanguage(language);
    document.setLastsearchtime(new Date());
    document.setEdittime(edittime);
 
    System.out.println("this is a test panel!");
View Full Code Here

  private String commentuser;
  private Commentinfo com= new Commentinfo();
  int row = 0;
 
  public void initaddComment(){
    User user;
    user = ToolBean.getUserSession();
    commentuser=user.getUsername();
    boolean flag=false;
    com.setComdocumentid(commentid);
    com.setCommentcontent(commentcontent);
    date=new Date();
    com.setCommenttime( date);
View Full Code Here

    private String tempPath = ""; // 临时文件目录
    File tempPathFile;
    public void doPost(HttpServletRequest request, HttpServletResponse response)
           throws IOException, ServletException {
          User user = (User)request.getSession().getAttribute("user");
          uploadPath = this.getServletContext().getRealPath("/")+"file\\"+user.getUsername();
          tempPath = this.getServletContext().getRealPath("/")+"file\\buffer\\";
          init_dir(uploadPath);
        response.setContentType("text/html");
        response.setCharacterEncoding("utf-8");
        request.setCharacterEncoding("utf-8");
View Full Code Here

    List list = DBOperate.search("User where username='"+username+"' and password='"+password+"'");
      if(!list.isEmpty()){
        FacesContext facesContext = FacesContext.getCurrentInstance();
                ExternalContext extContext = facesContext.getExternalContext();
                extContext.getSession(true);
                User user = (User) list.get(0);
                extContext.getSessionMap().put("user",user);
        return "welcome?faces-redirect=true";
      }
      else{
        message="用户名或密码错误!";
View Full Code Here

TOP

Related Classes of org.brain.pojos.User

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.