arlut.csd.ganymede
Class GanymedeWarningTask

java.lang.Object
  |
  +--arlut.csd.ganymede.GanymedeWarningTask
All Implemented Interfaces:
java.lang.Runnable

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.


Constructor Summary
GanymedeWarningTask()
           
 
Method Summary
 java.lang.String getExpirationWarningMesg(arlut.csd.ganymede.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 invids)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GanymedeWarningTask

public GanymedeWarningTask()
Method Detail

run

public void run()
Just Do It (tm)

Specified by:
run in interface java.lang.Runnable
See Also:
Runnable

sendMail

private void sendMail(java.lang.String type,
                      java.lang.String title,
                      java.lang.String description,
                      java.util.Vector invids)

getExpirationWarningMesg

public java.lang.String getExpirationWarningMesg(arlut.csd.ganymede.DBObject object)