Producing a Roles Assignment/Security report

I am creating a Roles Assignment report.

How do I retrieve a list of Annotated Roles (design time) and its resource policies (permissions)

Does anyone have such a report they would like to share ?

You can use the ResourceRoleModelListView class as an example, see its loadRoles() method:

@Autowired
private RoleModelConverter roleModelConverter;
@Autowired
private ResourceRoleRepository roleRepository;

private void loadRoles(@Nullable RoleFilterChangeEvent event) {
    List<ResourceRoleModel> roleModels = roleRepository.getAllRoles().stream()
            .filter(role -> event == null || event.matches(role))
            .map(roleModelConverter::createResourceRoleModel)
            .sorted(Comparator.comparing(ResourceRoleModel::getName))
            .collect(Collectors.toList());
// ...
}