1 17 18 19 package org.apache.catalina; 20 21 22 import java.util.Iterator ; 23 24 25 35 36 public interface UserDatabase { 37 38 39 41 42 45 public Iterator getGroups(); 46 47 48 51 public String getId(); 52 53 54 57 public Iterator getRoles(); 58 59 60 63 public Iterator getUsers(); 64 65 66 68 69 74 public void close() throws Exception ; 75 76 77 83 public Group createGroup(String groupname, String description); 84 85 86 92 public Role createRole(String rolename, String description); 93 94 95 102 public User createUser(String username, String password, 103 String fullName); 104 105 106 112 public Group findGroup(String groupname); 113 114 115 121 public Role findRole(String rolename); 122 123 124 130 public User findUser(String username); 131 132 133 138 public void open() throws Exception ; 139 140 141 146 public void removeGroup(Group group); 147 148 149 154 public void removeRole(Role role); 155 156 157 162 public void removeUser(User user); 163 164 165 171 public void save() throws Exception ; 172 173 174 } 175 | Popular Tags |