org.dartra.framework
Interface User

All Superinterfaces:
Persistent
All Known Implementing Classes:
StandardUser

public interface User
extends Persistent

A unique user of the system.

User object have reference semantics. Each User object represents a unique user of the system.

Author:
Erwin Vervaet

Method Summary
 void addDartsSet(DartsSet dartsSet)
          Adds a DartsSet to the collection owned by the user.
 boolean checkPassword(java.lang.String pw)
          Check the password for the user.
 DartsSet getDartsSet(int index)
          Returns the DartsSet at the given index.
 java.util.Vector getDartsSets()
          Returns the collection of darts sets owned by the user.
 java.lang.String getPassword()
          Get the password of the user, probably in an incrypted form.
 java.lang.String getUserId()
          Return the user id (which is unique) of this user.
 java.lang.String getUserName()
          Returns the username of this user.
 boolean isFemale()
          Returns true when this user is female, false otherwise (for males).
 boolean isLeftHanded()
          Is this a left handed user?
 void setPassword(java.lang.String pw)
          Set the password of the user.
 void setUserName(java.lang.String name)
          Set the username of this user.
 
Methods inherited from interface org.dartra.framework.Persistent
getId, setId
 

Method Detail

getUserId

public java.lang.String getUserId()

Return the user id (which is unique) of this user.


setUserName

public void setUserName(java.lang.String name)

Set the username of this user.


getUserName

public java.lang.String getUserName()

Returns the username of this user.


setPassword

public void setPassword(java.lang.String pw)

Set the password of the user.


getPassword

public java.lang.String getPassword()

Get the password of the user, probably in an incrypted form.


checkPassword

public boolean checkPassword(java.lang.String pw)

Check the password for the user.


addDartsSet

public void addDartsSet(DartsSet dartsSet)

Adds a DartsSet to the collection owned by the user.


getDartsSet

public DartsSet getDartsSet(int index)

Returns the DartsSet at the given index.


getDartsSets

public java.util.Vector getDartsSets()

Returns the collection of darts sets owned by the user. The resulting collection contains DartsSet objects.


isFemale

public boolean isFemale()

Returns true when this user is female, false otherwise (for males).


isLeftHanded

public boolean isLeftHanded()

Is this a left handed user?