01: package vqwiki;
02:
03: import java.util.Date;
04:
05: /**
06: * Stores a list of usernames and dates for each topic page in the VQWiki
07: * system, so that an email can be sent to their registered
08: * addresses on the specified date.
09: *
10: * @author Robert E Brewer
11: * @version 0.1
12: */
13: public interface Reminders {
14:
15: /**
16: *
17: */
18: public void addReminder(String userName, Date dateToRemind)
19: throws Exception;
20:
21: /**
22: *
23: */
24: public void removeReminder(String userName) throws Exception;
25:
26: /**
27: *
28: */
29: public boolean hasReminder(String userName) throws Exception;
30:
31: /**
32: *
33: */
34: public Date dateToRemind(String userName) throws Exception;
35:
36: /**
37: *
38: */
39: public boolean sendReminders(Date remindDate) throws Exception;
40: }
|