public class GanymedeWarningTask extends java.lang.Object implements java.lang.Runnable
This is a Ganymede server task, for use with the
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
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|
TranslationService object for handling string localization in the Ganymede server.
|Constructor and Description|
|Modifier and Type||Method and Description|
Just Do It (tm)
static final TranslationService ts
public void run()
private 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)