Hi All, In case you want to get application info in the front end, you can simply use the following way.
var application = <%=session.get("APP_INFO"); Following detail can be found , application.key application.name application.owner ---> this is the creator of the application application.description application.type application.typeDisplayName application.repositoryType application.repositoryTypeDisplayName cheers! Asanka D On Wed, Sep 4, 2013 at 10:16 AM, Asanka Dissanayake <asan...@wso2.com>wrote: > Hi Chris, > Yes, It can be done in Java Level. But here we are talking about front > end, Jaggery level. Since there is no carbon context in the jaggery level > we can't go with this option I think. > > cheers!! > Asanka D > > > On Wed, Sep 4, 2013 at 9:56 AM, Chris Haddad <chad...@cobia.net> wrote: > >> Tenant Id and tenant domain are already readily accessible from the >> carboncontext. Why woudl you replicate the information? >> >> Username is also in carboncontext, but for some reason not working for me >> and may need to be fixed >> >> /Chris >> >> >> On Sep 3, 2013, at 1:35, Asanka Dissanayake <asan...@wso2.com> wrote: >> >> Hi, >> What is the best place to create this? IMHO, we should create this and >> put to the session when the application home is loaded. >> Any comments? >> >> >> >> >> On Fri, Aug 30, 2013 at 12:04 PM, Asanka Dissanayake <asan...@wso2.com>wrote: >> >>> Hi, >>> I think it is better to have $subject in appfactory. ATM there is no >>> common place to get info of the application.Now it is bit hard to keep >>> tracks on where are the details we want , for example Logged in user, >>> tenant id, tenant domain. >>> I will start implementing it with a object called "APPLICATION_INFO" >>> which is in the session , and have planned to store following information. >>> >>> -Logged in User >>> -Application Owners >>> -Tenant domain >>> -Tenant Id >>> >>> Please add if I have missed anything. >>> >>> cheers!! >>> Asanka D >>> >>> -- >>> >>> *Asanka Dissanayake >>> Software Engineer* >>> *WSO2 Inc. - lean . enterprise . middleware | wso2.com* >>> * >>> email: asan...@wso2.com <ruch...@wso2.com>, blog: >>> cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com mobile: +94 >>> 71 8373821* >>> >> >> >> >> -- >> >> *Asanka Dissanayake >> Software Engineer* >> *WSO2 Inc. - lean . enterprise . middleware | wso2.com* >> * >> email: asan...@wso2.com <ruch...@wso2.com>, blog: >> cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com mobile: +94 >> 71 8373821* >> >> _______________________________________________ >> >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > *Asanka Dissanayake > Software Engineer* > *WSO2 Inc. - lean . enterprise . middleware | wso2.com* > * > email: asan...@wso2.com <ruch...@wso2.com>, blog: > cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com mobile: +94 71 > 8373821* > -- *Asanka Dissanayake Software Engineer* *WSO2 Inc. - lean . enterprise . middleware | wso2.com* * email: asan...@wso2.com <ruch...@wso2.com>, blog: cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com mobile: +94 71 8373821*
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev