Hi Lakshani,
you can use either

UserRealmService.getTenantManager().getTenantId(tenantDomain)

or

TenantManager tenantManager =
TenantMgtCoreServiceComponent.getTenantManager();

int tenantId = tenantManager.getTenantId(tenantDomain);


On Wed, Mar 25, 2015 at 11:14 AM, Lakshani Gamage <laksh...@wso2.com> wrote:

> Hi,
> I want to get tenant Id for a given tenant name.Can someone please tell
> me how can I do that?
>
> Thanks.
>
> --
> Lakshani Gamage
>
> *Software Engineer*
> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>
> _______________________________________________
> 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: mahe...@wso2.com | Web: www.wso2.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to