Videoautomat

videoautomat
Class AutomatUser

java.lang.Object
  |
  +--users.User
        |
        +--videoautomat.AutomatUser
All Implemented Interfaces:
Comparable, Serializable

public class AutomatUser
extends users.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.

See Also:
Serialized Form

Field Summary
static String CAPABILITY_ADMIN
          Key used to get the ActionCapability used to start a SaleProcessAdmin.
 
Fields inherited from class users.User
DEFAULT_PASSWORD_GARBLER, m_lhListeners
 
Constructor Summary
AutomatUser(String user_ID, char[] passWd, boolean admin)
          Constructs a new AutomatUser.
 
Method Summary
 data.ooimpl.StoringStockImpl getVideoStock()
           
 
Methods inherited from class users.User
addCapabilityDataListener, compareTo, equals, fireCapabilitiesAdded, fireCapabilitiesReplaced, garblePassWD, getCapability, getCapabilityCheckBox, getCharFromString, getGlobalPassWDGarbler, getName, getStringFromChar, isPassWd, loggedOff, loggedOn, removeCapabilityDataListener, setCapabilities, setCapability, setGlobalPassWDGarbler, setPassWd, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, 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 data.ooimpl.StoringStockImpl getVideoStock()
Returns:
a StoringStock containing the rented VideoCassettes of this user

Videoautomat