package net.explorviz.security.services;

import org.jvnet.hk2.annotations.Service;

/**
 *
 * @author lotzk
 *
 */
@Service
public class UserCrudService {


}

@@ -46,114 +46,1140 @@
 ort 
-org.jvnet.hk2.annotations.Service;%0A%0A/**%0A *%0A * @author lotzk%0A *%0A */%0A@Service%0Apublic class UserCrudService %7B
+java.util.List;%0Aimport net.explorviz.shared.security.User;%0Aimport org.jvnet.hk2.annotations.Service;%0A%0A/**%0A * Injectable service that manages create, read, update and delete operations for %7B@link User%7D%0A * objects.%0A *%0A * @author lotzk%0A *%0A */%0A@Service%0Apublic class UserCrudService %7B%0A%0A  /**%0A   * Persists a new user object.%0A   *%0A   * @param user the user to persist%0A   */%0A  public void saveNewUser(final User user) %7B%0A    // todo: Auto-Generate id%0A  %7D%0A%0A%0A  /**%0A   * Retrieves a user by its id.%0A   *%0A   * @param id the id of the user to find%0A   * @return as %7B@link User%7D object of the user with the given id or %7B@code null%7D, if no such user%0A   *         exists%0A   */%0A  public User getUserById(final Long id) %7B%0A%0A    return null;%0A  %7D%0A%0A  /**%0A   * Retrieves a list of all users, that have a specific role assigned.%0A   *%0A   * @param role role to search for%0A   * @return a list of all users, that have the given role assigned%0A   */%0A  public List%3CUser%3E getUsersByRole(final String role) %7B%0A%0A    return null;%0A  %7D%0A%0A%0A  /**%0A   * Deletes a user.%0A   *%0A   * @param id the id of the user to delete%0A   */%0A  public void deleteUserById(final Long id) %7B%0A%0A  %7D%0A
 %0A%0A%0A%7D

Create UserCrudService dummy for mocking purpose