use of models.datatable.ApplicationSnapshotSetDataTable.ApplicationSnapshotSets in project coprhd-controller by CoprHD.
the class BlockApplications method applicationSnapshotJson.
public static void applicationSnapshotJson(String id) {
List<ApplicationSnapshotSets> snapDetails = Lists.newArrayList();
Set<String> snapSets = AppSupportUtil.getVolumeGroupSnapshotSets(id);
for (String snap : snapSets) {
List<NamedRelatedResourceRep> snapshots = AppSupportUtil.getVolumeGroupSnapshotsForSet(id, snap);
snapDetails.add(new ApplicationSnapshotSets(snap, snapshots));
}
renderJSON(DataTablesSupport.createJSON(snapDetails, params));
}
Aggregations