From 59f8b3f307819166729c3a4af1b4026720e9accf Mon Sep 17 00:00:00 2001
From: ulrich <undisclosed>
Date: Tue, 20 Dec 2016 15:01:59 +0000
Subject: [PATCH] Weiere Anpassungen an der Gestaltung der Benutzerseite

---
 src/java/de/uhilger/um/api/UserMgr.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/java/de/uhilger/um/api/UserMgr.java b/src/java/de/uhilger/um/api/UserMgr.java
index 9057f17..249dfcf 100644
--- a/src/java/de/uhilger/um/api/UserMgr.java
+++ b/src/java/de/uhilger/um/api/UserMgr.java
@@ -8,7 +8,8 @@
 import org.apache.catalina.realm.RealmBase;
 
 /**
- *
+ * Klasse zur Verwaltung von Benutzern in einer Datenbank
+ * 
  * @author Ulrich Hilger
  */
 public class UserMgr {
@@ -19,6 +20,7 @@
   
   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();
@@ -34,6 +36,10 @@
     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);

--
Gitblit v1.9.3