'Returns a list of transfers, transformed through view builder.'

def _get_transfers(self, req, is_detail):

    context = req.environ['cinder.context']
    filters = req.params.copy()
    LOG.debug('Listing    volume    transfers')
    transfers = self.transfer_api.get_all(context, filters=filters)
    transfer_count = len(transfers)
    limited_list = common.limited(transfers, req)
    if is_detail:
        transfers = self._view_builder.detail_list(req, limited_list, transfer_count)
    else:
        transfers = self._view_builder.summary_list(req, limited_list, transfer_count)
    return transfers
