com.emc.storageos.model.user.SubTenantRoles Maven / Gradle / Ivy
/*
* Copyright (c) 2015 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.model.user;
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 = "subtenant")
public class SubTenantRoles {
private String tenant;
private String tenantName;
private List roles;
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 = "roles")
/**
* Roles that the user has.
* @valid TENANT_ADMIN (tenant role)
* @valid PROJECT_ADMIN (tenant role)
* @valid TENANT_APPROVER (tenant role)
*/
@XmlElement(name = "role")
public List getRoles() {
if (roles == null) {
roles = new ArrayList();
}
return roles;
}
public void setRoles(List roles) {
this.roles = roles;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy