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

com.emc.storageos.model.tenant.TenantOrgRestRep Maven / Gradle / Ivy

There is a newer version: 3.5.0.0
Show newest version
/*
 * Copyright (c) 2008-2011 EMC Corporation
 * All Rights Reserved
 */

package com.emc.storageos.model.tenant;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

import com.emc.storageos.model.DataObjectRestRep;
import com.emc.storageos.model.RelatedResourceRep;

@XmlRootElement(name = "tenant")
@XmlAccessorType(XmlAccessType.PROPERTY)
public class TenantOrgRestRep extends DataObjectRestRep {

    private RelatedResourceRep parentTenant;
    private String description;
    private List userMappings;
    private String namespace;

    public TenantOrgRestRep() {
    }

    public TenantOrgRestRep(RelatedResourceRep parentTenant,
            String description, List userMappings) {
        this.parentTenant = parentTenant;
        this.description = description;
        this.userMappings = userMappings;
    }

    /**
     * 
     * Optional Detailed Description of the Tenant
     * 
     * @valid none
     */
    @XmlElement
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 
     * Id and hyperlink of the parent tenant
     * 
     * @valid none
     */
    @XmlElement(name = "parent_tenant")
    public RelatedResourceRep getParentTenant() {
        return parentTenant;
    }

    public void setParentTenant(RelatedResourceRep parentTenant) {
        this.parentTenant = parentTenant;
    }

    /**
     * 
     * User mappings define how a user is mapped to a tenant. The user can be
     * mapped to a tenant using parameters such as domains, LDAP attributes,
     * and AD group membership.
     * 
     * @valid none
     */
    @XmlElementWrapper(name = "user_mappings")
    /**
     * One individual mapping
     * @valid none 
     * @return 
     */
    @XmlElement(name = "user_mapping")
    public List getUserMappings() {
        if (userMappings == null) {
            userMappings = new ArrayList();
        }
        return userMappings;
    }

    public void setUserMappings(List userMappings) {
        this.userMappings = userMappings;
    }

    /**
     * 
     * Namespace mapped to the Tenant
     * 
     * @valid none
     */
    @XmlElement
    public String getNamespace() {
        return namespace;
    }

    public void setNamespace(String namespace) {
        this.namespace = namespace;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy