class MongoDbAuthorityRepository implements AuthorityRepository {

    @Override
    public List<Authority> getAllDefault() {
        return CollectionUtils.<Authority>toBaseTypedList(template.find(query(where("defaultForNewUser").is(true)), CLASS, AUTHORITY_COLLECTION));
    }

}