|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Users
Interface representing a users model belonging to the users.xml file specified by the param (DOCUMENT_NAME.users) in service.ini of permission service. This interfaces provides methods to access, add and remove users.
Method Summary | |
---|---|
User |
addUser(String login,
String password)
Creates a new user with the given login and password
and adds it to the list of users |
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 |
Method Detail |
---|
User[] getUsers()
Iterator<User> iterator()
@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
and password
and adds it to the list of users
login
- the login for the new userpassword
- the password for the new user
void removeUser(User user)
users
Users.addUser(User)
,
Users.getUsers()
void clear()
Users.getUsers()
void save() throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |