List of usage examples for org.springframework.security.acls.domain AclImpl getEntries
@Override
public List<AccessControlEntry> getEntries()
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 }