Search in sources :

Example 1 with UsersSitesAccesses

use of io.imunity.furms.domain.user_site_access.UsersSitesAccesses in project furms by unity-idm.

the class SitesView method loadGridContent.

private void loadGridContent() {
    UsersSitesAccesses usersSitesAccesses = userSiteAccessService.getUsersSitesAccesses(projectId);
    Set<SiteTreeGridModel> rootItems = loadData();
    Set<SiteTreeGridModel> currentExpandedItems = rootItems.stream().filter(grid::isExpanded).collect(Collectors.toSet());
    grid.setItems(rootItems, key -> loadNextLevelData(usersSitesAccesses, key));
    grid.expand(currentExpandedItems);
}
Also used : UsersSitesAccesses(io.imunity.furms.domain.user_site_access.UsersSitesAccesses)

Aggregations

UsersSitesAccesses (io.imunity.furms.domain.user_site_access.UsersSitesAccesses)1