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

com.emc.storageos.model.user.UserInfo Maven / Gradle / Ivy

There is a newer version: 3.5.0.0
Show newest version
/*
 * Copyright (c) 2015 EMC Corporation
 * All Rights Reserved
 */
package com.emc.storageos.model.user;

import org.codehaus.jackson.annotate.JsonProperty;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement(name = "user")
public class UserInfo {
    private String commonName;
    private String distinguishedName;
    private String tenant;
    private String tenantName;
    private List vdcRoles;
    private List homeTenantRoles;
    private List subTenantRoles;

    @XmlElement(name = "common_name")
    @JsonProperty("common_name")
    public String getCommonName() {
        return commonName;
    }

    public void setCommonName(String commonName) {
        this.commonName = commonName;
    }

    @XmlElement(name = "distinguished_name")
    @JsonProperty("distinguished_name")
    public String getDistinguishedName() {
        return distinguishedName;
    }

    public void setDistinguishedName(String distinguishedName) {
        this.distinguishedName = distinguishedName;
    }

    public String getTenant() {
        return tenant;
    }

    public void setTenant(String tenant) {
        this.tenant = tenant;
    }

    public String getTenantName() {
        return tenantName;
    }

    public void setTenantName(String tenantName) {
        this.tenantName = tenantName;
    }

    @XmlElementWrapper(name = "vdc_roles")
    /**
     * Virtual data center roles that the user has.
     * @valid SYSTEM_ADMIN
     * @valid SECURITY_ADMIN
     * @valid SYSTEM_MONITOR
     * @valid SYSTEM_AUDITOR
     */
    @XmlElement(name = "vdc_role")
    public List getVdcRoles() {
        if (vdcRoles == null) {
            vdcRoles = new ArrayList();
        }
        return vdcRoles;
    }

    public void setVdcRoles(List roles) {
        this.vdcRoles = roles;
    }

    @XmlElementWrapper(name = "home_tenant_roles")
    /**
     * Provider tenant roles that the user has.
     * @valid TENANT_ADMIN
     * @valid PROJECT_ADMIN
     * @valid TENANT_APPROVER
     */
    @XmlElement(name = "home_tenant_role")
    public List getHomeTenantRoles() {
        if (homeTenantRoles == null) {
            homeTenantRoles = new ArrayList();
        }
        return homeTenantRoles;
    }

    public void setHomeTenantRoles(List roles) {
        this.homeTenantRoles = roles;
    }

    @XmlElementWrapper(name = "subtenant_roles")
    /**
     * Subtenant(s) that this user has roles in.
     * @valid none
     */
    @XmlElement(name = "subtenant")
    public List getSubTenantRoles() {
        if (subTenantRoles == null) {
            subTenantRoles = new ArrayList();
        }
        return subTenantRoles;
    }

    public void setSubTenantRoles(List subTenantRoles) {
        this.subTenantRoles = subTenantRoles;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy