Method Summary |
|
public boolean | delete(String username) This method deletes a given user.
Parameters: username - Username of the user to be deleted. |
public boolean | existsUser(String username) This method checks the exist of an user. |
public Collection<User> | findAll() This method finds all user. |
public Collection<User> | findByName(String name) This method finds an User by name.
Parameters: name - The name of wanted User. |
public User | findByPrimaryKey(String username) This method finds an User by its primarykey.
Parameters: username - Primarykey of wanted User. |
public Collection<User> | findByUserName(String username) This method finds an User by username.
Parameters: username - The username of wanted User. |
public Collection<User> | findByUserNameAndName(String username, String name) This method finds an User by username and name.
Parameters: username - The username of wanted user. Parameters: name - The name of wanted user. |
public boolean | store(User user) This method persists the user object.
Parameters: user - User, which should be stored in a database. |
public boolean | validateUser(String username, String password) Validates an username and a password.
Parameters: username - Username of the User to be validate. Parameters: password - Password of the User to be validate. |