-
What can we do with a User object?
-
It represents a User of the Auction system
-
Could contain profile information etc., but our current implementation is quite
sparse
-
User has a login ID that cannot be changed
-
User has a password
-
Validate a password using CheckPassword()
-
Change a password using ChangePassword()
-
Note that the semantics of these operations are not given
-
Typically the full specification of an EJB will include documentation
describing the expected behaviour of each method
-
Note that ChangePassword() throws an
"application exception"
-
Application exceptions are not caught in the server
-
Bean must be left in a consistent state
|