|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.xmlserv.app.phonebook.Mailinglist
Constructor Summary | |
Mailinglist(java.sql.Connection con,
int id,
int userid)
Load an existing Mailinglist. |
|
Mailinglist(java.sql.Connection con,
int userid,
java.lang.String name)
Create a new Mailinglist saving data to the DB. |
|
Mailinglist(int userid)
Create empty Mailinglist. |
Method Summary | |
void |
addMember(java.sql.Connection con,
int memberid)
|
void |
addMember(java.sql.Connection con,
PhoneBook.Entry entry)
|
void |
clear(java.sql.Connection con)
Remove all members from the list. |
boolean |
contains(java.sql.Connection con,
int pbid)
Check whether the given phonebook entry is a member of this mailinglist. |
void |
delete(java.sql.Connection con)
Delete the list. |
void |
deleteMember(java.sql.Connection con,
int member)
Delete a single member from the list. |
javax.mail.internet.InternetAddress[] |
getAddressList(java.sql.Connection con)
Get the list of maiaddresses. |
int |
getId()
|
int |
getListSize(java.sql.Connection con)
|
java.lang.String |
getName()
|
int |
getUserid()
|
static org.jdom.Element |
list(java.sql.Connection con,
int userid)
List all mailinglists for the given user. |
static org.jdom.Element |
list(java.sql.Connection con,
int userid,
boolean showall)
|
void |
load(java.sql.Connection con)
Load data from DB. |
void |
save(java.sql.Connection con)
Save to DB. |
void |
setMemberlist(java.sql.Connection con,
int[] memberlist)
|
void |
setName(java.lang.String name)
|
void |
setUserid(int userid)
Changing userid can only be done before calling save() for the first time. |
org.jdom.Element |
toElement(java.sql.Connection con)
Convert to an Element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Mailinglist(java.sql.Connection con, int id, int userid) throws XMLServException
public Mailinglist(java.sql.Connection con, int userid, java.lang.String name) throws XMLServException
public Mailinglist(int userid)
Method Detail |
public static org.jdom.Element list(java.sql.Connection con, int userid) throws XMLServException
public static org.jdom.Element list(java.sql.Connection con, int userid, boolean showall) throws XMLServException
showall
- Show mailinglists marked as deleted.public void save(java.sql.Connection con) throws XMLServException
public void load(java.sql.Connection con) throws XMLServException
public void delete(java.sql.Connection con) throws XMLServException
public void setMemberlist(java.sql.Connection con, int[] memberlist) throws XMLServException
public void clear(java.sql.Connection con) throws XMLServException
public void deleteMember(java.sql.Connection con, int member) throws XMLServException
public void addMember(java.sql.Connection con, PhoneBook.Entry entry) throws XMLServException
public void addMember(java.sql.Connection con, int memberid) throws XMLServException
public boolean contains(java.sql.Connection con, int pbid) throws XMLServException
public javax.mail.internet.InternetAddress[] getAddressList(java.sql.Connection con) throws XMLServException
public int getListSize(java.sql.Connection con) throws XMLServException
public org.jdom.Element toElement(java.sql.Connection con) throws XMLServException
public int getId()
public int getUserid()
public void setUserid(int userid)
public java.lang.String getName()
public void setName(java.lang.String name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |