Example usage for org.springframework.security.acls.domain AclImpl getEntries

List of usage examples for org.springframework.security.acls.domain AclImpl getEntries

Introduction

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

Prototype

@Override
    public List<AccessControlEntry> getEntries() 

Source Link

Usage

From source file:org.tibetjungle.demo.service.DataSourcePopulator.java

private void grantPermissions(int contactNumber, String recipientUsername, Permission permission) {
    AclImpl acl = (AclImpl) mutableAclService
            .readAclById(new ObjectIdentityImpl(Contact.class, new Long(contactNumber)));
    acl.insertAce(acl.getEntries().size(), permission, new PrincipalSid(recipientUsername), true);
    updateAclInTransaction(acl);// w  w  w . jav a  2 s . c o m
}