@ -46,9 +46,6 @@ import org.springframework.util.Assert;
* /
* /
public class JdbcAclService implements AclService {
public class JdbcAclService implements AclService {
// ~ Static fields/initializers
// =====================================================================================
protected static final Log log = LogFactory . getLog ( JdbcAclService . class ) ;
protected static final Log log = LogFactory . getLog ( JdbcAclService . class ) ;
private static final String DEFAULT_SELECT_ACL_CLASS_COLUMNS = "class.class as class" ;
private static final String DEFAULT_SELECT_ACL_CLASS_COLUMNS = "class.class as class" ;
@ -70,9 +67,6 @@ public class JdbcAclService implements AclService {
+ "and parent.object_id_identity = ? and parent.object_id_class = ("
+ "and parent.object_id_identity = ? and parent.object_id_class = ("
+ "select id FROM acl_class where acl_class.class = ?)" ;
+ "select id FROM acl_class where acl_class.class = ?)" ;
// ~ Instance fields
// ================================================================================================
protected final JdbcOperations jdbcOperations ;
protected final JdbcOperations jdbcOperations ;
private final LookupStrategy lookupStrategy ;
private final LookupStrategy lookupStrategy ;
@ -83,9 +77,6 @@ public class JdbcAclService implements AclService {
private AclClassIdUtils aclClassIdUtils ;
private AclClassIdUtils aclClassIdUtils ;
// ~ Constructors
// ===================================================================================================
public JdbcAclService ( DataSource dataSource , LookupStrategy lookupStrategy ) {
public JdbcAclService ( DataSource dataSource , LookupStrategy lookupStrategy ) {
this ( new JdbcTemplate ( dataSource ) , lookupStrategy ) ;
this ( new JdbcTemplate ( dataSource ) , lookupStrategy ) ;
}
}
@ -98,9 +89,6 @@ public class JdbcAclService implements AclService {
this . aclClassIdUtils = new AclClassIdUtils ( ) ;
this . aclClassIdUtils = new AclClassIdUtils ( ) ;
}
}
// ~ Methods
// ========================================================================================================
public List < ObjectIdentity > findChildren ( ObjectIdentity parentIdentity ) {
public List < ObjectIdentity > findChildren ( ObjectIdentity parentIdentity ) {
Object [ ] args = { parentIdentity . getIdentifier ( ) . toString ( ) , parentIdentity . getType ( ) } ;
Object [ ] args = { parentIdentity . getIdentifier ( ) . toString ( ) , parentIdentity . getType ( ) } ;
List < ObjectIdentity > objects = jdbcOperations . query ( findChildrenSql , args , ( rs , rowNum ) - > {
List < ObjectIdentity > objects = jdbcOperations . query ( findChildrenSql , args , ( rs , rowNum ) - > {