1 18 19 package org.apache.struts.examples.mailreader; 20 21 28 29 public interface User { 30 31 32 34 35 38 public UserDatabase getDatabase(); 39 40 41 44 public String getFromAddress(); 45 46 47 52 public void setFromAddress(String fromAddress); 53 54 55 58 public String getFullName(); 59 60 61 66 public void setFullName(String fullName); 67 68 69 72 public String getPassword(); 73 74 75 80 public void setPassword(String password); 81 82 83 86 public String getReplyToAddress(); 87 88 89 94 public void setReplyToAddress(String replyToAddress); 95 96 97 101 public Subscription[] getSubscriptions(); 102 103 104 107 public String getUsername(); 108 109 110 112 113 122 public Subscription createSubscription(String host); 123 124 125 131 public Subscription findSubscription(String host); 132 133 134 143 public void removeSubscription(Subscription subscription); 144 145 146 } 147 | Popular Tags |