de.fh_mannheim.mm.dms.framework
Class UserList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byde.fh_mannheim.mm.dms.framework.UserList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, IElement, java.util.List, java.util.RandomAccess, java.io.Serializable

public class UserList
extends java.util.ArrayList
implements IElement

This class gives a representation of the userlist.

Version:
$Revision: 1.4 $
Author:
Jan Löffler, mail@jlsoft.de
See Also:
Serialized Form

Constructor Summary
UserList()
          Constructor.
UserList(java.util.ArrayList aList)
          Constructor.
UserList(int nSize)
          Constructor.
 
Method Summary
 void addUser(User user)
          Add a user to list.
 void addUserList(java.util.ArrayList aList)
          Add a user to list.
 boolean containsUser(int nUserID)
          Searches a given user in list.
 void deleteUser(int nUserID)
          Delete a user from list.
 void deleteUser(java.lang.String strUser)
          Delete a user from list.
 User getUser(int nIndex)
          Get user from list.
 org.w3c.dom.Element toElement(org.w3c.dom.Document doc)
          Write information of upload in a xml element.
 org.w3c.dom.Element toElement(org.w3c.dom.Element element, org.w3c.dom.Document doc)
          Write information of upload in a xml element.
 java.lang.String toString()
          Write information of user in a string.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

UserList

public UserList()
Constructor.


UserList

public UserList(int nSize)
Constructor.

Parameters:
nSize - Size of array

UserList

public UserList(java.util.ArrayList aList)
Constructor.

Parameters:
aList - Pre-selected list
Method Detail

addUser

public void addUser(User user)
Add a user to list.

Parameters:
user - User

addUserList

public void addUserList(java.util.ArrayList aList)
Add a user to list.

Parameters:
aList - List with users

containsUser

public boolean containsUser(int nUserID)
Searches a given user in list.

Parameters:
nUserID - User
Returns:
true, if existent

getUser

public User getUser(int nIndex)
Get user from list.

Parameters:
nIndex - Index of list
Returns:
User

deleteUser

public void deleteUser(int nUserID)
Delete a user from list.

Parameters:
nUserID - User

deleteUser

public void deleteUser(java.lang.String strUser)
Delete a user from list.

Parameters:
strUser - User

toElement

public org.w3c.dom.Element toElement(org.w3c.dom.Document doc)
Write information of upload in a xml element.

Specified by:
toElement in interface IElement
Parameters:
doc - XML Document
Returns:
element

toElement

public org.w3c.dom.Element toElement(org.w3c.dom.Element element,
                                     org.w3c.dom.Document doc)
Write information of upload in a xml element.

Specified by:
toElement in interface IElement
Parameters:
element - Root element
doc - XML Document
Returns:
element

toString

public java.lang.String toString()
Write information of user in a string.

Specified by:
toString in interface IElement
Returns:
information