01: package vqwiki;
02:
03: import java.util.Collection;
04: import java.util.Locale;
05:
06: /**
07: * Stores a list of usernames for each topic page in the VQWiki
08: * system, so that an email can be sent to their registered
09: * addresses when changes are made to the associated topic page.
10: *
11: * @author Robert E Brewer
12: * @version 0.1
13: */
14: public interface Notify {
15:
16: /**
17: *
18: */
19: public void addMember(String userName) throws Exception;
20:
21: /**
22: *
23: */
24: public void removeMember(String userName) throws Exception;
25:
26: /**
27: *
28: */
29: public boolean isMember(String userName) throws Exception;
30:
31: /**
32: *
33: */
34: public Collection getMembers() throws Exception;
35:
36: /**
37: *
38: */
39: public boolean sendNotifications(String rootPath, Locale locale)
40: throws Exception;
41: }
|