use of models.datatable.ApplicationSnapshotDataTable.ApplicationSnapshots in project coprhd-controller by CoprHD.
the class BlockApplications method getAssociatedSnapshotsJSON.
public static void getAssociatedSnapshotsJSON(String snapLabel) {
String[] snapSets = snapLabel.split("~~~");
List<ApplicationSnapshots> snapShotDetails = Lists.newArrayList();
List<NamedRelatedResourceRep> snapsetDetails = AppSupportUtil.getVolumeGroupSnapshotsForSet(snapSets[0], snapSets[1]);
for (NamedRelatedResourceRep snapShot : snapsetDetails) {
BlockSnapshotRestRep blockSnapshot = BourneUtil.getViprClient().blockSnapshots().get(snapShot.getId());
snapShotDetails.add(new ApplicationSnapshots(blockSnapshot));
}
renderJSON(DataTablesSupport.createJSON(snapShotDetails, params));
}
Aggregations