org.ifeth.sehr.lib
Class ServerModule

java.lang.Object
  extended byorg.ifeth.sehr.lib.ServerModule

public class ServerModule
extends java.lang.Object

This module bean is acting as an interface to the SEHR environment.

The intention of this module bean is to get the configuration once and keep relevant informations during the (WEB) session by forwarding the object until the session timed out or the user leaves the application.
Developing Note:
SEHR WEB modules should use this class to prevent time in coding. An exernal initial module object like 'sehr-hco' extends this class and a lot of interfacing is done :)

Author:
JReynolds (struts framework concept), HansJHaase (concept/coding)
See Also:
org.ifeth.sehrhco.model.ModuleBean();

Constructor Summary
ServerModule()
           
 
Method Summary
 java.lang.String getCategory()
          Returns the defined module category of SEHR
 SEHRCfg getCfg()
           
 java.util.Locale getLocale()
           
 java.lang.String getLogo()
           
 java.lang.String getProperty(java.lang.String key)
           
 java.lang.String getRelease()
           
 java.lang.String getSysCatHTMLSelect()
          Helper method to present a HTML SELECT of catagories in WEB forms.
 java.lang.String getTitle()
           
 org.ifeth.sehr.model.SessionData getUsrsess()
           
 java.lang.String getVersion()
           
 boolean isSEHROSICompatible()
          Returns the status check of SEHR OSI compatibility
 boolean isSEHRRunning()
          Returns the status of accessing the SEHR configuration file as an indicator if SEHR is running.
static void main(java.lang.String[] args)
          For testing purposes
 void setCfg(SEHRCfg cfg)
           
 void setLocale(java.util.Locale locale)
           
 void setTitle(java.lang.String s)
           
 void setUsrsess(org.ifeth.sehr.model.SessionData usrsess)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerModule

public ServerModule()
Method Detail

getCfg

public SEHRCfg getCfg()

setCfg

public void setCfg(SEHRCfg cfg)

isSEHRRunning

public boolean isSEHRRunning()
Returns the status of accessing the SEHR configuration file as an indicator if SEHR is running.


isSEHROSICompatible

public boolean isSEHROSICompatible()
Returns the status check of SEHR OSI compatibility


getCategory

public java.lang.String getCategory()
Returns the defined module category of SEHR

Returns:
category SEHR category

getVersion

public java.lang.String getVersion()
Returns:
version Returns the current main version of the module

getRelease

public java.lang.String getRelease()
Returns:
release Returns the current release of the module

getLogo

public java.lang.String getLogo()
Returns:
logo_image Returns a logo image (file) of the module

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String s)

getLocale

public java.util.Locale getLocale()

setLocale

public void setLocale(java.util.Locale locale)

getUsrsess

public org.ifeth.sehr.model.SessionData getUsrsess()

setUsrsess

public void setUsrsess(org.ifeth.sehr.model.SessionData usrsess)

getProperty

public java.lang.String getProperty(java.lang.String key)

getSysCatHTMLSelect

public java.lang.String getSysCatHTMLSelect()
Helper method to present a HTML SELECT of catagories in WEB forms.


main

public static void main(java.lang.String[] args)
For testing purposes

Parameters:
args -