Search in sources :

Example 1 with ApplicationSnapshotSets

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));
}
Also used : NamedRelatedResourceRep(com.emc.storageos.model.NamedRelatedResourceRep) ApplicationSnapshotSets(models.datatable.ApplicationSnapshotSetDataTable.ApplicationSnapshotSets)

Aggregations

NamedRelatedResourceRep (com.emc.storageos.model.NamedRelatedResourceRep)1 ApplicationSnapshotSets (models.datatable.ApplicationSnapshotSetDataTable.ApplicationSnapshotSets)1