Example usage for org.springframework.security.acls.model AuditableAcl getEntries

List of usage examples for org.springframework.security.acls.model AuditableAcl getEntries

Introduction

In this page you can find the example usage for org.springframework.security.acls.model AuditableAcl getEntries.

Prototype

List<AccessControlEntry> getEntries();

Source Link

Document

Returns all of the entries represented by the present Acl.

Usage

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  w w  w. j av  a 2 s  .  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 );
}