use of models.datatable.ApplicationSnapSessionDataTable.ApplicationSnapshotSession in project coprhd-controller by CoprHD.
the class BlockApplications method getAssociatedSnapSessionJSON.
public static void getAssociatedSnapSessionJSON(String sessionLabel) {
String[] sessionSet = sessionLabel.split("~~~");
List<ApplicationSnapshotSession> sessionDetails = Lists.newArrayList();
List<NamedRelatedResourceRep> sessionSetDetails = AppSupportUtil.getVolumeGroupSnapshotSessionsByCopySet(sessionSet[0], sessionSet[1]);
for (NamedRelatedResourceRep snapSession : sessionSetDetails) {
BlockSnapshotSessionRestRep snapshotSession = BourneUtil.getViprClient().blockSnapshotSessions().get(snapSession.getId());
sessionDetails.add(new ApplicationSnapshotSession(snapshotSession));
}
renderJSON(DataTablesSupport.createJSON(sessionDetails, params));
}
Aggregations