@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 java.lang.Object implements ViewModelProcessor
Constructor and Description |
---|
SecurityViewModelProcessor(SecurityViewModelProcessorConfiguration securityViewModelProcessorConfiguration,
io.micronaut.security.utils.SecurityService securityService) |
Modifier and Type | Method and Description |
---|---|
void |
process(io.micronaut.http.HttpRequest<?> request,
ModelAndView<java.util.Map<java.lang.String,java.lang.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 io.micronaut.http.HttpRequest<?> request, @Nonnull ModelAndView<java.util.Map<java.lang.String,java.lang.Object>> modelAndView)
ViewModelProcessor
process
in interface ViewModelProcessor
request
- The request being processedmodelAndView
- The model and view