@Requires(property="micronaut.security.views-model-decorator.enabled",notEquals="false") @Requires(beans={io.micronaut.security.filters.SecurityFilter.class,io.micronaut.security.utils.SecurityService.class,SecurityViewModelProcessorConfiguration.class}) @Singleton public class SecurityViewModelProcessor extends Object implements ViewModelProcessor
Constructor and Description |
---|
SecurityViewModelProcessor(SecurityViewModelProcessorConfiguration securityViewModelProcessorConfiguration,
io.micronaut.security.utils.SecurityService securityService) |
Modifier and Type | Method and Description |
---|---|
void |
process(HttpRequest<?> request,
ModelAndView<Map<String,Object>> modelAndView)
Invoked prior to the view rendering.
|
public SecurityViewModelProcessor(SecurityViewModelProcessorConfiguration securityViewModelProcessorConfiguration, io.micronaut.security.utils.SecurityService securityService)
securityViewModelProcessorConfiguration
- The Security Views Model Decorator configurationsecurityService
- Utility to access Security informationpublic void process(@Nonnull HttpRequest<?> request, @Nonnull ModelAndView<Map<String,Object>> modelAndView)
ViewModelProcessor
process
in interface ViewModelProcessor
request
- The request being processedmodelAndView
- The model and view