Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F1E58200D4C for ; Thu, 30 Nov 2017 12:57:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id EFC83160BF4; Thu, 30 Nov 2017 11:57:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 40C3B160BEA for ; Thu, 30 Nov 2017 12:57:59 +0100 (CET) Received: (qmail 12783 invoked by uid 500); 30 Nov 2017 11:57:58 -0000 Mailing-List: contact users-help@isis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@isis.apache.org Delivered-To: mailing list users@isis.apache.org Received: (qmail 12771 invoked by uid 99); 30 Nov 2017 11:57:58 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Nov 2017 11:57:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A018B180898 for ; Thu, 30 Nov 2017 11:57:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.301 X-Spam-Level: X-Spam-Status: No, score=-0.301 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=healthengine-com-au.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id crP2j6Dcvg9O for ; Thu, 30 Nov 2017 11:57:55 +0000 (UTC) Received: from mail-io0-f174.google.com (mail-io0-f174.google.com [209.85.223.174]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 438755F576 for ; Thu, 30 Nov 2017 11:57:55 +0000 (UTC) Received: by mail-io0-f174.google.com with SMTP id x129so7216092iod.13 for ; Thu, 30 Nov 2017 03:57:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=healthengine-com-au.20150623.gappssmtp.com; s=20150623; h=message-id:mime-version:to:from:subject:date:importance; bh=01bW9l6AyBtYEkZfBHbQh55umePM4rqIhxLjSUYwBv8=; b=sIkZnYhanCZhJJfZtMqbonhMXTnFvbXZ+iE9QXkcwDrteiSVT+HQklBxIsybBmwaBN c71zvHKNunwe4l9fNK57Q9Sb052nNaFWYIKDTHOOR8FIp2tzrC6xg8Ldfsv/RY6MTBKS mmxCZ89YJbDCywgu/lcgmhZpG7xEdWL/UcU+ggpkB2uaYM5kYRr5DFCGT7evqS11uKIl dgALzby0/ZghVe5ljLvoGE8S7Aom7om2NmmvxhYX7oRzyFFiPs3ItmFvZk3uZ7UCjqkK RaNGly0WQa5EMFsX9qbLI2zcB0NLH+djV5Av4ztZ8iyvLudtqA/ICW1FyMEIORCbTnrH O53g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version:to:from:subject:date :importance; bh=01bW9l6AyBtYEkZfBHbQh55umePM4rqIhxLjSUYwBv8=; b=ML1uNhVO8T5d4g0d5FMczpy5ecAO+iBNvUuOnpOdV4mR4XZ7y8BJUzadU5wX67Vi3X Ep2Qhhhn5oP02NyXMMlbKcMQjAsI7LBLFndDUZmj4LLqzxfdYFxJ2lIg8n39dem+M2fg +uklzjMYjh40/E3pJ9lbMUZvxsY/Ae6s4sjLpwuN2SHphHNVMxJG6JU7h1YLPcnMRync 0EA7nmUIEJu5rxuOzfxEL+B7jvMqYrwVAncnJtO4uxwlCThhdwCkyTXho3QiUEO/O00s sJqcyIKv/T1oGHBzHLfr8V5pcj/Z+hdHg/rYrDdMjwbDqvEMa9iZtk2Ob75tNbXSbdes ewMQ== X-Gm-Message-State: AJaThX6iJ4T3FJ6d4PJwa2NGP9Yj3t2Z/Iw5QKbYQYGHlq+whydkWyTM MWkvukMvnvycHObPik0osDX8OTmD6dw= X-Google-Smtp-Source: AGs4zMaalpl3bJYtC44yzjXFbHPB/+XDNnJ/TRg7ySSxNgzkDUHV2lZio9pUdf3Wt+XYNiH35pz5aw== X-Received: by 10.107.174.222 with SMTP id n91mr7143729ioo.43.1512043073825; Thu, 30 Nov 2017 03:57:53 -0800 (PST) Received: from ?IPv6:::ffff:192.168.1.135? ([219.91.231.104]) by smtp.gmail.com with ESMTPSA id w133sm2225452itc.44.2017.11.30.03.57.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Nov 2017 03:57:53 -0800 (PST) Message-ID: <5a1ff241.8b6e240a.ec36c.e905@mx.google.com> MIME-Version: 1.0 To: "users@isis.apache.org" From: Nikhil Dhamapurkar Subject: Tenancy restriction - entity that relates to more than one Other entity. Date: Thu, 30 Nov 2017 17:27:53 +0530 Importance: normal X-Priority: 3 Content-Type: multipart/alternative; boundary="_5DF1A687-CCA5-4735-AD6E-C09D4FCE8086_" archived-at: Thu, 30 Nov 2017 11:58:00 -0000 --_5DF1A687-CCA5-4735-AD6E-C09D4FCE8086_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Hi, I am working on supporting Multi Tenancy in Apache ISIS I have tried both = 1) ApplicationTenancyEvaluator and 2) HasAtPath interfaces to control what = the logged in user can see or execute. I have been able to make them work to an acceptable state but I face issue = when I come across collections that are part of the entity I am evaluating. My Domain model has Patient / Practitioner entity both these entity can be= associated with Different Practices at the same time. Example : PractitionerA belongs to PracticeA and PracticeB both, logged = in User has =E2=80=9CRole=E2=80=9D to Access PracticeA. Issue with ApplicationTenancyEvaluator : since Practitioner and Practice ha= ve many to many relation even if the role has access to only one practice I= =E2=80=99ll end up displaying PracticeB on wicket viewer which I want to pr= event, Is it possible ? Issue with HasAtPath :=20 I am creating Path programmatically with pattern as : ORG/org/PRACTICE// pattern which models a tree, then I can control user access t= o more than one Patient data if user at path is /ORG/org Or restrict acces= s to one practice /ORG/org/PRACTICE/practiceA=20 If the Patient Entity is associated with more than one practice My logic wi= ll Break as I would not know what should be the context for the for ORG/org= /PRACTICE/ Does anyone have a better solution to tackle tenancy for a Collection withi= n an entity? Regards Nikhil --_5DF1A687-CCA5-4735-AD6E-C09D4FCE8086_--