com.soebes.subversion.sapm
Class Users

java.lang.Object
  extended by com.soebes.subversion.sapm.Users

public class Users
extends Object

Convenience class for the grammar to handle a list of Users.

Author:
Karl Heinz Marbaise

Field Summary
private  ArrayList<User> usersList
           
 
Constructor Summary
Users()
           
 
Method Summary
 void add(User user)
          Add a single user to the list of users.
 User getUser(String userName)
          Get the particular User instance if the user can be found.
 ArrayList<User> getUsersList()
           
 boolean hasUser(String userName)
          Check to see if a given user name is within the list of users.
 void setUsersList(ArrayList<User> usersList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

usersList

private ArrayList<User> usersList
Constructor Detail

Users

public Users()
Method Detail

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.