|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.xmlserv.app.User
User abstraction.
Constructor Summary | |
User()
|
|
User(java.sql.Connection con,
int id)
Get user by numeric id. |
|
User(java.sql.Connection con,
java.lang.String uid)
Get user by numeric id. |
Method Summary | |
java.lang.String |
getAnrede()
|
java.lang.String |
getEmail()
|
java.lang.String |
getFax()
|
int |
getId()
|
java.lang.String |
getIsdn()
|
java.lang.String |
getKostenstelle()
|
java.lang.String |
getLand()
|
java.lang.String |
getNachname()
|
java.lang.String |
getOrt()
|
java.lang.String |
getPlz()
|
int |
getRolegroup()
|
java.lang.String |
getStrasse()
|
java.lang.String |
getTelephon()
|
java.lang.String |
getTitel()
|
java.lang.String |
getUid()
|
java.lang.String |
getValue(java.lang.String memberName)
Get a value of the given instance member variable as a String. |
java.lang.String |
getVorname()
|
boolean |
isPublicemail()
|
boolean |
isSaveCleartextPW()
|
static org.jdom.Element |
list(java.sql.Connection con,
int rolegroup)
Create list of users for the given rolegroup. |
static org.jdom.Element |
listByUid(java.sql.Connection con,
int rolegroup)
Create list of users for the given rolegroup. |
void |
save(java.sql.Connection con)
Save user data to DB. |
void |
setAnrede(java.lang.String anrede)
|
void |
setEmail(java.lang.String email)
|
void |
setFax(java.lang.String fax)
|
void |
setIsdn(java.lang.String isdn)
|
void |
setKostenstelle(java.lang.String kostenstelle)
|
void |
setLand(java.lang.String land)
|
void |
setNachname(java.lang.String nachname)
|
void |
setOrt(java.lang.String ort)
|
void |
setPassword(java.lang.String password)
|
void |
setPlz(java.lang.String plz)
|
void |
setPublicemail(boolean publicemail)
|
void |
setRolegroup(int rolegroup)
|
void |
setSaveCleartextPW(boolean saveCleartextPW)
|
void |
setStrasse(java.lang.String strasse)
|
void |
setTelephon(java.lang.String telephon)
|
void |
setTitel(java.lang.String titel)
|
void |
setUid(java.lang.String uid)
|
void |
setVorname(java.lang.String vorname)
|
org.jdom.Element |
toElement()
Convert user data to a JDom Element. |
org.jdom.Element |
toElement(java.sql.Connection con)
Include rolegroup info. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public User()
public User(java.sql.Connection con, int id) throws XMLServException
con
- The DB Connection.id
- The numeric user id. Ignored if -1.XMLServException
- When user not found or an SQL error occurs.public User(java.sql.Connection con, java.lang.String uid) throws XMLServException
con
- The DB Connection.uid
- The users loginname.XMLServException
- When user not found or an SQL error occurs.Method Detail |
public void save(java.sql.Connection con) throws XMLServException
con
- The DB Connection.public org.jdom.Element toElement()
public java.lang.String getValue(java.lang.String memberName) throws XMLServException
getValue
in interface MacroExpansion
memberName
- XMLServException
- public org.jdom.Element toElement(java.sql.Connection con) throws XMLServException
public static org.jdom.Element list(java.sql.Connection con, int rolegroup) throws XMLServException
con
- DB Connectionrolegroup
- The rolegroup to list.public static org.jdom.Element listByUid(java.sql.Connection con, int rolegroup) throws XMLServException
con
- DB Connectionrolegroup
- The rolegroup to list.public int getId()
public void setPassword(java.lang.String password)
public java.lang.String getUid()
public void setUid(java.lang.String uid)
public int getRolegroup()
public void setRolegroup(int rolegroup)
public java.lang.String getKostenstelle()
public void setKostenstelle(java.lang.String kostenstelle)
public java.lang.String getAnrede()
public void setAnrede(java.lang.String anrede)
public java.lang.String getVorname()
public void setVorname(java.lang.String vorname)
public java.lang.String getNachname()
public void setNachname(java.lang.String nachname)
public java.lang.String getTitel()
public void setTitel(java.lang.String titel)
public java.lang.String getEmail()
public void setEmail(java.lang.String email)
public java.lang.String getTelephon()
public void setTelephon(java.lang.String telephon)
public java.lang.String getFax()
public void setFax(java.lang.String fax)
public java.lang.String getIsdn()
public void setIsdn(java.lang.String isdn)
public java.lang.String getStrasse()
public void setStrasse(java.lang.String strasse)
public java.lang.String getPlz()
public void setPlz(java.lang.String plz)
public java.lang.String getOrt()
public void setOrt(java.lang.String ort)
public java.lang.String getLand()
public void setLand(java.lang.String land)
public boolean isPublicemail()
public void setPublicemail(boolean publicemail)
public boolean isSaveCleartextPW()
public void setSaveCleartextPW(boolean saveCleartextPW)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |