[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsf-c-dev
Subject:    Re: [Dev] Tenant Domain Separator Constant
From:       Mahesh Chinthaka <maheshc () wso2 ! com>
Date:       2014-11-28 6:22:15
Message-ID: CAECpFOoLpj73Zfws1nKSenbUXyYX4jM=Q8MQY21hykKqyhig2A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Fri, Nov 28, 2014 at 10:05 AM, Danushka Fernando <danushkaf@wso2.com>
wrote:

> The issue with MultitenantUtils is that we can use it to
> getTenantAwareUsername which means username without tenant domain. But
> there is no method for get full username when we have username and tenant
> domain. Shouldn't we have that kind of util too.
> 
> +1 , this is required in lot of places, everytime what we do is
concatenate tenant domain and username. its better if we have one method to
do it in one go.





> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
> 
> On Fri, Nov 28, 2014 at 10:03 AM, Nirmal Fernando <nirmal@wso2.com> wrote:
> 
> > On a related note, please use existing Utils methods without introducing
> > new logic with respect to finding tenant domain from a user name etc.
> > https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/core/org.wso2.carbon. \
> > utils/4.2.0/src/main/java/org/wso2/carbon/utils/multitenancy/MultitenantUtils.java
> >  
> > On Fri, Nov 21, 2014 at 10:23 AM, Malithi Edirisinghe <malithim@wso2.com>
> > wrote:
> > 
> > > Hi All,
> > > 
> > > I would like to know whether there is a constant defined for the tenant
> > > domain separator character '@' in the kernel.
> > > 
> > > I found a constant as ROLE_TENANT_DOMAIN_SEPARATOR in CarbonConstants
> > > and the doc comment says it's for handling shared group operations, and
> > > there must be a separator to separate role name and tenant domain. It seems
> > > that this constant is defined for some other purpose. Other than that I
> > > couldn't find any other constant defined for the tenant domain separator
> > > and I think we should have one.
> > > 
> > > Kindly would like to clarify on this.
> > > 
> > > Thanks,
> > > Malithi.
> > > 
> > > 
> > > --
> > > 
> > > *Malithi Edirisinghe*
> > > Senior Software Engineer
> > > WSO2 Inc.
> > > 
> > > Mobile : +94 (0) 718176807
> > > malithim@wso2.com
> > > 
> > > _______________________________________________
> > > Dev mailing list
> > > Dev@wso2.org
> > > http://wso2.org/cgi-bin/mailman/listinfo/dev
> > > 
> > > 
> > 
> > 
> > --
> > 
> > Thanks & regards,
> > Nirmal
> > 
> > Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
> > Mobile: +94715779733
> > Blog: http://nirmalfdo.blogspot.com/
> > 
> > 
> > 
> > _______________________________________________
> > Dev mailing list
> > Dev@wso2.org
> > http://wso2.org/cgi-bin/mailman/listinfo/dev
> > 
> > 
> 
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
> 
> 


-- 
*Mahesh Chinthaka Vidanagama* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 63 63 083 | Work: +94 112 145 345
Email: maheshc@wso2.com | Web: www.wso2.com


[Attachment #5 (text/html)]

<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov \
28, 2014 at 10:05 AM, Danushka Fernando <span dir="ltr">&lt;<a \
href="mailto:danushkaf@wso2.com" target="_blank">danushkaf@wso2.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div dir="ltr">The issue with MultitenantUtils is that \
we can use it to getTenantAwareUsername which means username without tenant domain. \
But there is no method for get full username when we have username and tenant domain. \
Shouldn&#39;t we have that kind of util too.</div><div class="gmail_extra"><br \
clear="all"><div><div><div dir="ltr"></div></div></div></div></blockquote><div>+1 , \
this is required in lot of places, everytime what we do is concatenate tenant domain \
and username. its better if we have one method to do it in one \
go.</div><div><br></div><div><br></div><div><br></div><div>  </div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div class="gmail_extra"><div><div><div dir="ltr">Thanks \
&amp; Regards<span class="HOEnZb"><font color="#888888"><div>Danushka \
Fernando</div><div>Software Engineer</div><div>WSO2 inc.  <a href="http://wso2.com/" \
target="_blank">http://wso2.com/</a></div><div>Mobile : <a href="tel:%2B94716332729" \
value="+94716332729" \
target="_blank">+94716332729</a></div></font></span></div></div></div><div><div \
class="h5"> <br><div class="gmail_quote">On Fri, Nov 28, 2014 at 10:03 AM, Nirmal \
Fernando <span dir="ltr">&lt;<a href="mailto:nirmal@wso2.com" \
target="_blank">nirmal@wso2.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">On a related note, please use existing Utils \
methods without introducing new logic with respect to finding tenant domain from a \
user name etc. <a href="https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/c \
ore/org.wso2.carbon.utils/4.2.0/src/main/java/org/wso2/carbon/utils/multitenancy/MultitenantUtils.java" \
target="_blank">https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/core/org. \
wso2.carbon.utils/4.2.0/src/main/java/org/wso2/carbon/utils/multitenancy/MultitenantUtils.java</a></div><div \
class="gmail_extra"><br><div class="gmail_quote"><span>On Fri, Nov 21, 2014 at 10:23 \
AM, Malithi Edirisinghe <span dir="ltr">&lt;<a href="mailto:malithim@wso2.com" \
target="_blank">malithim@wso2.com</a>&gt;</span> wrote:<br></span><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div><div><div dir="ltr">Hi All,<div><br></div><div>I would \
like to know whether there is a constant defined for the tenant domain separator \
character &#39;@&#39; in the kernel.</div><div><br></div><div>I found a constant as  \
ROLE_TENANT_DOMAIN_SEPARATOR in CarbonConstants and the doc comment says it&#39;s for \
handling shared group operations, and there must be a separator to separate role name \
and tenant domain. It seems that this constant is defined for some other purpose. \
Other than that I couldn&#39;t find any other constant defined for the tenant domain \
separator and I think we should have one.</div><div><br></div><div>Kindly would like \
to clarify on this.</div><div><br></div><div>Thanks,</div><div>Malithi.</div><span><font \
color="#888888"><div><br clear="all"><div><br></div>-- <br><div><div \
dir="ltr"><span><font color="#888888"><div><div><br><b>Malithi \
Edirisinghe</b><br></div><div dir="ltr"><div>Senior Software Engineer<br><span><font \
color="#888888"><span style="color:rgb(136,136,136)">WSO2 \
Inc.</span></font></span><br><br></div><div>Mobile : +94 (0) <font \
color="#888888">718176807</font><br></div> <div><a href="mailto:malithim@wso2.com" \
target="_blank">malithim@wso2.com</a></div></div></div> </font></span></div></div>
</div></font></span></div>
<br></div></div><span>_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@wso2.org" target="_blank">Dev@wso2.org</a><br>
<a href="http://wso2.org/cgi-bin/mailman/listinfo/dev" \
target="_blank">http://wso2.org/cgi-bin/mailman/listinfo/dev</a><br> \
<br></span></blockquote></div><span><font color="#888888"><br><br \
clear="all"><div><br></div>-- <br><div><div dir="ltr"><br>Thanks &amp; \
regards,<br>Nirmal<br><br>Senior Software Engineer- Platform Technologies Team, WSO2 \
Inc.<br>Mobile: <a href="tel:%2B94715779733" value="+94715779733" \
target="_blank">+94715779733</a><br>Blog: <a href="http://nirmalfdo.blogspot.com/" \
target="_blank">http://nirmalfdo.blogspot.com/</a><br><br><img \
src="http://c.content.wso2.com/signatures/general.png" width="420" \
height="115"><br></div></div> </font></span></div>
<br>_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@wso2.org" target="_blank">Dev@wso2.org</a><br>
<a href="http://wso2.org/cgi-bin/mailman/listinfo/dev" \
target="_blank">http://wso2.org/cgi-bin/mailman/listinfo/dev</a><br> \
<br></blockquote></div><br></div></div></div> \
<br>_______________________________________________<br> Dev mailing list<br>
<a href="mailto:Dev@wso2.org">Dev@wso2.org</a><br>
<a href="http://wso2.org/cgi-bin/mailman/listinfo/dev" \
target="_blank">http://wso2.org/cgi-bin/mailman/listinfo/dev</a><br> \
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div \
class="gmail_signature"><div dir="ltr"><span style="font-family:&#39;Trebuchet \
MS&#39;,sans-serif;color:gray"><b>Mahesh Chinthaka Vidanagama</b></span><span \
style="font-size:8pt;font-family:&#39;Trebuchet MS&#39;,sans-serif;color:gray">  \
</span><span style="font-size:8pt;font-family:&#39;Trebuchet \
MS&#39;,sans-serif;color:rgb(65,129,255)">|</span><span \
style="font-size:8pt;font-family:&#39;Trebuchet MS&#39;,sans-serif;color:gray">  \
Software Engineer</span><br><span style="font-size:8pt;font-family:&#39;Trebuchet \
MS&#39;,sans-serif;color:gray">WSO2, Inc  </span><span \
style="font-size:8pt;font-family:&#39;Trebuchet \
MS&#39;,sans-serif;color:rgb(65,129,255)">|  </span><span \
style="font-size:8pt;font-family:&#39;Trebuchet \
MS&#39;,sans-serif;color:rgb(102,102,102)">lean. enterprise. middleware.</span><span \
style="font-size:8pt;font-family:&#39;Trebuchet \
MS&#39;,sans-serif;color:gray"><br></span><span lang="EN-GB" \
style="font-size:8pt;font-family:&#39;Trebuchet MS&#39;,sans-serif;color:gray">#20, \
Palm Grove, Colombo 03, Sri Lanka</span><span \
style="font-size:8pt;font-family:Wingdings;color:gray"><br></span><span \
style="font-size:8pt;font-family:&#39;Trebuchet \
MS&#39;,sans-serif;color:gray">Mobile:  <a value="+94719040362" \
style="color:rgb(34,34,34)">+94 71 63 63 083</a>  </span><span \
style="font-size:8pt;font-family:&#39;Trebuchet \
MS&#39;,sans-serif;color:rgb(65,129,255)">|</span><span \
style="font-size:8pt;font-family:&#39;Trebuchet MS&#39;,sans-serif;color:gray">  \
Work:  <a value="+94112416000" style="color:rgb(34,34,34)">+94 112 145 345</a>  \
<br>Email:  <a href="mailto:maheshc@wso2.com" style="color:rgb(17,85,204)" \
target="_blank">maheshc@wso2.com</a>  </span><span \
style="font-size:8pt;font-family:&#39;Trebuchet \
MS&#39;,sans-serif;color:rgb(65,129,255)">|  </span><span \
style="font-size:8pt;font-family:&#39;Trebuchet MS&#39;,sans-serif;color:gray">Web:  \
</span><a href="http://www.wso2.com/" style="color:rgb(17,85,204)" \
target="_blank"><span style="font-size:8pt;font-family:&#39;Trebuchet \
MS&#39;,sans-serif;color:rgb(82,145,239)">www.wso2.com</span></a><br></div></div> \
</div></div>



_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic