Examples of saveGadget()


Examples of org.exoplatform.application.gadget.GadgetRegistryService.saveGadget()

            } catch (Exception e) {
                UIApplication uiApp = context.getUIApplication();
                uiApp.addMessage(new ApplicationMessage("UIAddGadget.label.urlError", new String[] { url }));
                return;
            }
            service.saveGadget(gadget);
            uiManagement.initData();
            uiManagement.setSelectedGadget(name);
            context.addUIComponentToUpdateByAjax(uiManagement);
        }
View Full Code Here

Examples of org.exoplatform.application.gadget.GadgetRegistryService.saveGadget()

                    gadget.setLocal(true);
                    gadget.setTitle("");
                    gadget.setReferenceUrl("");

                    // Save gadget with empty data first
                    service.saveGadget(gadget);
                } else {
                    UIApplication uiApp = event.getRequestContext().getUIApplication();
                    uiApp.addMessage(new ApplicationMessage("UIGadgetEditor.gadget.msg.gadgetIsExist", null,
                            ApplicationMessage.WARNING));
                    return;
View Full Code Here

Examples of org.exoplatform.application.gadget.GadgetRegistryService.saveGadget()

                UIApplication uiApp = ctx.getUIApplication();
                uiApp.addMessage(new ApplicationMessage("UIGadgetInfo.msg.gadgetNotExist", null));
                uiManagement.reload();
                return;
            }
            service.saveGadget(GadgetUtil.toGadget(gadget.getName(), gadget.getUrl(), gadget.isLocal()));
            uiManagement.initData();
            uiManagement.setSelectedGadget(gadget.getName());
            ctx.addUIComponentToUpdateByAjax(uiManagement);
        }
View Full Code Here

Examples of org.exoplatform.application.gadget.GadgetRegistryService.saveGadget()

         {
            UIApplication uiApp = context.getUIApplication();
            uiApp.addMessage(new ApplicationMessage("UIAddGadget.label.urlError", new String[]{url}));
            return;
         }
         service.saveGadget(gadget);
         uiManagement.initData();
         uiManagement.setSelectedGadget(name);
         context.addUIComponentToUpdateByAjax(uiManagement);
      }
View Full Code Here

Examples of org.exoplatform.application.gadget.GadgetRegistryService.saveGadget()

                gadget.setLocal(true);
                gadget.setTitle("");
                gadget.setReferenceUrl("");

                // Save gadget with empty data first
                service.saveGadget(gadget);
             }
             else {
             UIApplication uiApp = event.getRequestContext().getUIApplication();
                 uiApp.addMessage(new ApplicationMessage("UIGadgetEditor.gadget.msg.gadgetIsExist", null, ApplicationMessage.WARNING));
                 return;
View Full Code Here

Examples of org.exoplatform.application.gadget.GadgetRegistryService.saveGadget()

            UIApplication uiApp = ctx.getUIApplication();
            uiApp.addMessage(new ApplicationMessage("UIGadgetInfo.msg.gadgetNotExist", null));
            uiManagement.reload();
            return;
         }
         service.saveGadget(GadgetUtil.toGadget(gadget.getName(), gadget.getUrl(), gadget.isLocal()));
         uiManagement.initData();
         uiManagement.setSelectedGadget(gadget.getName());
         ctx.addUIComponentToUpdateByAjax(uiManagement);
      }
View Full Code Here

Examples of org.exoplatform.application.gadget.GadgetRegistryService.saveGadget()

            // TODO check the way we create the unique ID, is it really unique?
            try {
                String name = "gadget" + url.hashCode();
                gadget = GadgetUtil.toGadget(name, url, false);
                service.saveGadget(gadget);
                uiGadget = uiForm.createUIComponent(context, UIGadget.class, null, null);
                uiGadget.setState(new TransientApplicationState<org.exoplatform.portal.pom.spi.gadget.Gadget>(gadget.getName()));
            } catch (Exception e) {
                String aggregatorId = uiDashboard.getAggregatorId();
                gadget = service.getGadget(aggregatorId);
View Full Code Here

Examples of org.exoplatform.application.gadget.GadgetRegistryService.saveGadget()

         //TODO check the way we create the unique ID, is it really unique?
         try
         {
            String name = "gadget" + url.hashCode();
            gadget = GadgetUtil.toGadget(name, url, false);
            service.saveGadget(gadget);
            uiGadget = uiForm.createUIComponent(context, UIGadget.class, null, null);
            uiGadget.setState(new TransientApplicationState<org.exoplatform.portal.pom.spi.gadget.Gadget>(gadget.getName()));
         }
         catch (Exception e)
         {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.