1 53 54 106 107 package com.Yasna.forum; 108 109 import java.util.*; 110 111 114 public interface ProfileManager { 115 116 127 public User createUser(String username, String password, String email) 128 throws UserAlreadyExistsException; 129 130 136 public boolean activateUser(int UserID, String Code); 137 138 147 public Group createGroup(String name) throws UnauthorizedException, 148 GroupAlreadyExistsException; 149 150 157 public User getUser(int userID) throws UserNotFoundException; 158 159 164 public User getUser(String username) throws UserNotFoundException; 165 166 169 public User getAnonymousUser(); 170 171 179 public User getSpecialUser(); 180 181 186 public Group getGroup(int groupID) throws GroupNotFoundException; 187 188 193 public Group getGroup(String name) throws GroupNotFoundException; 194 195 201 public void deleteUser(User user) throws UnauthorizedException; 202 203 209 public void deleteGroup(Group group) throws UnauthorizedException; 210 211 214 public int getUserCount(); 215 216 219 public int getGroupCount(); 220 221 224 public Iterator users(); 225 226 238 public Iterator users(int startIndex, int numResults); 239 240 245 public Iterator groups(); 246 247 259 public Iterator groups(int startIndex, int numResults); 260 261 268 public int userMessageCount(User user, Forum forum); 269 270 274 public Iterator userMessages(User user, Forum forum,int start,int numResults); 275 } 276 | Popular Tags |