Search in sources :

Example 1 with ProjectAllocationDataSnapshot

use of io.imunity.furms.ui.project_allocation.ProjectAllocationDataSnapshot in project furms by unity-idm.

the class ResourceAllocationsView method loadGridContent.

private void loadGridContent() {
    handleExceptions(() -> {
        projectDataSnapshot = new ProjectAllocationDataSnapshot(service.findAllInstallations(projectId), service.findAllUninstallations(projectId), service.findAllChunks(projectId), alarmService.findAll(projectId));
        grid.setItems(loadServicesViewsModels());
    });
}
Also used : ProjectAllocationDataSnapshot(io.imunity.furms.ui.project_allocation.ProjectAllocationDataSnapshot)

Example 2 with ProjectAllocationDataSnapshot

use of io.imunity.furms.ui.project_allocation.ProjectAllocationDataSnapshot in project furms by unity-idm.

the class ProjectAllocationComponent method loadGridContent.

private void loadGridContent() {
    handleExceptions(() -> {
        projectDataSnapshot = new ProjectAllocationDataSnapshot(service.findAllInstallations(projectId), service.findAllUninstallations(projectId), service.findAllChunks(projectId));
        final List<ProjectAllocationGridModel> items = loadServicesViewsModels();
        items.stream().filter(grid::isDetailsVisible).findFirst().ifPresent(item -> grid.setDetailsVisible(item, false));
        grid.setItems(items);
        grid.getElement().executeJs("this.notifyResize()");
        actionComponent.reload();
    });
}
Also used : ProjectAllocationDataSnapshot(io.imunity.furms.ui.project_allocation.ProjectAllocationDataSnapshot)

Aggregations

ProjectAllocationDataSnapshot (io.imunity.furms.ui.project_allocation.ProjectAllocationDataSnapshot)2