|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.samples.pbw.ejb.CustomerMgr
public class CustomerMgr
The CustomerMgr provides a transactional facade for access to a user DB as well as simple authentication support for those users.
Constructor Summary | |
---|---|
CustomerMgr()
|
Method Summary | |
---|---|
Customer |
createCustomer(String customerID,
String password,
String firstName,
String lastName,
String addr1,
String addr2,
String addrCity,
String addrState,
String addrZip,
String phone)
Create a new user. |
Customer |
getCustomer(String customerID)
Retrieve an existing user. |
Customer |
updateUser(String customerID,
String firstName,
String lastName,
String addr1,
String addr2,
String addrCity,
String addrState,
String addrZip,
String phone)
Update an existing user. |
String |
verifyUserAndPassword(String customerID,
String password)
Verify that the user exists and the password is value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomerMgr()
Method Detail |
---|
public Customer createCustomer(String customerID, String password, String firstName, String lastName, String addr1, String addr2, String addrCity, String addrState, String addrZip, String phone)
customerID
- The new customer ID.password
- The password for the customer ID.firstName
- First name.lastName
- Last name.addr1
- Address line 1.addr2
- Address line 2.addrCity
- City address information.addrState
- State address information.addrZip
- Zip code address information.phone
- User's phone number.
public Customer getCustomer(String customerID)
customerID
- The customer ID.
public Customer updateUser(String customerID, String firstName, String lastName, String addr1, String addr2, String addrCity, String addrState, String addrZip, String phone)
customerID
- The customer ID.firstName
- First name.lastName
- Last name.addr1
- Address line 1.addr2
- Address line 2.addrCity
- City address information.addrState
- State address information.addrZip
- Zip code address information.phone
- User's phone number.
public String verifyUserAndPassword(String customerID, String password)
customerID
- The customer IDpassword
- The password for the customer ID
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |