common
Class Device

java.lang.Object
  extended by common.Device
Direct Known Subclasses:
MobileDevice

public class Device
extends Object

Implementation of the Device entity. It represents the device on which the Teamshare application is installed. It is associated with an user account. If another user logs in and links the device, the created Device object is different.


Field Summary
 ConnectivityInfo address
          The device's connectivity information: IP address and port.
 long deviceID
          The device's unique identifier, provided when the device is linked.
 String name
          The device's name, selected by the user when linking the device.
 boolean online
          The device's status: true if online, false if offline.
 String publickey
          For security mechanisms, the devices may also have one ore more keys.
 
Constructor Summary
Device()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

deviceID

public long deviceID
The device's unique identifier, provided when the device is linked. It is not visible to the user.


name

public String name
The device's name, selected by the user when linking the device. It is visible to the user when visualizing the list of his devices. It must be unique for each user.


address

public ConnectivityInfo address
The device's connectivity information: IP address and port. ConnectivityInfo has the role of a value object that contains the connectivity attributes. This field is non-null while the device in online and null while offline.


online

public boolean online
The device's status: true if online, false if offline. A device is online when it can connect and communicate with other devices.


publickey

public String publickey
For security mechanisms, the devices may also have one ore more keys. The exact type and usage is described at application level.

Constructor Detail

Device

public Device()