Hi Sinthuja, We havent done this programatically before, so you mite face road blocks. Please read through DashboardService. I belive addGadgetToUser method, does what you need.
addGadgetToUser(String userId, String tabId, String url, String dashboardName, String gadgetGroup) Simply ignore the last parameter and pass null for that. Regards, /Nuwan On Thu, May 24, 2012 at 11:14 AM, Sinthuja Ragendran <[email protected]>wrote: > Hi, > > I have requirement to add a gadget in BAM2 programmatically. I have a > gadget artifact in the file system, and I need this gadget artifact to be > added to the bam gadgets and see that in the bam main dash board > programmatically, rather going through the UI by clicking on add gadgets > and point to the URL. > > What are the possible ways of doing this? Is there any services exposed to > add the gadgets so that I can make use of? > > Currently bam2 has the following features installed: > > org.wso2.carbon.dashboard.dashboardpopulator.server.feature > org.wso2.carbon.dashboard.feature > org.wso2.carbon.gadget.editor.ui.feature > org.wso2.carbon.gadget.editor.feature > > Thanks, > Sinthuja. > -- *Thanks & Regards, Nuwan Bandara Associate Technical Lead & Member, MC, Development Technologies WSO2 Inc. - lean . enterprise . middleware | http://wso2.com blog : http://nuwanbando.com; email: [email protected]; phone: +94 11 763 9629 * <http://www.nuwanbando.com/>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
