Search in sources :

Example 1 with ApplicationSnapshotSession

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

Aggregations

NamedRelatedResourceRep (com.emc.storageos.model.NamedRelatedResourceRep)1 BlockSnapshotSessionRestRep (com.emc.storageos.model.block.BlockSnapshotSessionRestRep)1 ApplicationSnapshotSession (models.datatable.ApplicationSnapSessionDataTable.ApplicationSnapshotSession)1