[Lada-commits] [PATCH] Remove unused outdated API

Wald Commits scm-commit at wald.intevation.org
Fri Feb 19 15:12:27 CET 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1455890117 -3600
# Node ID 4b7f62a63297cb871dde50cc2748562ce7dc1a95
# Parent  d4d7682950680cc0a97f4116fab20273f72e6add
Remove unused outdated API.

diff -r d4d768295068 -r 4b7f62a63297 src/main/java/de/intevation/lada/util/auth/UserInfo.java
--- a/src/main/java/de/intevation/lada/util/auth/UserInfo.java	Fri Feb 19 14:23:58 2016 +0100
+++ b/src/main/java/de/intevation/lada/util/auth/UserInfo.java	Fri Feb 19 14:55:17 2016 +0100
@@ -22,10 +22,8 @@
     private Integer userId;
     private List<String> messstellen;
     private List<String> netzbetreiber;
-    private List<String> roles;
     private List<Integer> funktionen;
     private List<Auth> auth;
-    private Integer statusRole;
 
     public UserInfo() {
         messstellen = new ArrayList<String>();
@@ -134,30 +132,6 @@
         return retVal;
     }
 
-    public List<String> getRoles() {
-        List<String> ret = new ArrayList<String>();
-        for (Auth a : auth) {
-            if (a.getLdapGroup() != null) {
-                ret.add(a.getLdapGroup());
-            }
-        }
-        return ret;
-    }
-
-    /**
-     * @return the statusRole
-     */
-    public Integer getStatusRole() {
-        return statusRole;
-    }
-
-    /**
-     * @param statusRole the statusRole to set
-     */
-    public void setStatusRole(Integer statusRole) {
-        this.statusRole = statusRole;
-    }
-
     public void setAuth(List<Auth> auth) {
         this.auth = auth;
     }


More information about the Lada-commits mailing list