// =================================== ACLs ============================= //
// register an ACL with the resource 0 - identity has all permissions here.
Collection<ACLEntry> entries = new ArrayList<ACLEntry>();
entries.add(new ACLEntryImpl(new CompositeACLPermission(BasicACLPermission.values()), this.identity));
registration.registerACL(this.resources[0], entries);
// register an ACL with the resource 4 - identity has read and update permissions.
entries = new ArrayList<ACLEntry>();
entries.add(new ACLEntryImpl(new CompositeACLPermission(BasicACLPermission.READ, BasicACLPermission.UPDATE),
this.identity));
registration.registerACL(this.resources[4], entries);
// register an ACL with the resource 5 - identity has create, read and delete permissions.
entries = new ArrayList<ACLEntry>();
entries.add(new ACLEntryImpl(new CompositeACLPermission(BasicACLPermission.CREATE, BasicACLPermission.READ,
BasicACLPermission.DELETE), this.identity));
registration.registerACL(this.resources[5], entries);
// register an ACL with the resource 7 - identity has no corresponding entry (no permissions).
entries = new ArrayList<ACLEntry>();
entries.add(new ACLEntryImpl(new CompositeACLPermission(BasicACLPermission.values()), IdentityFactory
.createIdentity("Another Identity")));
registration.registerACL(this.resources[7], entries);
// register an ACL with the resource 9 - identity has only read permission.
entries = new ArrayList<ACLEntry>();
entries.add(new ACLEntryImpl(new CompositeACLPermission(BasicACLPermission.READ), this.identity));
registration.registerACL(this.resources[9], entries);
}