소스 검색

SEC-1022: Remove use of static methods/initializers in Acl Permissions. Added setter for PermissionFactory to AclPermissionEvaluator

Luke Taylor 16 년 전
부모
커밋
24155d4abe
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      acl/src/main/java/org/springframework/security/acls/AclPermissionEvaluator.java

+ 5 - 1
acl/src/main/java/org/springframework/security/acls/AclPermissionEvaluator.java

@@ -125,7 +125,7 @@ public class AclPermissionEvaluator implements PermissionEvaluator {
             }
 
         }
-        throw new IllegalArgumentException("unsupported permission: " + permission);
+        throw new IllegalArgumentException("Unsupported permission: " + permission);
     }
 
     public void setObjectIdentityRetrievalStrategy(ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy) {
@@ -139,4 +139,8 @@ public class AclPermissionEvaluator implements PermissionEvaluator {
     public void setSidRetrievalStrategy(SidRetrievalStrategy sidRetrievalStrategy) {
         this.sidRetrievalStrategy = sidRetrievalStrategy;
     }
+
+    public void setPermissionFactory(PermissionFactory permissionFactory) {
+        this.permissionFactory = permissionFactory;
+    }
 }