org.ifeth.sehr.client.api
Class SEHRZone

java.lang.Object
  extended byorg.ifeth.sehr.client.api.SEHRZone

public class SEHRZone
extends java.lang.Object

This object handles some zone information of the SEHR system.

The use case of this object is to get some informations about the zone the server is working for. A zone may have one or more communities (named centers) working with their own integrated care databases. Each user of a zone may be assigned to one or more of these centers (as a member). The centers are presenting/offering installed SEHR and 3rd party services/ applications to its members (users).
Note: This class contains a main method to run a simple test.

Author:
hansjhaase

Nested Class Summary
 class SEHRZone.CenterVector
           
 
Constructor Summary
SEHRZone()
          Parameterless constructor
SEHRZone(SEHRRemote session)
          Constructor using an already initialized session based on a SEHRRemote object
SEHRZone(java.lang.String ip, int port)
          Constructor with parameters to connect to a SEHR server by LAN
 
Method Summary
 void addCenter(NetCenter center)
           
 boolean connect()
          Connect this object to the SEHR host Note: This objects requires the SEHRREmote object which mangages the connections from a clien tto host.
 int countCenters()
           
 NetCenter getCenter(int index)
           
 java.util.Vector getCenterList()
           
 java.util.Vector getCenterList(int zoneid)
           
 java.lang.String getName()
           
 java.lang.String getTitle()
           
 java.util.Vector listCenter(int zoneid)
          Get list of registered centers of a SEHR host
static void main(java.lang.String[] args)
          For testing purposes this class should be executed within the workspace Eclipse.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SEHRZone

public SEHRZone()
Parameterless constructor


SEHRZone

public SEHRZone(java.lang.String ip,
                int port)
Constructor with parameters to connect to a SEHR server by LAN


SEHRZone

public SEHRZone(SEHRRemote session)
Constructor using an already initialized session based on a SEHRRemote object

Method Detail

listCenter

public java.util.Vector listCenter(int zoneid)
Get list of registered centers of a SEHR host


connect

public boolean connect()
Connect this object to the SEHR host

Note: This objects requires the SEHRREmote object which mangages the connections from a clien tto host. If the SEHRRemote object is not connected it will be done here.
This object sets a permanent connection due to prepared statements!


getCenterList

public java.util.Vector getCenterList()

getCenterList

public java.util.Vector getCenterList(int zoneid)

countCenters

public int countCenters()

addCenter

public void addCenter(NetCenter center)

getCenter

public NetCenter getCenter(int index)

getName

public java.lang.String getName()

getTitle

public java.lang.String getTitle()

toString

public java.lang.String toString()

main

public static void main(java.lang.String[] args)
For testing purposes this class should be executed within the workspace Eclipse.

Instruction:
1)
To test the module get a valid IP/Port pair of a running SEHR server and modify parameters below
2)
Run this module