Example usage for org.springframework.security.acls.jdbc JdbcMutableAclService setClassIdentityQuery

List of usage examples for org.springframework.security.acls.jdbc JdbcMutableAclService setClassIdentityQuery

Introduction

In this page you can find the example usage for org.springframework.security.acls.jdbc JdbcMutableAclService setClassIdentityQuery.

Prototype

public void setClassIdentityQuery(String classIdentityQuery) 

Source Link

Document

Sets the query that will be used to retrieve the identity of a newly created row in the acl_class table.

Usage

From source file:org.bremersee.common.spring.autoconfigure.AclServiceAutoConfiguration.java

@Bean
public JdbcMutableAclService aclService() {
    final JdbcMutableAclService service = new JdbcMutableAclService(dataSource, lookupStrategy(), aclCache);
    service.setClassIdentityQuery(aclProperties.getClassIdentityQuery());
    service.setSidIdentityQuery(aclProperties.getSidIdentityQuery());
    return service;
}

From source file:org.createnet.raptor.auth.service.AclConfiguration.java

/**
 * @TODO Add additional support for @setSidIdentityQuery
 *///from  w w  w .  j a v a  2  s .c o  m
@Bean
public JdbcMutableAclService aclService() {
    JdbcMutableAclService service = new JdbcMutableAclService(dataSource, lookupStrategy(), aclCache());
    service.setSidIdentityQuery(lastInsertQuery);
    service.setClassIdentityQuery(lastInsertQuery);
    return service;
}