Going forward, tenantDomain == null means only one thing. We don't know who
the tenant is or tenant hasn't been initialized, so we have to fail if we
are trying to perform some restricted operations.

On Thu, Jun 7, 2012 at 8:13 PM, Senaka Fernando <sen...@wso2.com> wrote:

> Hi Pradeep,
>
> Going through the code in Registry Kernel I discovered that you have made
> changes to determine whether you are super tenant as follows:
>
> tenantDomain == null ||
> MultitenantConstants.SUPER_TENANT_DOMAIN_NAME.equals(tenantDomain)
>
> Is this correct? Why are we checking for null or some constant?
>
> Thanks,
> Senaka.
>
> --
> *Senaka Fernando*
> Member - Integration Technologies Management Committee;
> Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* <http://www.apache.org/>**
email: **az...@wso2.com* <az...@wso2.com>* cell: +94 77 3320919
blog: **http://blog.afkham.org* <http://blog.afkham.org>*
twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to