Examples of User


Examples of ke.go.moh.oec.reception.data.User

            if (usernameTextField.getText().isEmpty()) {
                showWarningMessage("You must enter a username before proceeding!", usernameTextField);
                return;
            }
            try {
                userManager.createUser(new User(usernameTextField.getText(), passwordField.getPassword(), adminCheckBox.isSelected()));
                showInformationMessage("User created successfully!", addButton);
            } catch (ExistingUserException ex) {
                Logger.getLogger(AddUserDialog.class.getName()).log(Level.SEVERE, null, ex);
                showWarningMessage(ex.getMessage(), addButton);
            }
View Full Code Here

Examples of kr.or.ioi2002.RMIServer.User

            Contest contest = contestManager.getContest(request);
            if (contest == null) {
                response.sendRedirect("");
                return;
            }
            User user = contestManager.getUser(contest.getId(), userLogin);
            user.getGeneralState().setOutputNow("File not found");
            request.getSession().setAttribute("tab", "General");
            response.sendRedirect("main");
            return;
        }
        int length = fileAsBytes.length;
View Full Code Here

Examples of kr.or.javacafe.member.domain.User

    return "/intro/welcome";
  }

  @RequestMapping("/people")
  public String people(Model model) {
    User param = new User();
    param.setRoleGrpId("G3");

    int intListCount = memberBO.getUserListCount(param);

    param.setStartNum(0);
    param.setEndNum(100);
   
    List<User> objList = memberBO.getUserList(param);
   
    model.addAttribute("objList", objList);
   
View Full Code Here

Examples of lesson07.objects.User

        }

        cats = storage.list(Cat.class);
        if (cats.size() != 20) throw new Exception("Number of cats in storage should be 20!");

        User user = new User();
        user.setAdmin(true);
        user.setAge(23);
        user.setName("Victor");
        user.setBalance(22.23);
        storage.save(user);

        User user1 = storage.get(User.class, user.getId());
        if (!user1.getName().equals(user.getName())) throw new Exception("Users should be equals!");

        user.setAdmin(false);
        storage.save(user);

        User user2 = storage.get(User.class, user.getId());
        if (!user.getAdmin().equals(user2.getAdmin())) throw new Exception("Users should be updated!");

        storage.delete(user1);

        User user3 = storage.get(User.class, user.getId());

        if (user3 != null) throw new Exception("User should be deleted!");

        connection.close();
    }
View Full Code Here

Examples of lesson7.objects.User

        }

        cats = storage.list(Cat.class);
        if (cats.size() != 20) throw new Exception("Number of cats in storage should be 20!");

        User user = new User();
        user.setAdmin(true);
        user.setAge(23);
        user.setName("Victor");
        user.setBalance(22.23);
        user.setId(29);
        storage.save(user);

        User user1 = storage.get(User.class, user.getId());
        if (!user1.getName().equals(user.getName())) throw new Exception("Users should be equals!");

        user.setAdmin(false);
        storage.save(user);
        User user2 = storage.get(User.class, user.getId());
        if (!user.getAdmin().equals(user2.getAdmin())) throw new Exception("Users should be updated!");

        storage.delete(user1);

        User user3 = storage.get(User.class, user.getId());

        if (user3 != null) throw new Exception("User should be deleted!");

        connection.close();
    }
View Full Code Here

Examples of logicLayer.User

public class ClientChatThread extends Thread
{
  private User user;
  private ClassroomsManager cm;
  public ClientChatThread(String username, Socket clientSocket, DataOutputStream os, DataInputStream is, ClassroomsManager cm) {
    user = new User(username, clientSocket, os, is);
    this.cm=cm;
  }
View Full Code Here

Examples of loxia.model.User

  private UserDao userDao; 

  @Transactional(readOnly = true)
  public UserDetails loadUserByUsername(String userName)
      throws UsernameNotFoundException, DataAccessException {
    User user = userDao.findByLoginName(userName);
    if(user == null) throw new UsernameNotFoundException(userName + " is not existed.");
    LoxiaUserDetails result = new LoxiaUserDetails();
    User u = new User();
    OperatingUnit ou = new OperatingUnit();
    OperatingUnitType ouType = new OperatingUnitType();
    try {
      PropertyUtils.copyProperties(user.getOu().getType(), ouType);
      ou.setId(user.getOu().getId());
      ou.setCode(user.getOu().getCode());
      ou.setName(user.getOu().getName());
      ou.setIsAvailable(user.getOu().getIsAvailable());
      u.setId(user.getId());
      u.setLoginName(user.getLoginName());
      u.setUserName(user.getUserName());
      u.setPassword(user.getPassword());
      u.setIsAccNonExpired(user.getIsAccNonExpired());
      u.setIsAccNonLocked(user.getIsAccNonLocked());
      u.setIsPwdNonExpired(user.getIsPwdNonExpired());
      u.setIsAvailable(user.getIsAvailable());
      u.setIsSystem(user.getIsSystem());
    } catch (Exception e) {
      e.printStackTrace();
      throw new RuntimeException("Copy bean values error.");
    }
    ou.setType(ouType);
    u.setOu(ou);
    result.setUser(u);
   
    List<LoxiaGrantedAuthority> authorities = new ArrayList<LoxiaGrantedAuthority>();
    Map<String,Set<Long>> map = new HashMap<String, Set<Long>>();
    for(UserRole ur: user.getUserRoles()){
View Full Code Here

Examples of lv.odylab.evemanage.domain.user.User

    }

    @Test
    public void testManyApiKeys() throws IOException, ServletException {
        for (int i = 0; i < 500; i++) {
            User user = new User();
            userDao.put(user);
            Key<User> userKey = new Key<User>(User.class, user.getId());
            for (int j = 0; j < 10; j++) {
                ApiKey apiKey = new ApiKey();
                apiKey.setUser(userKey);
                apiKeyDao.putWithoutChecks(apiKey);
            }
View Full Code Here

Examples of ma.glasnost.orika.test.community.issue20.User

  @Before
  public void init() {
    UsrGroup group = new UsrGroup("main");
    getSession().save(group);

    User user1 = new User("User1");
    user1Id = getSession().save(user1);

    User user2 = new User("user2");
    getSession().save(user2);

    group.addUser(user1);
    group.addUser(user2);
View Full Code Here

Examples of ma.glasnost.orika.test.community.issue21.User

  @Before
  public void init() {
    UserGroup group = new UserGroup("main");
    groupId = getSession().save(group);

    User user1 = new User("User1");
    user1Id = getSession().save(user1);

    User user2 = new User("user2");
    user2Id = getSession().save(user2);

    group.addUser(user1);
    group.addUser(user2);
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.