1 18 19 20 package org.apache.struts.webapp.example; 21 22 23 30 31 public interface User { 32 33 34 36 37 40 public UserDatabase getDatabase(); 41 42 43 46 public String getFromAddress(); 47 48 49 54 public void setFromAddress(String fromAddress); 55 56 57 60 public String getFullName(); 61 62 63 68 public void setFullName(String fullName); 69 70 71 74 public String getPassword(); 75 76 77 82 public void setPassword(String password); 83 84 85 88 public String getReplyToAddress(); 89 90 91 96 public void setReplyToAddress(String replyToAddress); 97 98 99 103 public Subscription[] getSubscriptions(); 104 105 106 109 public String getUsername(); 110 111 112 114 115 124 public Subscription createSubscription(String host); 125 126 127 133 public Subscription findSubscription(String host); 134 135 136 145 public void removeSubscription(Subscription subscription); 146 147 148 } 149 | Popular Tags |