コード例 #1
0
  private static void login() {
    User user = userManagementServiceRemote.login("elouefnijamila", "123");
    if (user != null) {

      System.out.println("OK");
    }
  }
コード例 #2
0
 private static void createUserTest() {
   User user = new User();
   user.setLogin("elouefnijamila");
   user.setPassword("123");
   user.setNameUser("Jamila");
   user.setFirstNameUser("El Ouefni");
   userManagementServiceRemote.createUser(user);
 }
コード例 #3
0
 private static void getRoles() {
   List<Role> roles = userManagementServiceRemote.getRoles();
   System.out.println(roles.size());
 }
コード例 #4
0
 private static void createRoleTest() {
   Role role = new Role();
   role.setLabelRole("Medical Staff");
   userManagementServiceRemote.createRole(role);
 }
コード例 #5
0
 private static void findByIdUserTest() {
   User user = userManagementServiceRemote.findUserById(1L);
 }
コード例 #6
0
 private static void updateUserTest() {
   User user = userManagementServiceRemote.findUserById(1L);
   user.setRoleUser(userManagementServiceRemote.findRoleById(3L));
   userManagementServiceRemote.updateUser(user);
 }