Search in sources :

Example 1 with ApplicationSnapSessionSets

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

Aggregations

NamedRelatedResourceRep (com.emc.storageos.model.NamedRelatedResourceRep)1 ApplicationSnapSessionSets (models.datatable.ApplicationSnapSessionSetDataTable.ApplicationSnapSessionSets)1