GRAILS-10221 Added extension points

Extension points have been added in order to allow subclasses to limit the list and count methods.