1 16 17 18 package org.apache.struts.webapp.example2; 19 20 21 29 30 public interface User { 31 32 33 35 36 39 public UserDatabase getDatabase(); 40 41 42 45 public String getFromAddress(); 46 47 48 53 public void setFromAddress(String fromAddress); 54 55 56 59 public String getFullName(); 60 61 62 67 public void setFullName(String fullName); 68 69 70 73 public String getPassword(); 74 75 76 81 public void setPassword(String password); 82 83 84 87 public String getReplyToAddress(); 88 89 90 95 public void setReplyToAddress(String replyToAddress); 96 97 98 102 public Subscription[] getSubscriptions(); 103 104 105 108 public String getUsername(); 109 110 111 113 114 123 public Subscription createSubscription(String host); 124 125 126 132 public Subscription findSubscription(String host); 133 134 135 144 public void removeSubscription(Subscription subscription); 145 146 147 } 148 | Popular Tags |