|
Poseidon for UMLTM UMLdoc |
|||||||||
|
de.mbohlen.uml2ejb.samples.carrental.admins
Can create administrative users of the application and authenticate as such.
|
|||
public
String
|
authenticateAsAdministrator(String name
,
String accountNo
,
String password
)
Authenticates a user as administrator. |
||
public
String
|
createAdministrator(String name
,
String accountNo
,
String password
)
Creates a new administrator. |
|
public
String
authenticateAsAdministrator(String name
,
String accountNo
,
String password
)
Authenticates a user as administrator.
When there is no single object of this type in the database, the method creates a new one and stores it. So, be careful to remember the first password that you give!
accountNo
- the account number of the potential administrator
password
- the password to authenticate
public
String
createAdministrator(String name
,
String accountNo
,
String password
)
Creates a new administrator. Works only if there is no other administrator object in the system.
name
- The display name of the new administrator
accountNo
- the account number of the potential administrator
password
- the password to authenticate
|
Poseidon for UMLTM UMLdoc |
|||||||||
|