Search in sources :

Example 16 with UserMappingParam

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;
}
Also used : UserMappingParam(com.emc.storageos.model.tenant.UserMappingParam) TenantCreateParam(com.emc.storageos.model.tenant.TenantCreateParam)

Aggregations

UserMappingParam (com.emc.storageos.model.tenant.UserMappingParam)16 UserMappingAttributeParam (com.emc.storageos.model.tenant.UserMappingAttributeParam)9 TenantCreateParam (com.emc.storageos.model.tenant.TenantCreateParam)5 TenantUpdateParam (com.emc.storageos.model.tenant.TenantUpdateParam)4 UserMappingChanges (com.emc.storageos.model.tenant.UserMappingChanges)4 ArrayList (java.util.ArrayList)4 TenantOrgRestRep (com.emc.storageos.model.tenant.TenantOrgRestRep)3 TenantResponse (com.emc.storageos.model.tenant.TenantResponse)3 ClientResponse (com.sun.jersey.api.client.ClientResponse)3 Test (org.junit.Test)3 AuthnUpdateParam (com.emc.storageos.model.auth.AuthnUpdateParam)2 ServiceErrorException (com.emc.vipr.client.exceptions.ServiceErrorException)2 HashSet (java.util.HashSet)2 NamedURI (com.emc.storageos.db.client.model.NamedURI)1 TenantOrg (com.emc.storageos.db.client.model.TenantOrg)1 KeystoneUtils (com.emc.storageos.keystone.restapi.utils.KeystoneUtils)1 AuthnCreateParam (com.emc.storageos.model.auth.AuthnCreateParam)1 AuthnProviderRestRep (com.emc.storageos.model.auth.AuthnProviderRestRep)1 RoleAssignmentChanges (com.emc.storageos.model.auth.RoleAssignmentChanges)1 RoleAssignmentEntry (com.emc.storageos.model.auth.RoleAssignmentEntry)1