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 TypeMethodDescriptionvoid
clear()
Removes all users existing in this users model.@Nullable User
getUserByLogin
(String login) Returns the user specified by the givenlogin
ornull
if no user exists with thegiven login.User[]
getUsers()
Returns an array of all existing users.iterator()
Returns an iterator of all existing users.void
removeUser
(User user) Removes the given user from the list ofusers
void
save()
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 givenlogin
ornull
if no user exists with thegiven login.- Returns:
- the user with the given
login
ornull
- 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
-