view src/main/java/de/intevation/lada/util/auth/UserInfo.java @ 771:244c54d16957

Added fields for status and user roles/functions.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 12 Nov 2015 12:13:39 +0100
parents 3ec358698b4d
children 1ed347eb856b
line wrap: on
line source
/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
 * Software engineering by Intevation GmbH
 *
 * This file is Free Software under the GNU GPL (v>=3)
 * and comes with ABSOLUTELY NO WARRANTY! Check out
 * the documentation coming with IMIS-Labordaten-Application for details.
 */
package de.intevation.lada.util.auth;

import java.util.ArrayList;
import java.util.List;

/**
 * Container for user specific information.
 *
 * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a>
 */
public class UserInfo {
    private String name;
    private List<String> messstellen;
    private List<String> netzbetreiber;
    private List<String> roles;
    private List<Integer> funktionen;
    private Integer statusRole;

    public UserInfo() {
        messstellen = new ArrayList<String>();
        netzbetreiber = new ArrayList<String>();
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the messstellen
     */
    public List<String> getMessstellen() {
        return messstellen;
    }

    /**
     * @param messstellen the messstellen to set
     */
    public void setMessstellen(List<String> messstellen) {
        this.messstellen = messstellen;
    }

    /**
     * @return the netzbetreiber
     */
    public List<String> getNetzbetreiber() {
        return netzbetreiber;
    }

    /**
     * @param netzbetreiber the netzbetreiber to set
     */
    public void setNetzbetreiber(List<String> netzbetreiber) {
        this.netzbetreiber = netzbetreiber;
    }

    /**
     * @return the roles
     */
    public List<String> getRoles() {
        return roles;
    }

    /**
     * @param roles the roles to set
     */
    public void setRoles(List<String> roles) {
        this.roles = roles;
    }

    /**
     * @return the funktionen
     */
    public List<Integer> getFunktionen() {
        return this.funktionen;
    }

    /**
     * @return the funktionen
     */
    public List<String> getFunktionenAsString() {
        List<String> retVal = new ArrayList<String>();
        for (int i = 0; i < this.funktionen.size(); i++) {
            retVal.add(this.funktionen.get(i).toString());
        }
        return retVal;
    }

    /**
     * @param funktionen the funktionen to set
     */
    public void setFunktionen(List<Integer> funktionen) {
        this.funktionen = funktionen;
    }

    /**
     * @return the statusRole
     */
    public Integer getStatusRole() {
        return statusRole;
    }

    /**
     * @param statusRole the statusRole to set
     */
    public void setStatusRole(Integer statusRole) {
        this.statusRole = statusRole;
    }
}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)