public class GanymedeWarningTask
extends java.lang.Object
implements java.lang.Runnable
This is a Ganymede server task, for use with the GanymedeScheduler.
The standard GanymedeWarningTask class scans through all objects
in the database and mails out warnings for those objects that are
going to expire on this day one, two, or three weeks in the future,
as well as those objects that are going to expire within the
following 24 hours. The email messages sent are based on the
server's Object Events configuration settings, and will also be
sent to the list of email addresses returned by the getEmailTargets() customization method in each object's DBEditObject customization
class, if any such is defined.
GanymedeWarningTask must not be run more than once a day by the GanymedeScheduler, or else users and admins may receive redundant warnings.
The GanymedeWarningTask is paired with the standard GanymedeExpirationTask task, which handles the actual expiration
and removal of database objects.
| Modifier and Type | Field and Description |
|---|---|
(package private) static TranslationService |
ts
TranslationService object for handling string localization in the
Ganymede server.
|
| Constructor and Description |
|---|
GanymedeWarningTask() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getExpirationWarningMesg(DBObject object) |
void |
run()
Just Do It (tm)
|
private void |
sendMail(java.lang.String type,
java.lang.String title,
java.lang.String description,
java.util.Vector<Invid> invids) |
static final TranslationService ts
public void run()
run in interface java.lang.RunnableRunnableprivate void sendMail(java.lang.String type,
java.lang.String title,
java.lang.String description,
java.util.Vector<Invid> invids)
public java.lang.String getExpirationWarningMesg(DBObject object)