浏览代码

SEC-697: Add setOwner(Sid) to MutableAcl interface.

Ben Alex 17 年之前
父节点
当前提交
af9715c168
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      acl/src/main/java/org/springframework/security/acls/MutableAcl.java

+ 7 - 0
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()}.
      *