Examples of User


Examples of wbbs.domain.User

        return new TemplateResult(this);
    }

    @Action(".do")
    public Object execute(String id, String pwd) throws SQLException {
        User user = userService.findUser(id);
        notNull(user, "用户名错误");
        byte[] md5 = Utils.md5(pwd);
        affirm(Arrays.equals(md5, user.pwd), "密码错误");
        loginService.setLoginUserId(id);
        return ok();
View Full Code Here

Examples of wblog.domain.User

                        while (rs.next()) {
                            Comment comment = new Comment();
                            comment.id = rs.getLong("Comment.id");
                            comment.content = rs.getString("content");
                            comment.postDate = rs.getTimestamp("postDate");
                            comment.author = new User();
                            comment.author.id = rs.getString("User.id");
                            comment.author.name = rs.getString("User.name");
                            comment.author.tags = rs.getString("User.tags");
                            list.add(comment);
                        }
View Full Code Here

Examples of webapp.SimpleLogin.User

            // HSQL in memory database
            DatabaseManager dbm = DatabaseManager.getDatabaseManager("users", 5, "org.hsqldb.jdbcDriver", "jdbc:hsqldb:mem:users", "sa", "");
           
            dbm.executeUpdate("create memory table users(username varchar(30), password varchar(30), first_name varchar(40), last_name varchar(40), roles varchar(100))");
           
            dbm.saveObject(new User("admin", "b8fOPfDKETezXTCgqbtF", "Admin", null, "admin, create, delete"));
            dbm.saveObject(new User("jsmith", "njiaJzLtntWp6abHfRtU", "John", "Smith", "user"));
           
            config.getServletContext().setAttribute("databaseManager", dbm);
          }
        catch (Exception e)
          {
View Full Code Here

Examples of weblogic.security.acl.User

    if (ssl == false)
    {
      return null;
    }
   
    User result = null;
   
    Certificate cert = certs[0];
   
    Entity holder = cert.getHolder();
View Full Code Here

Examples of webninja.User

    public void setSeverity(String severity) {
        codeTrack.selectOption(By.name("bug_data[Severity]"), severity);
    }

    public void assignTo(String userName) {
        User user = userRepository.getUserById(userName);
        String name = user == null ? userName : user.getName();
        codeTrack.selectOption(By.name("bug_data[Assign_To]"), name);
    }
View Full Code Here

Examples of weibo4j.User

        if(file==null){
          System.out.println("file is null");
          System.exit(-1);
        }
       
        User user = weibo.updateProfileImage(file);

        System.out.println("Successfully upload the status to ["
            + user.getName() + "].");
       
      } catch (Exception e1) {
        e1.printStackTrace();
      }
    } catch (Exception ioe) {
View Full Code Here

Examples of weibo4j.model.User

   * @see <a
   *      href="http://open.weibo.com/wiki/2/friendships/create">friendships/create</a>
   * @since JDK 1.5
   */
  public User createFriendshipsById(String uid) throws WeiboException {
    return new User(Weibo.client.post(
        WeiboConfig.getValue("baseURL") + "friendships/create.json",
        new PostParameter[] { new PostParameter("uid", uid) })
        .asJSONObject());
  }
View Full Code Here

Examples of winterwell.jtwitter.Twitter.User

  @Override
  public void createPartControl(Composite parent) {

    parent.setLayout(new FormLayout());

    User user = new User("ToaoT");
    try {
      user = TwitterFactory.getTwitter().getUser("ToaoT");
    } catch (Exception e) {
      e.printStackTrace();
      System.out.println("Excpetion calling the Twitter API.");
    }

    // Screen name
    text_1 = new Text(parent, SWT.BORDER | SWT.SINGLE);
    FormData fd = new FormData();
    fd.top = new FormAttachment(0, 49);
    fd.right = new FormAttachment(100, -123);
    text_1.setLayoutData(fd);
    String temp = user.getScreenName();
    text_1.setText((temp == null) ? "{screen name}" : temp);

    // Location
    text_2 = new Text(parent, SWT.BORDER | SWT.SINGLE);
    fd.bottom = new FormAttachment(text_2, -6);
    fd.left = new FormAttachment(text_2, 0, SWT.LEFT);
    fd = new FormData();
    fd.top = new FormAttachment(0, 74);
    fd.left = new FormAttachment(0, 10);
    fd.right = new FormAttachment(100, -123);
    text_2.setLayoutData(fd);
    temp = user.getLocation();
    text_2.setText((temp == null) ? "{location}" : temp);

    // Web site
    text_3 = new Text(parent, SWT.BORDER | SWT.SINGLE);
    fd.bottom = new FormAttachment(text_3, -6);
    fd = new FormData();
    fd.top = new FormAttachment(0, 99);
    fd.left = new FormAttachment(0, 10);
    fd.right = new FormAttachment(100, -123);
    text_3.setLayoutData(fd);
    URI temp2 = user.getWebsite();
    text_3.setText((temp2 == null) ? "{web site}" : temp2.toASCIIString());

    // Description
    text_4 = new Text(parent, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.CANCEL | SWT.MULTI);
    fd.bottom = new FormAttachment(text_4, -6);
    fd = new FormData();
    fd.height = 50;
    fd.top = new FormAttachment(0, 124);
    fd.left = new FormAttachment(0, 10);
    fd.right = new FormAttachment(100, -10);
    fd.bottom = new FormAttachment(100, -281);
    text_4.setLayoutData(fd);
    temp = user.getDescription();
    text_4.setText((temp == null) ? "{description}" : temp);
   
    Canvas canvas = new Canvas(parent, SWT.BORDER | SWT.NO_REDRAW_RESIZE);
    FormData fd_canvas = new FormData();
    fd_canvas.bottom = new FormAttachment(text_3, 0, SWT.BOTTOM);
View Full Code Here

Examples of xnap.plugin.nap.net.User

  }
    }

    public void received()
    {
  User u = server.getUser(nick);
  u.setClientInfo(clientInfo);
  u.setConnectDuration(connectDuration);
  u.setDownloadCount(downloadCount);
  u.setFileCount(sharedCount);
  u.setIP(ip);
  u.setLevel(userLevel);
  u.setLinkSpeed(linkSpeed);
  u.setStatus(status);
  u.setUploadCount(uploadCount);

  u.notifyWhoisReceived();
 
  StringBuffer sb = new StringBuffer();
  sb.append("=== whois " + nick + " ===");
  sb.append(nick);
  sb.append("server: ");
View Full Code Here

Examples of xregistry.group.User

            for(String resourceID:authorizedResource.keySet()){
                addAccessibleResource(resourceID, authorizedResource.get(resourceID));
            }
        }
       
        User user = groupManager.getUser(userName );
        Map<String,String> authorizedResource =user.getAuthorizedResources();
        for(String resourceID:authorizedResource.keySet()){
            addAccessibleResource(resourceID, authorizedResource.get(resourceID));
        }
    }
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.