Videoautomat

videoautomat
Class AutomatUser

java.lang.Object
  extended by User
      extended by 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.


Field Summary
static String CAPABILITY_ADMIN
          Key used to get the ActionCapability used to start a SaleProcessAdmin.
 
Constructor Summary
AutomatUser(String user_ID, char[] passWd, boolean admin)
          Constructs a new AutomatUser.
 
Method Summary
 UserVideoStock getVideoStock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CAPABILITY_ADMIN

public static final String CAPABILITY_ADMIN
Key used to get the ActionCapability used to start a SaleProcessAdmin.

See Also:
Constant Field Values
Constructor Detail

AutomatUser

public AutomatUser(String user_ID,
                   char[] passWd,
                   boolean admin)
Constructs a new AutomatUser.

Parameters:
user_ID - the ID of the new user
admin - boolean to decide, whether this user has administrator privileges or not
Method Detail

getVideoStock

public UserVideoStock getVideoStock()
Returns:
a StoringStock containing the rented VideoCassettes of this user

Videoautomat