I'm looking into using Grails and accessing MongoDB using GORM.
Say I have a domain class named BlogPost, but a specific user is only allowed to see certain blogs posts.
Now, In a controller action I can easily do something like BlogPost.where {}, but that will return all blog posts.
我需要一种集中机制来过滤控制器执行查询时返回的域对象。