use of com.emc.storageos.model.tenant.UserMappingParam in project coprhd-controller by CoprHD.
the class AuthnConfigurationService method prepareTenantMappingForOpenstack.
public TenantCreateParam prepareTenantMappingForOpenstack(OSTenant tenant) {
List<UserMappingParam> userMappings = _keystoneUtils.prepareUserMappings(tenant.getOsId());
TenantCreateParam param = new TenantCreateParam(CinderConstants.TENANT_NAME_PREFIX + " " + tenant.getName(), userMappings);
if (tenant.getDescription() != null) {
param.setDescription(tenant.getDescription());
} else {
param.setDescription(CinderConstants.TENANT_NAME_PREFIX);
}
return param;
}
Aggregations