Hi Sanjeewa, Thank you for your help. I managed to get it done using apiContext to check whether it contains the tenant domain.
Regards, Malith On Dec 23, 2015 10:55, "Sanjeewa Malalgoda" <[email protected]> wrote: > If need you can write logic to check user name and fetch tenant domain > from that. > Then you may add if check to check tenant name before adding your handler. > There are samples available and you may try that. > But we normally do not recommend to do this kind of modifications unless > its special tenant(some thing like organization tenant). > > Thanks, > sanjeewa. > > On Wed, Dec 23, 2015 at 10:37 AM, Malith Munasinghe <[email protected]> > wrote: > >> Removing [support-dev] >> >> On Wed, Dec 23, 2015 at 10:32 AM, Malith Munasinghe <[email protected]> >> wrote: >> >>> Hi All, >>> >>> I am writing a custom handler. This handler needs to be added only to a >>> specific tenant only. When I add it to the velocity_template.xml it gets >>> applied to all the tenants. >>> >>> Is there a way to achieve this through velocity_template.xml itself ? >>> >>> Regards, >>> Malith >>> >>> -- >>> Malith Munasinghe | Software Engineer >>> M: +94 (71) 9401122 >>> E: [email protected] >>> W: http://wso2.com >>> >> >> >> >> -- >> Malith Munasinghe | Software Engineer >> M: +94 (71) 9401122 >> E: [email protected] >> W: http://wso2.com >> > > > > -- > > *Sanjeewa Malalgoda* > WSO2 Inc. > Mobile : +94713068779 > > <http://sanjeewamalalgoda.blogspot.com/>blog > :http://sanjeewamalalgoda.blogspot.com/ > <http://sanjeewamalalgoda.blogspot.com/> > > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
