com.tootsville.server
Class DoorKey

java.lang.Object
  extended by org.starhope.appius.util.ManagedReferenceHolder
      extended by org.starhope.appius.sql.SQLPeerDatum
          extended by com.tootsville.server.DoorKey

public class DoorKey
extends SQLPeerDatum

Author:
brpocock

Constructor Summary
DoorKey(Person u, Room r)
          Create a new Door Key for the specified room & user.
DoorKey(String keyCode)
           
 
Method Summary
 
Methods inherited from class org.starhope.appius.sql.SQLPeerDatum
changed, flush, get, prepare, set, set, toJSON
 
Methods inherited from class org.starhope.appius.util.ManagedReferenceHolder
deref, setRef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoorKey

public DoorKey(String keyCode)
        throws NotFoundException
Throws:
NotFoundException

DoorKey

public DoorKey(Person u,
               Room r)
        throws DataException
Create a new Door Key for the specified room & user. The door key will be valid for 15 minutes.

Throws:
DataException - if the key can't be created in the database for some reason