public interface Users
Modifier and Type | Method and Description |
---|---|
User |
addUser(String login,
String password)
|
void |
clear()
Removes all users existing in this users model.
|
User |
getUserByLogin(String login)
Returns the user specified by the given
login or null if no user exists with the
given login. |
User[] |
getUsers()
Returns an array of all existing users.
|
Iterator<User> |
iterator()
Returns an iterator of all existing users.
|
void |
removeUser(User user)
Removes the given user from the list of
users |
void |
save()
Saves this users model to the belonging xml file
|
User[] getUsers()
@Nullable User getUserByLogin(String login)
login
or null
if no user exists with the
given login.login
or null
User addUser(String login, String password)
login
- the login for the new userpassword
- the password for the new uservoid removeUser(User user)
users
#addUser(User)
,
getUsers()
void clear()
getUsers()
void save() throws IOException
IOException
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500