|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ifeth.sehr.client.api.SEHRZone
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.
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 |
public SEHRZone()
public SEHRZone(java.lang.String ip, int port)
public SEHRZone(SEHRRemote session)
Method Detail |
public java.util.Vector listCenter(int zoneid)
public boolean connect()
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!
public java.util.Vector getCenterList()
public java.util.Vector getCenterList(int zoneid)
public int countCenters()
public void addCenter(NetCenter center)
public NetCenter getCenter(int index)
public java.lang.String getName()
public java.lang.String getTitle()
public java.lang.String toString()
public static void main(java.lang.String[] args)
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |