From af9715c168a95beab92843b289222058fafc498f Mon Sep 17 00:00:00 2001 From: Ben Alex Date: Sat, 5 Apr 2008 03:08:45 +0000 Subject: [PATCH] SEC-697: Add setOwner(Sid) to MutableAcl interface. --- .../java/org/springframework/security/acls/MutableAcl.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/acl/src/main/java/org/springframework/security/acls/MutableAcl.java b/acl/src/main/java/org/springframework/security/acls/MutableAcl.java index 7eff263139..de5f7d6603 100644 --- a/acl/src/main/java/org/springframework/security/acls/MutableAcl.java +++ b/acl/src/main/java/org/springframework/security/acls/MutableAcl.java @@ -56,6 +56,13 @@ public interface MutableAcl extends Acl { void insertAce(Serializable afterAceId, Permission permission, Sid sid, boolean granting) throws NotFoundException; + /** + * Changes the present owner to a different owner. + * + * @param newOwner the new owner (mandatory; cannot be null) + */ + void setOwner(Sid newOwner); + /** * Change the value returned by {@link Acl#isEntriesInheriting()}. *