public class PersonSample extends LoginSample
connector, pField, uName, url
Constructor and Description |
---|
PersonSample() |
PersonSample(TCLFacade connector) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createUser(int index) |
void |
deletePerson(java.lang.String personID)
Delete a user from the database based on its object id.
|
WSPersonBean[] |
getAllUsers()
Return all users in the database in an array.
|
WSPersonEditBean |
getPersonEdit(java.lang.String personID)
Get a bean of a user based on his object id.
|
WSPersonEditBean |
getPersonEditByLoginName(java.lang.String loginName)
Get a bean of a user based on his login name.
|
static void |
main(java.lang.String[] args)
Demonstrator for how to add, view, modify, and delete users.
|
void |
printPersons(WSPersonBean[] allPersons) |
checkVersion, handleTCLFacadeException, login, login, run, startTime, stopTime
public PersonSample()
public PersonSample(TCLFacade connector)
public WSPersonBean[] getAllUsers()
public void printPersons(WSPersonBean[] allPersons)
public WSPersonEditBean getPersonEdit(java.lang.String personID)
personID
- the object id of the userpublic WSPersonEditBean getPersonEditByLoginName(java.lang.String loginName)
loginName
- the login name of the userpublic void deletePerson(java.lang.String personID)
personID
- the object id of the user to be deleted.public java.lang.String createUser(int index)
public static void main(java.lang.String[] args)
args
-