Search in sources :

Example 1 with TenantsDataTable

use of models.datatable.TenantsDataTable in project coprhd-controller by CoprHD.

the class Tenants method list.

public static void list() {
    TenantsDataTable dataTable = new TenantsDataTable();
    renderArgs.put("sources", TenantSource.options(TenantSource.TENANTS_SOURCE_ALL, TenantSource.TENANTS_SOURCE_LOCAL, TenantSource.TENANTS_SOURCE_OS));
    renderArgs.put("currentSource", Models.currentSource());
    if (isKeystoneAuthnProviderCreated()) {
        AuthnProviderRestRep authnProvider = AuthnProviderUtils.getKeystoneAuthProvider();
        authnProviderName = authnProvider.getName();
        TenantsSyncOptionsForm keystoneProvider = new TenantsSyncOptionsForm();
        keystoneProvider.readFrom(authnProvider);
        renderArgs.put("tenantsOptions", TenantsSynchronizationOptions.options(TenantsSynchronizationOptions.ADDITION, TenantsSynchronizationOptions.DELETION));
        renderArgs.put("interval", getInterval(authnProvider));
        renderArgs.put("osTenantsToAdd", new KeystoneSynchronizationTenantsDataTable());
        renderArgs.put("osTenantsToRemove", new KeystoneSynchronizationTenantsDataTable());
        render(dataTable, keystoneProvider);
    }
    render(dataTable);
}
Also used : TenantsDataTable(models.datatable.TenantsDataTable) OpenStackTenantsDataTable(models.datatable.OpenStackTenantsDataTable) AuthnProviderRestRep(com.emc.storageos.model.auth.AuthnProviderRestRep)

Aggregations

AuthnProviderRestRep (com.emc.storageos.model.auth.AuthnProviderRestRep)1 OpenStackTenantsDataTable (models.datatable.OpenStackTenantsDataTable)1 TenantsDataTable (models.datatable.TenantsDataTable)1