Search in sources :

Example 1 with ApplicationSnapshots

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));
}
Also used : ApplicationSnapshots(models.datatable.ApplicationSnapshotDataTable.ApplicationSnapshots) BlockSnapshotRestRep(com.emc.storageos.model.block.BlockSnapshotRestRep) NamedRelatedResourceRep(com.emc.storageos.model.NamedRelatedResourceRep)

Aggregations

NamedRelatedResourceRep (com.emc.storageos.model.NamedRelatedResourceRep)1 BlockSnapshotRestRep (com.emc.storageos.model.block.BlockSnapshotRestRep)1 ApplicationSnapshots (models.datatable.ApplicationSnapshotDataTable.ApplicationSnapshots)1