|
|
|
@ -53,7 +53,7 @@ public class AclImpl implements Acl, MutableAcl, AuditableAcl, OwnershipAcl { |
|
|
|
|
|
|
|
|
|
|
|
//~ Constructors ===================================================================================================
|
|
|
|
//~ Constructors ===================================================================================================
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Minimal constructor, which should be used {@link |
|
|
|
* Minimal constructor, which should be used {@link |
|
|
|
* org.springframework.security.acls.MutableAclService#createAcl(ObjectIdentity)}. |
|
|
|
* org.springframework.security.acls.MutableAclService#createAcl(ObjectIdentity)}. |
|
|
|
* |
|
|
|
* |
|
|
|
@ -74,7 +74,7 @@ public class AclImpl implements Acl, MutableAcl, AuditableAcl, OwnershipAcl { |
|
|
|
this.auditLogger = auditLogger; |
|
|
|
this.auditLogger = auditLogger; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Full constructor, which should be used by persistence tools that do not |
|
|
|
* Full constructor, which should be used by persistence tools that do not |
|
|
|
* provide field-level access features. |
|
|
|
* provide field-level access features. |
|
|
|
* |
|
|
|
* |
|
|
|
@ -106,7 +106,7 @@ public class AclImpl implements Acl, MutableAcl, AuditableAcl, OwnershipAcl { |
|
|
|
this.owner = owner; |
|
|
|
this.owner = owner; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Private no-argument constructor for use by reflection-based persistence |
|
|
|
* Private no-argument constructor for use by reflection-based persistence |
|
|
|
* tools along with field-level access. |
|
|
|
* tools along with field-level access. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ -153,8 +153,7 @@ public class AclImpl implements Acl, MutableAcl, AuditableAcl, OwnershipAcl { |
|
|
|
return parentAcl; |
|
|
|
return parentAcl; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void insertAce(int atIndexLocation, Permission permission, Sid sid, boolean granting) |
|
|
|
public void insertAce(int atIndexLocation, Permission permission, Sid sid, boolean granting) throws NotFoundException { |
|
|
|
throws NotFoundException { |
|
|
|
|
|
|
|
aclAuthorizationStrategy.securityCheck(this, AclAuthorizationStrategy.CHANGE_GENERAL); |
|
|
|
aclAuthorizationStrategy.securityCheck(this, AclAuthorizationStrategy.CHANGE_GENERAL); |
|
|
|
Assert.notNull(permission, "Permission required"); |
|
|
|
Assert.notNull(permission, "Permission required"); |
|
|
|
Assert.notNull(sid, "Sid required"); |
|
|
|
Assert.notNull(sid, "Sid required"); |
|
|
|
|