Package com.abiquo.server.core.enterprise

Examples of com.abiquo.server.core.enterprise.UserDto


      String username = env.user.getName();
      env.user.setName("Manolo");
      env.user.update();

      // Recover the updated user
      UserDto updated = env.enterpriseApi.getUser(env.enterprise.unwrap(), env.user.getId());

      assertEquals(updated.getName(), "Manolo");

      env.user.setName(username);
      env.user.update();
   }
View Full Code Here


         this.authType = authType;
         return this;
      }

      public User build() {
         UserDto dto = new UserDto();
         dto.setActive(active);
         dto.setAuthType(authType);
         dto.setDescription(description);
         dto.setEmail(email);
         dto.setLocale(locale);
         dto.setName(name);
         dto.setNick(nick);
         dto.setPassword(password);
         dto.setSurname(surname);
         User user = new User(context, dto);
         user.enterprise = enterprise;
         user.role = role;

         return user;
View Full Code Here

    *      http://community.abiquo.com/display/ABI20/UserResource#UserResource-
    *      Retrieveauser</a>
    * @return User with the given id or <code>null</code> if it does not exist.
    */
   public User getUser(final Integer id) {
      UserDto user = context.getApi().getEnterpriseApi().getUser(target, id);
      return wrap(context, User.class, user);
   }
View Full Code Here

TOP

Related Classes of com.abiquo.server.core.enterprise.UserDto

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.