Package org.pau.assetmanager.entities

Examples of org.pau.assetmanager.entities.User


  @Command
  public void addUser() {
    if (Objects.equal(createUserPasswordFirst, createUserPasswordSecond)) {
      if (checkUserFieldComplexity(createUserUsername)
          && checkUserFieldComplexity(createUserPasswordFirst)) {
        User user = new User();
        user.setUsername(createUserUsername);
        user.setPassword(createUserPasswordFirst);
        UsersBusiness.persist(user);
        setCreateUserWindowToDefaults();
        users = UsersBusiness.getUsers();
        selectedUser = user;
      } else {
View Full Code Here


   * @param username of the user to create and persist
   * @param password of the user to create and persist
   * @return the user created and persisted with username 'username' and password 'password'
   */
  public static User persistUserByUsernameAndPassword(String username, String password){
    User user = new User();
    user.setUsername(username);
    user.setPassword(password);
    persist(user);
    return user;
  }
View Full Code Here

 
  /**
   * @return returns all the clients from the current user logged in the database
   */
  public static List<Client> getClients() {
    User user = UserUtil.getExecutionUser();
    return getClientsFromUser(user);
  }
View Full Code Here

TOP

Related Classes of org.pau.assetmanager.entities.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.