Package org.exoplatform.portal.config

Examples of org.exoplatform.portal.config.DataStorage.saveDashboard()


            // Get data storage
            DataStorage service = getApplicationComponent(DataStorage.class);

            // Save
            try {
                service.saveDashboard(dashboard);
            } catch (StaleModelException e) {
                WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
                context.getUIApplication().addMessage(
                        new ApplicationMessage("UIDashboard.msg.StaleData", null, ApplicationMessage.ERROR));
                context.setAttribute(SAVE_FAIL, true);
View Full Code Here


            // Get data storage
            DataStorage service = getApplicationComponent(DataStorage.class);

            // Save
            try {
                service.saveDashboard(dashboard);
            } catch (Exception e) {
                UIPortalApplication uiApp = Util.getUIPortalApplication();
                uiApp.refreshCachedUI();
                WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
                context.getUIApplication().addMessage(
View Full Code Here

         // Get data storage
         DataStorage service = getApplicationComponent(DataStorage.class);

         // Save
         service.saveDashboard(dashboard);
      }
   }

   public static class AddNewGadgetActionListener extends EventListener<UIDashboard>
   {
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.