* @param principal the principal to set the ACL for
* @param entityId the entityId to set the ACL on
* @param permissions the list of permissions to allow the user access to entityId
*/
public ACL setAcl(Principal principal, EntityId entityId, Iterable<PermissionType> permissions) {
ACL acl = new ACL(principal, permissions);
setAcl(new Key(entityId.getQualifiedId(), principal.getQualifiedId()), acl);
return acl;
}