|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.arsdigita.acs.bboard.EmailQueue
Maintains the list of people about to receive e-mail alerts for a particular bboard posting.
Field Summary | |
static int |
ALERT_INSTANT
|
static int |
ALERT_MAINTAINER
Types of alerts |
static int |
ALERT_THREAD
|
static int |
ALERT_UNKNOWN
|
Constructor Summary | |
EmailQueue()
|
Method Summary | |
void |
add(int type,
String to,
String from,
String subject,
String body,
String poster_email)
Adds a recipient to this. |
void |
add(String to,
String from,
String subject,
String body,
String poster_email)
Adds a recipient to this. |
boolean |
contains(String key)
Returns true if column is a valid column in
this datasource; returns false otherwise. |
String |
get(String key)
Generic get-property method; returns the value of the column named by key for the currently active |
int |
getType()
|
String[] |
keys()
Returns a list of valid keys in this datasource, for use with get(). |
boolean |
next()
Advances to the next item, if there is one, and returns true; returns false otherwise. |
int |
rownum()
Returns the current row number in the datasource. |
void |
send()
Send e-mail messages for all queued alerts. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final int ALERT_MAINTAINER
public static final int ALERT_THREAD
public static final int ALERT_INSTANT
public static final int ALERT_UNKNOWN
Constructor Detail |
public EmailQueue()
Method Detail |
public boolean next()
DataSource
next
in interface DataSource
public String get(String key)
DataSource
key
for the currently activeget
in interface DataSource
public int getType()
public boolean contains(String key)
DataSource
column
is a valid column in
this datasource; returns false otherwise.contains
in interface DataSource
public String[] keys()
DataSource
keys
in interface DataSource
public final void add(String to, String from, String subject, String body, String poster_email)
to
- The e-mail recipient's e-mail addressfrom
- The sender's e-mail address (e.g., bboard@arsdigita.com)subject
- The e-mail subjectbody
- poster_email
- The e-mail address of the bboard msg posterpublic final void add(int type, String to, String from, String subject, String body, String poster_email)
type
- The type of email alertto
- The e-mail recipient's e-mail addressfrom
- The sender's e-mail address (e.g., bboard@arsdigita.com)subject
- The e-mail subjectbody
- poster_email
- The e-mail address of the bboard msg posterpublic void send() throws MessagingException
public int rownum()
DataSource
rownum
in interface DataSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |