1 17 18 package org.apache.james.services; 19 20 import java.util.Iterator ; 21 22 30 public interface UsersRepository { 31 32 35 String ROLE = "org.apache.james.services.UsersRepository"; 36 37 String USER = "USER"; 38 39 47 boolean addUser(User user); 48 49 56 void addUser(String name, Object attributes); 57 58 63 Object getAttributes(String name); 64 65 66 75 User getUserByName(String name); 76 77 86 User getUserByNameCaseInsensitive(String name); 87 88 95 String getRealName(String name); 96 97 103 boolean updateUser(User user); 104 105 110 void removeUser(String name); 111 112 118 boolean contains(String name); 119 120 127 boolean containsCaseInsensitive(String name); 128 129 130 137 boolean test(String name, Object attributes); 138 139 150 boolean test(String name, String password); 151 152 157 int countUsers(); 158 159 164 Iterator list(); 165 166 } 167 | Popular Tags |