Class SecurityViewModelProcessor

java.lang.Object
io.micronaut.views.model.security.SecurityViewModelProcessor
All Implemented Interfaces:
ViewModelProcessor<Map<String,Object>>

@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}) @Requires(classes=io.micronaut.http.HttpRequest.class) @Singleton public class SecurityViewModelProcessor extends Object implements ViewModelProcessor<Map<String,Object>>
Returns information about the current user so that it can be appended to the model being rendered.
Since:
1.1.0
Author:
Sergio del Amo
  • Constructor Details

    • SecurityViewModelProcessor

      public SecurityViewModelProcessor(SecurityViewModelProcessorConfiguration securityViewModelProcessorConfiguration, io.micronaut.security.utils.SecurityService securityService)
      Parameters:
      securityViewModelProcessorConfiguration - The Security Views Model Decorator configuration
      securityService - Utility to access Security information
  • Method Details