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 3E9BB2009EE for ; Wed, 18 May 2016 22:51:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3D4EE160A00; Wed, 18 May 2016 20:51:03 +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 84EB51609B0 for ; Wed, 18 May 2016 22:51:02 +0200 (CEST) Received: (qmail 97826 invoked by uid 500); 18 May 2016 20:51:01 -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 97814 invoked by uid 99); 18 May 2016 20:51:01 -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; Wed, 18 May 2016 20:51:01 +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 0167218044B for ; Wed, 18 May 2016 20:51:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.28 X-Spam-Level: * X-Spam-Status: No, score=1.28 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=stromboli-it.20150623.gappssmtp.com Received: from mx2-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 ZEhoIku9O--Q for ; Wed, 18 May 2016 20:50:59 +0000 (UTC) Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 78B115F248 for ; Wed, 18 May 2016 20:50:58 +0000 (UTC) Received: by mail-lf0-f48.google.com with SMTP id m64so25060826lfd.1 for ; Wed, 18 May 2016 13:50:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stromboli-it.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=P7IfDUrhry0dzViJQ1GVdpesB/EZYZ9AD2gIL9PgF40=; b=eW2e06XWmdblDzb2vnZm7F/zuQq99GweC/H8g5vkJ+jp4thU1e0nC9HfDhdq099FSY 2p0Ytc27f58wryXFSY6fHHfgCTRooZEM7de7jK20C+w2YV4m0kNIeJX4dda8G5i/YHgE ouw4EqEe5Qld+LEdva9fq0i3PUSjWnWG47GI0nwx+vjNTre8r+2eztTCnkWSM4yuxS3e zVv3P9fCqQJbwN5s6hYSXfnU3ZhWzKyyYx7N5cDc6K3ormQ+3CTPjCsLVsxmr4y3Wn6D fYxLsdAsRpuGkFhdzcrpR4MtMf1cqJWwMYZuMAfOsLiiqE+JsKcBdqqz1U0QNrh1muGV s/KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=P7IfDUrhry0dzViJQ1GVdpesB/EZYZ9AD2gIL9PgF40=; b=Z9Fn0rcC62Ut48dRtA5WX0lIHsvo5fIQYQ0rpOYu8nxPL8lTLK+IKnP0zZTWde9qhC aLaQZ4FrZjWmOw1OWVdNxwpLPmwfn5Lgw1r9CBXUhUMwrOYbSRUZYeuM2ufxdN/AkrnX 57cccu7bYwZFfzQtXXslInNAoZgnSK554ebDIwdN8DlzBB91O4lVRbdETYdWPczWjynp fgfeBg4BZ/b1OzM0BHNXqkYKP9KYRSP9jzODp9WVqurkW8qpzAe+LNuIttqHaF0ubsdE Msnajg2NLmEn62HauaypnupyjQhh4RKPlapQP1gQKFgDU8Rx9LRXo+lGD8vhnyb0tWId 6hkQ== X-Gm-Message-State: AOPr4FV5MjwjPLH03HV9KKW1KhY9Qg2PF9qaGUXQbpwJ1y/dtsJE5CafUXkb61z4W9nnVj8u/rKLSsCjfOxMLw== X-Received: by 10.25.20.105 with SMTP id k102mr2866737lfi.110.1463604651820; Wed, 18 May 2016 13:50:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.127.210 with HTTP; Wed, 18 May 2016 13:50:32 -0700 (PDT) In-Reply-To: References: From: Jeroen van der Wal Date: Wed, 18 May 2016 22:50:32 +0200 Message-ID: Subject: Re: Mult-Tenancy To: users Content-Type: multipart/alternative; boundary=001a113fc2305d17800533240314 archived-at: Wed, 18 May 2016 20:51:03 -0000 --001a113fc2305d17800533240314 Content-Type: text/plain; charset=UTF-8 Hi Sunand, Because we needed more sophistication we've gone for option 3 and not implemented 1 and 2 but Datanucleus should be able to support those scenarios [1]. What use case are your trying to solve? Cheers, Jeroen [1] http://www.datanucleus.org/products/accessplatform_3_1/rdbms/multitenancy.html On 18 May 2016 at 19:08, sunand p wrote: > Hi, > > We have Isis-Security module as an addon which provides multi-tenancy > feature. Presently multi-tenancy as I understand is with respect to > associating an user to a tenant and assigning roles and permissions. "*Each > user can be associated with a particular tenancy, and Isis can then be > configured such that they cannot access data in other tenancies*" > > As for data, multi-tenancy is achieved via following ways, > > 1) Have a separate schema per tenant and have the tables created within the > schema and refer to it as (for example) *tenant1_schema.table1* > > 2) Have a separate database assigned to a tenant and keep all the data in > that DB. > > 3) Store all data in one table and have a tenant id discriminator. Include > the discriminator in the query framework after resolving a tenant add the > where clause to each query (For example) Select * from Table1 where > tenantId = 'tenant1' > > As for Apache Isis how can I support Option 1 and Option 2 in the current > framework? > --001a113fc2305d17800533240314--