@ConditionalOnMissingBean(name = "jdbcAcceptableUsagePolicyTransactionTemplate")
    @Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public TransactionOperations jdbcAcceptableUsagePolicyTransactionTemplate(
        final ConfigurableApplicationContext applicationContext,
        @Qualifier("jdbcAcceptableUsagePolicyTransactionManager")
        final PlatformTransactionManager jdbcAcceptableUsagePolicyTransactionManager,
        final CasConfigurationProperties casProperties) {
        return BeanSupplier.of(TransactionOperations.class)
            .when(AcceptableUsagePolicyRepository.CONDITION_AUP_ENABLED.given(applicationContext.getEnvironment()))
            .supply(() -> {
                val t = new TransactionTemplate(jdbcAcceptableUsagePolicyTransactionManager);
                t.setIsolationLevelName(casProperties.getAcceptableUsagePolicy().getJdbc().getIsolationLevelName());
                t.setPropagationBehaviorName(casProperties.getAcceptableUsagePolicy().getJdbc().getPropagationBehaviorName());
                return t;
            })
            .otherwiseProxy()
            .get();
    }
This is {@link CasAcceptableUsagePolicyJdbcAutoConfiguration} that stores AUP decisions in a mongo database.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-aup-jdbc/src/main/java/org/apereo/cas/config/CasAcceptableUsagePolicyJdbcAutoConfiguration.java