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

org.keycloak.representations.idm.UserRoleMappingRepresentation Maven / Gradle / Ivy

package org.keycloak.representations.idm;

import java.util.HashSet;
import java.util.Set;

/**
 * @author Bill Burke
 * @version $Revision: 1 $
 */
public class UserRoleMappingRepresentation {
    protected String self; // link
    protected String username;
    protected Set roles;

    public String getSelf() {
        return self;
    }

    public void setSelf(String self) {
        this.self = self;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Set getRoles() {
        return roles;
    }

    public void setRoles(Set roles) {
        this.roles = roles;
    }

    public UserRoleMappingRepresentation role(String role) {
        if (this.roles == null) this.roles = new HashSet();
        this.roles.add(role);
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy