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);
}
Aggregations