1 25 26 27 package org.nemesis.forum; 28 29 import java.util.Iterator ; 30 31 import org.nemesis.forum.exception.UnauthorizedException; 32 33 48 public interface Group { 49 50 55 public int getID(); 56 57 62 public String getName(); 63 64 72 public void setName(String name) throws UnauthorizedException; 73 74 80 public String getDescription(); 81 82 93 public void setDescription(String description) throws UnauthorizedException; 94 95 103 public void addAdministrator(User user) throws UnauthorizedException; 104 105 113 public void removeAdministrator(User user) throws UnauthorizedException; 114 115 123 public void addMember(User user) throws UnauthorizedException; 124 125 134 public void removeMember(User user) throws UnauthorizedException; 135 136 142 public boolean isAdministrator(User user); 143 144 149 public boolean isMember(User user); 150 151 156 public int getAdministratorCount(); 157 158 163 public int getMemberCount(); 164 165 170 public Iterator members(); 171 172 177 public Iterator administrators(); 178 179 185 public abstract ForumPermissions getPermissions(Authorization authorization); 186 187 197 public boolean hasPermission(int type); 198 } 199 | Popular Tags |