Examples of User


Examples of chat.model.User

  @Service
  @Transac.Readonly
  public List<Chat> read(Chat c) throws Exception
  {
    Criteria<Chat> _ = data.criteria(Chat.class);
    User me = new User().id(sess.me);

    Criterion out = Restrictions.eq("out", me);
    if (c.in != null)
      out = Restrictions.and(out, // chats from me
        Restrictions.eq("in", c.in));
View Full Code Here

Examples of chatroom.client.dataclass.User

        @Override
        public Component getListCellRendererComponent(
                JList list, Object value, int index,
                boolean isSelected, boolean cellHasFocus) {

            User user = (User) value;
            // Display the text for this item
            String status = user.getStatus();
            URL statusIconURL = getClass().getResource("/images/" + status + ".png");
            ImageIcon statusIcon = new ImageIcon(statusIconURL);
            JLabel statusBall = new JLabel(statusIcon);
            // Set the correct image
            //BufferedImage pic = user.getSmallPic();
            //ImageIcon icon = new ImageIcon(pic);
            this.setIcon(statusIcon);
            this.setText(user.getName());
            //setIcon(ProfilePicResizer.getIcon(user.getSmallPic(), photolen));
            // Draw the correct colors and font
            if (isSelected) {
                // Set the color and font for a selected item
                setBackground(new Color(230, 230, 255));
View Full Code Here

Examples of chatroom.server.dataclass.User

    protected void onPresenceStatus(String from, String to, String status, String show) {
        if (to != null) {
            Jid jid = new Jid(to);
            if (jid.isUser()) {
                Room room = server.getRoom(jid.getRoom());
                User user = server.getUserByConnection(connection);
                if (status != null) {
                    user.setStatus(status);
                }
                user.setShow(show);
                room.broadcastPresence(jid.getName(), null);
            }
        }
    }
View Full Code Here

Examples of chirp.model.User

    }
  }

  @Test
  public void getUserMustReturnUser() {
    User expected = getUserRepository().createUser("testuser", "Test User");
    UserRepresentation actual = usersResource.path("testuser").get(UserRepresentation.class);
    assertEquals(expected.getUsername(), actual.getUsername());
    assertEquals(expected.getRealname(), actual.getRealname());
  }
View Full Code Here

Examples of classes.User

        String username = request.getParameter("username");
        String password = request.getParameter("password");
        String userType = "Admin";

        /* create new user */
        User user = new User(username, password, userType);

        /* instance of database */
        DAO dao = DAO.getInstance();

        /* all fields must be filled && pass must match */
 
View Full Code Here

Examples of cleancoderscom.User

  private List<Object> list(Object... objects) {
    return Arrays.asList(objects);
  }

  public List<Object> query() {
    User loggedInUser = Context.gateKeeper.getLoggedInUser();
    PresentCodecastUseCase useCase = new PresentCodecastUseCase();
    List<PresentableCodecast> presentableCodecasts = useCase.presentCodecasts(loggedInUser);
    List<Object> queryResponse = new ArrayList<Object>();
    for (PresentableCodecast pcc : presentableCodecasts)
      queryResponse.add(makeRow(pcc));
View Full Code Here

Examples of client.User

    private void jTextField6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField6ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField6ActionPerformed

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
         User user1=new User("","","","","",0,0,"","")// Hit Cancel - returns to Login
        Login s=new Login(user1,"");
             this.setVisible(false);
             s.setVisible(true);
            
         
View Full Code Here

Examples of cm.dpassyann.speedDating.model.user.bean.User

  @Override
  public User get(Long id) {
    // Retrieve session from Hibernate
    Session session = sessionFactory.openSession();
    // Retrieve existing person first
    User user = (User) session.get(User.class, id);

    session.close();
    return user;
  }
View Full Code Here

Examples of cn.dreampie.common.model.User

//
//                    return String.valueOf(value);
//                }
//            }
      if (principal != null) {
        User user = (User) principal;
        if (user != null && user.get(property) != null) {
          return String.valueOf(user.get(property));
        }
      }
      return "";
      // property not found, throw
      //throw new TemplateModelException("Property [" + property + "] not found in principal of type [" + principal.getClass().getName() + "]");
View Full Code Here

Examples of cn.dreampie.shiro.model.User

//
//                    return String.valueOf(value);
//                }
//            }
      if (principal != null) {
        User user = (User) principal;
        if (user != null && user.get(property) != null) {
          return String.valueOf(user.get(property));
        }
      }
      return "";
      // property not found, throw
      //throw new TemplateModelException("Property [" + property + "] not found in principal of type [" + principal.getClass().getName() + "]");
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.