Hi Anuruddha, AFAIK its possible. I have done this in a OSGI bundle which i have written [1].
[1] - https://github.com/prasa7/key-store-change-tool/blob/master/src/main/java/org/wso2/carbon/keychange/internal/DecryptAndEncrypt.java#L346 Thanks On Thu, Jul 30, 2015 at 11:21 AM, Anuruddha Liyanarachchi < [email protected]> wrote: > Hi Chatura, > > I am login using super tenant. So should I be able to get the super tenant > object from getTenant() method passing super tenant ID -1234 ? > > On Thu, Jul 30, 2015 at 11:16 AM, Chathura Priyankara <[email protected]> > wrote: > >> Hi Anuruddha, >> >> To get a specific tenant by using the tenant id you have to login from >> that tenant first. >> >> Thanks, >> Chathura. >> >> On Thu, Jul 30, 2015 at 10:50 AM, Thusitha Thilina Dayaratne < >> [email protected]> wrote: >> >>> Hi Anuruddha, >>> >>> AFAIK that is the expected behavior. Super tenant id is -1234 >>> >>> https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.base/src/main/java/org/wso2/carbon/base/MultitenantConstants.java#L34 >>> >>> Thanks >>> /Thusitha >>> >>> On Thu, Jul 30, 2015 at 10:18 AM, Anuruddha Liyanarachchi < >>> [email protected]> wrote: >>> >>>> Hi, >>>> >>>> I noticed that org.wso2.carbon.user.core.tenant.TenantManager class >>>> getTenant() method doesn't return super tenant for super tenantId(-1234). >>>> >>>> Just wanted to know whether this is the expected behaviour ? >>>> >>>> -- >>>> *Thanks and Regards,* >>>> Anuruddha Lanka Liyanarachchi >>>> Software Engineer - WSO2 >>>> Mobile : +94 (0) 712762611 >>>> Tel : +94 112 145 345 >>>> a <[email protected]>[email protected] >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> Thusitha Dayaratne >>> Software Engineer >>> WSO2 Inc. - lean . enterprise . middleware | wso2.com >>> >>> Mobile +94712756809 >>> Blog alokayasoya.blogspot.com >>> About http://about.me/thusithathilina >>> >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Chathura Priyankara >> Software Engineer | WSO2 Inc. >> Mobile : +94718795340 >> Blog : www.codeoncloud.blogspot.com >> > > > > -- > *Thanks and Regards,* > Anuruddha Lanka Liyanarachchi > Software Engineer - WSO2 > Mobile : +94 (0) 712762611 > Tel : +94 112 145 345 > a <[email protected]>[email protected] > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Prasanna Dangalla Software Engineer, WSO2, Inc.; http://wso2.com/ lean.enterprise.middleware cell: +94 777 55 80 30 | +94 718 11 27 51 twitter: @prasa77
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
