com.soebes.subversion.sapm
Class Users
java.lang.Object
com.soebes.subversion.sapm.Users
public class Users
- extends Object
Convenience class for the grammar to handle a list of User
s.
- Author:
- Karl Heinz Marbaise
Constructor Summary |
Users()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
usersList
private ArrayList<User> usersList
Users
public Users()
setUsersList
public void setUsersList(ArrayList<User> usersList)
getUsersList
public ArrayList<User> getUsersList()
add
public void add(User user)
- Add a single user to the list of users.
- Parameters:
user
- The user which will be added.
hasUser
public boolean hasUser(String userName)
- Check to see if a given user name is within
the list of users.
Checking will be done case sensitive.
- Parameters:
userName
- The name of the user which should be checked for.
- Returns:
- true if the user has been found false otherwise.
getUser
public User getUser(String userName)
- Get the particular User instance if the user
can be found. Null otherwise.
- Parameters:
userName
- The name for which we search
in the list of users.
- Returns:
- The instance of the particular user
or null otherwise.
Copyright © 2010-2011 SoftwareEntwicklung Beratung Schulung. All Rights Reserved.