private Map < String , TenantDefinition > getAllTenantDefs ( ) { Map < String , TenantDefinition > tenantMap = new HashMap <> ( ) ; Iterable < DRow > rowIter = DBService . instance ( ) . getAllRows ( TENANTS_STORE_NAME ) ; for ( DRow row : rowIter ) { TenantDefinition tenantDef = loadTenantDefinition ( row ) ; if ( tenantDef != null ) { tenantMap . put ( tenantDef . getName ( ) , tenantDef ) ; } } return tenantMap ; }
Get all tenants including the default tenant .