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