Search in sources :

Example 1 with BlockConsistencyGroup

use of models.datatable.BlockConsistencyGroupDataTable.BlockConsistencyGroup in project coprhd-controller by CoprHD.

the class ConsistencyGroups method listJson.

public static void listJson(String projectId) {
    List<BlockConsistencyGroup> items = Lists.newArrayList();
    if (StringUtils.isNotBlank(projectId)) {
        for (BlockConsistencyGroupRestRep cg : BlockConsistencyGroupUtils.getBlockConsistencyGroups(projectId)) {
            items.add(new BlockConsistencyGroup(cg));
        }
    }
    renderJSON(DataTablesSupport.createJSON(items, params));
}
Also used : BlockConsistencyGroupRestRep(com.emc.storageos.model.block.BlockConsistencyGroupRestRep) BlockConsistencyGroup(models.datatable.BlockConsistencyGroupDataTable.BlockConsistencyGroup)

Aggregations

BlockConsistencyGroupRestRep (com.emc.storageos.model.block.BlockConsistencyGroupRestRep)1 BlockConsistencyGroup (models.datatable.BlockConsistencyGroupDataTable.BlockConsistencyGroup)1