title: Spring Data REST filtering data based on the user
body: <p>If I have a repository setup like the following, making use of Spring Data REST, I can access the data at /receipts and see all data.  However, I want to only return data for the user.  I have a custom finder "findByStorer" which would do this.  How would I get Spring Data REST to use this and get the storer value from the user rather than specifying a query parameter?</p>
  
  <pre><code>@RepositoryRestResource(collectionResourceRel = "receipts", path = "receipts")
  public interface ReceiptRepository extends PagingAndSortingRepository&lt;Receipt, BigDecimal&gt; {
  
      @Query
      public Page&lt;Receipt&gt; findByStorer(String storer, Pageable pageable);
  }
  </code></pre>
  
  <p>I haven't implemented any security yet, so this question is more theory at the moment than practice.</p>
  
  <p>Thanks.</p>