'Return all known samples, based on the data recorded so far.
:param q: Filter rules for the samples to be returned.
:param limit: Maximum number of samples to be returned.'

@wsme_pecan.wsexpose([Sample], [base.Query], int)
def get_all(self, q=None, limit=None):

    rbac.enforce('get_samples', pecan.request)
    q = (q or [])
    limit = utils.enforce_limit(limit)
    kwargs = utils.query_to_kwargs(q, storage.SampleFilter.__init__)
    f = storage.SampleFilter(**kwargs)
    return map(Sample.from_db_model, pecan.request.storage_conn.get_samples(f, limit=limit))
