| | |
| | | import org.apache.catalina.realm.RealmBase; |
| | | |
| | | /** |
| | | * |
| | | * Klasse zur Verwaltung von Benutzern in einer Datenbank |
| | | * |
| | | * @author Ulrich Hilger |
| | | */ |
| | | public class UserMgr { |
| | |
| | | |
| | | public static final String SQL_GET_USER_LIST = "getUserList"; |
| | | public static final String SQL_GET_USER_NAME_LIST = "getUserNameList"; |
| | | public static final String SQL_DELETE_USER = "deleteUser"; |
| | | |
| | | public User createUser(User user) { |
| | | String kw = user.getPw(); |
| | |
| | | return userNames; |
| | | } |
| | | |
| | | public User deleteUser(User user) { |
| | | return (User) App.getDatabase().delete(user, UserMapper); |
| | | } |
| | | |
| | | /* |
| | | public List getUserList() { |
| | | String sql = App.getSqlStatement(SQL_GET_USER_LIST); |