Java 类org.springframework.data.repository.query.spi.EvaluationContextExtension 实例源码

项目:BikeMan    文件:SecurityConfiguration.java   
/**
 * This allows SpEL support in Spring Data JPA @Query definitions.
 * <p>
 * See https://spring.io/blog/2014/07/15/spel-support-in-spring-data-jpa-query-definitions
 */
@Bean
EvaluationContextExtension securityExtension() {
    return new EvaluationContextExtensionSupport() {
        @Override
        public String getExtensionId() {
            return "security";
        }

        @Override
        public SecurityExpressionRoot getRootObject() {
            return new SecurityExpressionRoot(SecurityContextHolder.getContext().getAuthentication()) {
            };
        }
    };
}
项目:lostodos    文件:SecurityConfiguration.java   
/**
 * This allows SpEL support in Spring Data JPA @Query definitions.
 *
 * See https://spring.io/blog/2014/07/15/spel-support-in-spring-data-jpa-query-definitions
 */
@Bean
EvaluationContextExtension securityExtension() {
    return new EvaluationContextExtensionSupport() {
        @Override
        public String getExtensionId() {
            return "security";
        }

        @Override
        public SecurityExpressionRoot getRootObject() {
            return new SecurityExpressionRoot(SecurityContextHolder.getContext().getAuthentication()) {};
        }
    };
}
项目:jhipster-websocket-example    文件:SecurityConfiguration.java   
/**
 * This allows SpEL support in Spring Data JPA @Query definitions.
 *
 * See https://spring.io/blog/2014/07/15/spel-support-in-spring-data-jpa-query-definitions
 */
@Bean
EvaluationContextExtension securityExtension() {
    return new EvaluationContextExtensionSupport() {
        @Override
        public String getExtensionId() {
            return "security";
        }

        @Override
        public SecurityExpressionRoot getRootObject() {
            return new SecurityExpressionRoot(SecurityContextHolder.getContext().getAuthentication()) {};
        }
    };
}
项目:fat-lining    文件:FatLiningApplication.java   
@Bean
public EvaluationContextExtension securityExtension() {
    return new SecurityEvaluationContextExtension();
}
项目:spring-data-examples    文件:SecurityConfiguration.java   
@Bean
EvaluationContextExtension securityExtension() {
    return new SecurityEvaluationContextExtension();
}
项目:Catdogtion    文件:SecurityConfiguration.java   
@Bean
public EvaluationContextExtension securityExtension() {
  return new SecurityEvaluationContextExtension();
}
项目:spring-oauth-social-microservice-starter    文件:SecurityConfig.java   
/**
 * Extend SpEL with security concerns
 * @return
 */
@Bean
public EvaluationContextExtension securityExtension() {
    return new SecurityEvaluationContextExtension();
}
项目:discoursedb-core    文件:SecurityConfig.java   
@Bean
EvaluationContextExtension securityExtension() {
    return new SecurityEvaluationContextExtension();
}
项目:dionysus    文件:WebApplication.java   
@Bean
EvaluationContextExtension securityExtension() {
    return new SecurityEvaluationContextExtension();
}