Interface Users
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.
- Since:
- 3.1.170
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Removes all users existing in this users model.@Nullable UsergetUserByLogin(String login) Returns the user specified by the givenloginornullif no user exists with the given login.User[]getUsers()Returns an array of all existing users.iterator()Returns an iterator of all existing users.voidremoveUser(User user) Removes the given user from the list ofusersvoidsave()Saves this users model to the belonging xml file
-
Method Details
-
getUsers
User[] getUsers()Returns an array of all existing users.- Since:
- 3.1.170
-
iterator
Returns an iterator of all existing users.- Since:
- 3.1.170
-
getUserByLogin
Returns the user specified by the givenloginornullif no user exists with the given login.- Returns:
- the user with the given
loginornull - Since:
- 3.1.170
-
addUser
- Parameters:
login- the login for the new userpassword- the password for the new user- Returns:
- the created user
- Since:
- 3.1.170
-
removeUser
Removes the given user from the list ofusers- Since:
- 3.1.170
- See Also:
-
clear
void clear()Removes all users existing in this users model.- Since:
- 3.1.170
- See Also:
-
save
Saves this users model to the belonging xml file- Throws:
IOException- Since:
- 3.1.170
-