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

This commit is contained in:
Luke Taylor 2009-09-16 15:32:17 +00:00
parent 80dc0388c7
commit 24155d4abe
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}
}