All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.foilen.infra.api.model.user.UserHuman Maven / Gradle / Ivy

The newest version!
/*
    Foilen Infra API
    https://github.com/foilen/foilen-infra-api
    Copyright (c) 2017-2021 Foilen (https://foilen.com)

    The MIT License
    http://opensource.org/licenses/MIT

 */
package com.foilen.infra.api.model.user;

import java.util.SortedSet;
import java.util.TreeSet;

import com.foilen.smalltools.restapi.model.AbstractApiBase;

public class UserHuman extends AbstractApiBase {

    private String userId;
    private boolean isAdmin;

    private String email;

    private SortedSet roles = new TreeSet<>();

    public String getEmail() {
        return email;
    }

    public SortedSet getRoles() {
        return roles;
    }

    public String getUserId() {
        return this.userId;
    }

    public boolean isAdmin() {
        return isAdmin;
    }

    public UserHuman setAdmin(boolean isAdmin) {
        this.isAdmin = isAdmin;
        return this;
    }

    public UserHuman setEmail(String email) {
        this.email = email;
        return this;
    }

    public UserHuman setRoles(SortedSet roles) {
        this.roles = roles;
        return this;
    }

    public UserHuman setUserId(String userId) {
        this.userId = userId;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy