public class UserAccountList
extends java.lang.Object
Constructor and Description |
---|
UserAccountList()
Create a user account list.
|
Modifier and Type | Method and Description |
---|---|
void |
addUser(UserAccount user)
Add a user to the list of accounts.
|
UserAccount |
findUser(java.lang.String user)
Find the required user account details.
|
UserAccount |
getUserAt(int idx)
Return the specified user account details
|
boolean |
hasUser(java.lang.String user)
Determine if the specified user account exists in the list.
|
int |
numberOfUsers()
Return the number of defined user accounts.
|
void |
removeAllUsers()
Remove all user accounts from the list.
|
void |
removeUser(java.lang.String user)
Remvoe the specified user account from the list.
|
void |
removeUser(UserAccount userAcc)
Remvoe the specified user account from the list.
|
java.lang.String |
toString()
Return the user account list as a string.
|
public final void addUser(UserAccount user)
user
- UserAccountpublic final UserAccount findUser(java.lang.String user)
user
- Stringpublic final boolean hasUser(java.lang.String user)
user
- Stringpublic final UserAccount getUserAt(int idx)
idx
- intpublic final int numberOfUsers()
public final void removeAllUsers()
public final void removeUser(UserAccount userAcc)
userAcc
- UserAccountpublic final void removeUser(java.lang.String user)
user
- Stringpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.