List of usage examples for org.springframework.security.acls.model AuditableAcl insertAce
void insertAce(int atIndexLocation, Permission permission, Sid sid, boolean granting) throws NotFoundException;
From source file:ubic.gemma.security.authorization.acl.AclAdvice.java
/** * Add ACE granting permission to sid to ACL (does not persist the change, you have to call update!) * /*from ww w . j a va 2s. c o m*/ * @param acl which object * @param permission which permission * @param sid which principal */ private void grant(AuditableAcl acl, Permission permission, Sid sid) { acl.insertAce(acl.getEntries().size(), permission, sid, true); /* * This is a problem if the object is created by a regular user. Only admins can set auditing on objects. */ // acl.updateAuditing( acl.getEntries().size() - 1, true, true ); }