|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.ifeth.sehr.beans.ServiceData
This bean is used to manage the services offered by the centers (zones).
| Constructor Summary | |
ServiceData()
|
|
ServiceData(int svid)
|
|
ServiceData(SEHRCfg cfg)
|
|
ServiceData(java.lang.String cfgfile)
|
|
| Method Summary | |
void |
clear()
|
static int |
countBasicServices(SEHRCfg cfg)
Count no. of basic services |
java.lang.String |
getCategoryHTMLSelect()
Get category list. |
java.lang.String |
getCategoryTitle()
Get title of a category defined by catid. |
java.lang.String |
getCategoryTitle(int catid)
|
java.lang.String |
getCategoryTitle(java.lang.String s)
|
int |
getCatid()
|
java.lang.String |
getCenterDatabase()
|
int |
getCenterid()
|
java.lang.String |
getDataRootOfCenter()
|
java.sql.Date |
getEofs()
|
java.lang.String |
getLocalZone()
Retrieve local zone for some security intervention purposes |
int |
getLocalZoneInt()
|
int |
getModid()
|
java.lang.String |
getModtitle()
|
java.lang.String |
getModulesHTMLSelect()
Get list of public modules to register as service for center This method is used by editing a service to make a module usable for a center. |
java.lang.String |
getMsgstatus()
|
java.lang.String |
getPik()
|
java.sql.Date |
getSofs()
|
java.lang.String |
getSvHTMLSelect()
Get registered, usable services (by NET_SERVICES) for the local zone as HTML selection field. |
int |
getSvid()
|
java.lang.String |
getSvTitle()
|
java.lang.String |
getTitle()
|
java.lang.String |
getUrladmin()
|
java.lang.String |
getUrluser()
|
int |
getZoneid()
|
void |
init(java.lang.String cfgfile)
Load SEHR configuration by given configuration file. |
void |
initObject(SEHRCfg cfg)
Initialize the object using the SEHR configuration object The configuration object is the interface between the SEHR core, the underlaying system and the 'business model'; Due to this splitted responsibility the the cfg object is resonsible for a correct db handle/connection. |
static int |
insertRecord(ServiceData sd)
Insert ServiceData record using given object (static method!) |
static void |
main(java.lang.String[] args)
for testing purposes only.... |
void |
readDataOfCenter()
Gets some important entries of the center associated for the current netservice object |
ServiceData |
selectService(int svid,
ServiceData sd)
|
static ServiceData |
selectServiceModRec(int svid,
ServiceData sd)
|
void |
setCatid(int i)
|
void |
setCenterid(int i)
|
void |
setEofs(java.sql.Date date)
|
void |
setModid(int modid)
|
void |
setModtitle(java.lang.String modtitle)
|
void |
setMsgstatus(java.lang.String string)
|
void |
setPik(java.lang.String string)
|
void |
setSofs(java.sql.Date date)
|
void |
setSvid(int i)
|
void |
setTitle(java.lang.String string)
|
void |
setUrladmin(java.lang.String string)
|
void |
setUrluser(java.lang.String string)
|
void |
setZoneid(int i)
|
boolean |
unregisterService()
|
static boolean |
updateRecord(int svidrec,
ServiceData sd)
Updates NET_SERVICES using ServiceData object fields. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ServiceData()
public ServiceData(int svid)
public ServiceData(java.lang.String cfgfile)
public ServiceData(SEHRCfg cfg)
| Method Detail |
public void init(java.lang.String cfgfile)
public void initObject(SEHRCfg cfg)
The configuration object is the interface between the SEHR core, the underlaying system and the 'business model'; Due to this splitted responsibility the the cfg object is resonsible for a correct db handle/connection.
cfg - public void clear()
public java.lang.String getModulesHTMLSelect()
This method is used by editing a service to make a module usable for a
center. If assigned to a center as a service every user of a zone can be
assigned/be allowed to use this service
NB: Basic modules like mail, news are standards by default
public java.lang.String getCategoryHTMLSelect()
public java.lang.String getDataRootOfCenter()
public java.lang.String getCenterDatabase()
public void readDataOfCenter()
public java.lang.String getCategoryTitle()
public java.lang.String getCategoryTitle(java.lang.String s)
public java.lang.String getCategoryTitle(int catid)
public java.lang.String getSvHTMLSelect()
NB: Basic services are not listed, they are always usable for registered users.
public java.lang.String getSvTitle()
public ServiceData selectService(int svid,
ServiceData sd)
public static ServiceData selectServiceModRec(int svid,
ServiceData sd)
public boolean unregisterService()
public static int countBasicServices(SEHRCfg cfg)
public static int insertRecord(ServiceData sd)
sd - ServiceData object
public static boolean updateRecord(int svidrec,
ServiceData sd)
Only fields of the record object are updated that are containing valid values
svidrec - Record (ID) to be updatedsd - ServiceData object containing the fields
public int getModid()
public void setModid(int modid)
public int getSvid()
public void setSvid(int i)
public int getCatid()
public int getCenterid()
public java.sql.Date getEofs()
public java.lang.String getPik()
public java.sql.Date getSofs()
public java.lang.String getTitle()
public java.lang.String getUrladmin()
public java.lang.String getUrluser()
public int getZoneid()
public void setCatid(int i)
i - public void setCenterid(int i)
i - public void setEofs(java.sql.Date date)
date - public void setPik(java.lang.String string)
string - public void setSofs(java.sql.Date date)
date - public void setTitle(java.lang.String string)
string - public void setUrladmin(java.lang.String string)
string - public void setUrluser(java.lang.String string)
string - public void setZoneid(int i)
i - public java.lang.String getMsgstatus()
public void setMsgstatus(java.lang.String string)
public java.lang.String getLocalZone()
public int getLocalZoneInt()
public java.lang.String getModtitle()
public void setModtitle(java.lang.String modtitle)
modtitle - The modtitle to set.public static void main(java.lang.String[] args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||