public class DeviceResourceManager
extends java.lang.Object
| Constructor and Description |
|---|
DeviceResourceManager() |
| Modifier and Type | Method and Description |
|---|---|
Command |
getCommand(java.lang.String id)
Retrieve a specific command object given a command id.
|
java.util.Vector |
getCommands()
Get all the command objects from the repository.
|
Device |
getDevice(java.lang.String user,
java.lang.String type)
Retrieve a Device object given a USERNAME and partial device type.
|
java.util.Vector |
getDeviceFiles(Device device)
Retrieve file objects of all the files uploaded by a client device
|
User |
getDeviceUser(java.lang.String devId)
Retrieve
oracle.lite.resource.User object given a device
id. |
public Command getCommand(java.lang.String id) throws ResourceException
id - Command IdResourceExceptionpublic java.util.Vector getCommands()
throws ResourceException
java.util.Vector containing all commandsResourceExceptionpublic Device getDevice(java.lang.String user, java.lang.String type) throws ResourceException
user - User nametype - Device typeoracle.lite.resource.Device objectoracle.lite.resource.ResourceExceptionResourceExceptionpublic java.util.Vector getDeviceFiles(Device device) throws ResourceException
device - oracle.lite.resource.Device objectjava.util.Vector containing file objectsoracle.lite.resource.ResourceExceptionResourceExceptionpublic User getDeviceUser(java.lang.String devId) throws ResourceException
oracle.lite.resource.User object given a device
id.devId - Device Idoracle.lite.resource.Useroracle.lite.resource.ResourceExceptionResourceException