From 7f8a035fd7d290be1c7ba01956097cab466c9200 Mon Sep 17 00:00:00 2001 From: ulrich <not disclosed> Date: Tue, 27 Dec 2016 13:34:30 +0000 Subject: [PATCH] UI-Steuerung: Wechsel zwischen Rollen- und Benutzer-Anzeige --- src/java/de/uhilger/um/api/UserMgr.java | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/src/java/de/uhilger/um/api/UserMgr.java b/src/java/de/uhilger/um/api/UserMgr.java index e183a68..0c2dd04 100644 --- a/src/java/de/uhilger/um/api/UserMgr.java +++ b/src/java/de/uhilger/um/api/UserMgr.java @@ -24,6 +24,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_GET_ROLE_LIST = "getRoleList"; + public static final String SQL_GET_USER_ROLES = "getUserRoles"; public static final String SQL_DELETE_USER = "deleteUser"; /* ----------- Benutzer -------------- */ @@ -78,6 +79,20 @@ return roleNames; } + /** + * + * + * list.get(recordno).get(fieldno) + * + * @param userId ID des Benutzers + * @return List<List<String>> Rollennamen des Benutzers + */ + public List getUserRoleNames(String userId) { + String sql = App.getSqlStatement(SQL_GET_USER_ROLES); + List roleNames = App.getDatabase().select(sql, App.WITHOUT_BLOBS, userId); + return roleNames; + } + /* ------------ sonstige Methoden -------------- */ public String hallo() { -- Gitblit v1.9.3