@ -73,7 +73,7 @@ public final class BasicLookupStrategy implements LookupStrategy {
@@ -73,7 +73,7 @@ public final class BasicLookupStrategy implements LookupStrategy {
@ -97,30 +97,30 @@ public final class BasicLookupStrategy implements LookupStrategy {
@@ -97,30 +97,30 @@ public final class BasicLookupStrategy implements LookupStrategy {
+"left join acl_sid acli_sid on acli_sid.id = acl_object_identity.owner_sid "
+"left join acl_class on acl_class.id = acl_object_identity.object_id_class "
+"left join acl_entry on acl_object_identity.id = acl_entry.acl_object_identity "
+"left join acl_sid on acl_entry.sid = acl_sid.id "
+"where ( ";
StringendSql=") order by ACL_OBJECT_IDENTITY.OBJECT_ID_IDENTITY"
+" asc, ACL_ENTRY.ACE_ORDER asc";
StringendSql=") order by acl_object_identity.object_id_identity"
+" asc, acl_entry.ace_order asc";
StringBuffersqlStringBuffer=newStringBuffer();
sqlStringBuffer.append(startSql);
@ -196,30 +196,30 @@ public final class BasicLookupStrategy implements LookupStrategy {
@@ -196,30 +196,30 @@ public final class BasicLookupStrategy implements LookupStrategy {
@ -229,20 +229,20 @@ public final class BasicLookupStrategy implements LookupStrategy {
@@ -229,20 +229,20 @@ public final class BasicLookupStrategy implements LookupStrategy {
// Add an extra ACE to the ACL (ORDER BY maintains the ACE list order)
// It is permissable to have no ACEs in an ACL (which is detected by a null ACE_SID)
@ -283,7 +283,7 @@ public final class BasicLookupStrategy implements LookupStrategy {
@@ -283,7 +283,7 @@ public final class BasicLookupStrategy implements LookupStrategy {
// Make the "acls" map contain all requested objectIdentities
// (including markers to each parent in the hierarchy)
Stringsql=computeRepeatingSql("(ACL_OBJECT_IDENTITY.OBJECT_ID_IDENTITY = ? and ACL_CLASS.CLASS = ?)",
Stringsql=computeRepeatingSql("(acl_object_identity.object_id_identity = ? and acl_class.class = ?)",
objectIdentities.length);
SetparentsToLookup=(Set)jdbcTemplate.query(sql,
@ -338,7 +338,7 @@ public final class BasicLookupStrategy implements LookupStrategy {
@@ -338,7 +338,7 @@ public final class BasicLookupStrategy implements LookupStrategy {
Assert.notNull(acls,"ACLs are required");
Assert.notEmpty(findNow,"Items to find now required");
@ -473,7 +473,7 @@ public final class BasicLookupStrategy implements LookupStrategy {
@@ -473,7 +473,7 @@ public final class BasicLookupStrategy implements LookupStrategy {
convertCurrentResultIntoObject(acls,rs);
// Figure out if this row means we need to lookup another parent