videoautomat
Class AutomatUser
java.lang.Object
User
videoautomat.AutomatUser
public class AutomatUser
- extends User
This class implements the User
of this application. It contains a StoringStock
for
storing the actually rented videos and holds the information which capabilities the user has.
Constructor Summary |
AutomatUser(String user_ID,
char[] passWd,
boolean admin)
Constructs a new AutomatUser . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CAPABILITY_ADMIN
public static final String CAPABILITY_ADMIN
- Key used to get the
ActionCapability
used to start a SaleProcessAdmin
.
- See Also:
- Constant Field Values
AutomatUser
public AutomatUser(String user_ID,
char[] passWd,
boolean admin)
- Constructs a new
AutomatUser
.
- Parameters:
user_ID
- the ID of the new useradmin
- boolean to decide, whether this user has administrator privileges or not
getVideoStock
public UserVideoStock getVideoStock()
- Returns:
- a
StoringStock
containing the rented VideoCassette
s of this user