1 53 54 106 107 package com.Yasna.forum; 108 109 import java.util.*; 110 111 126 public interface Group { 127 128 133 public int getID(); 134 135 140 public String getName(); 141 142 150 public void setName(String name) throws UnauthorizedException; 151 152 158 public String getDescription(); 159 160 166 public boolean getAutoGroupMembership(); 167 168 173 public void setAutoGroupMembership(boolean param) throws UnauthorizedException; 174 185 public void setDescription(String description) throws UnauthorizedException; 186 187 195 public void addAdministrator(User user) throws UnauthorizedException; 196 197 205 public void removeAdministrator(User user) throws UnauthorizedException; 206 207 215 public void addMember(User user) throws UnauthorizedException; 216 217 226 public void removeMember(User user) throws UnauthorizedException; 227 228 234 public boolean isAdministrator(User user); 235 236 241 public boolean isMember(User user); 242 243 248 public int getAdministratorCount(); 249 250 255 public int getMemberCount(); 256 257 262 public Iterator members(); 263 264 269 public Iterator administrators(); 270 271 277 public abstract ForumPermissions getPermissions(Authorization authorization); 278 279 289 public boolean hasPermission(int type); 290 } 291 | Popular Tags |