class MongoDbAuthorityRepository implements AuthorityRepository {

    @Override
    public List<Authority> getAll() {
        return CollectionUtils.<Authority>toBaseTypedList(template.findAll(CLASS, AUTHORITY_COLLECTION));
    }

}