public void RemovePersonalGadget(long Subject, string propertyURI) { GadgetSpec spec = OpenSocialManager.GetGadgetByPropertyURI(propertyURI); if (spec != null) { RemovePersonalGadget(Subject, spec.GetAppId()); } }
// tool gadgets public PreparedGadget(GadgetSpec gadgetSpec, OpenSocialManager openSocialManager) { this.gadgetSpec = gadgetSpec; this.openSocialManager = openSocialManager; this.securityToken = SocketSendReceive(openSocialManager.GetViewerURI(), openSocialManager.GetOwnerURI(), gadgetSpec.GetGadgetURL()); // look at the view requirements and what page we are on to set some things GadgetViewRequirements viewReqs = GetGadgetViewRequirements(); if (viewReqs != null) { this.view = viewReqs.GetView(); this.chromeId = viewReqs.GetChromeId(); this.optParams = viewReqs.GetOptParams(); } else // must be a sandbox gadget { this.view = ""; this.chromeId = "gadgets-test-" + gadgetSpec.GetAppId(); this.optParams = "{}"; } }
// passthroughs public int GetAppId() { return(gadgetSpec.GetAppId()); }