dsg.smart
Interface SmartDB


public interface SmartDB

Represents connection to SMART Central database, once the application has logged in. All reading and writing happens through this interface (and will be logged by SMART Central somewhere). If an operation is not permitted by a particular login, it throws an exception.


Method Summary
 void addUser(UserID userID, Permissions permissions)
          Adds a user (with permissions) to the system
 void checkinHandheld(java.lang.String handheldID)
          Check in a Handheld
 void checkoutHandheld(java.lang.String handheldID, UserID userID, dsg.smart.HandheldConfiguration conf)
          Check out an Handheld: Puts a ConfigurationRecord into the system.
 Timeseries fetchTimeseries(java.lang.String handheldID, int instrument)
          Get a timeseries handle --- by iPaq on which it was recorded, and instrument within the ipaq.
 Permissions getPermissions()
          Returns logged in user's permissions
 SmartDB loginUser(UserID userID)
          Logs in a user without password; availabe if allowAuthenticate.
 void setPermissions(UserID userID, Permissions permissions)
          Changes user permissions
 

Method Detail

getPermissions

public Permissions getPermissions()
Returns logged in user's permissions


addUser

public void addUser(UserID userID,
                    Permissions permissions)
             throws SmartException
Adds a user (with permissions) to the system

Throws:
SmartException

setPermissions

public void setPermissions(UserID userID,
                           Permissions permissions)
                    throws SmartException
Changes user permissions

Throws:
SmartException

loginUser

public SmartDB loginUser(UserID userID)
Logs in a user without password; availabe if allowAuthenticate.


checkoutHandheld

public void checkoutHandheld(java.lang.String handheldID,
                             UserID userID,
                             dsg.smart.HandheldConfiguration conf)
                      throws SmartAccessException
Check out an Handheld: Puts a ConfigurationRecord into the system. The user must be authorized (in Smart Database) to check out the Handheld with that configuration. Throws SmartAccessException if user is not authorized.

Throws:
SmartAccessException

checkinHandheld

public void checkinHandheld(java.lang.String handheldID)
Check in a Handheld


fetchTimeseries

public Timeseries fetchTimeseries(java.lang.String handheldID,
                                  int instrument)
Get a timeseries handle --- by iPaq on which it was recorded, and instrument within the ipaq.