Package org.exoplatform.portal.config

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


            PortalDataMapper.toUIPage(uiPage, page);
            // if (page.getTemplate() == null)
            // page.setTemplate(uiPage.getTemplate());
            if (page.getChildren() == null)
               page.setChildren(new ArrayList<ModelObject>());
            dataService.save(page);
            postSave(uiPortalApp, pcontext);
            return;
         }

         List<UIComponent> uiChildren = uiPage.getChildren();
View Full Code Here


         // if (page.getTemplate() == null) page.setTemplate(uiPage.getTemplate());
         if (page.getChildren() == null)
            page.setChildren(new ArrayList<ModelObject>());
         if (Page.DESKTOP_PAGE.equals(uiPage.getFactoryId()))
         {
            dataService.save(page);
            postSave(uiPortalApp, pcontext);
         }
      }

      private void postSave(UIPortalApplication uiPortalApp, WebuiRequestContext context) throws Exception
View Full Code Here

      node.setUri(node.getName());
      navi.addNode(node);
     
      DataStorage dataService = uiPortal.getApplicationComponent(DataStorage.class);
      dataService.save(navi);
      setNavigation(uiPortal.getNavigations(), navi);
   }

   private static void setNavigation(List<PageNavigation> navs, PageNavigation nav)
   {
View Full Code Here

            UIFormSelectBox uiSelectBox = uiForm.findComponentById("priority");
            int priority = Integer.parseInt(uiSelectBox.getValue());
            pageNav.setPriority(priority);

            // update navigation
            dataService.save(pageNav);

            UIPopupWindow uiPopup = uiForm.getParent();
            uiPopup.setShow(false);
            UIComponent opener = uiPopup.getParent();
            pcontext.addUIComponentToUpdateByAjax(opener);
View Full Code Here

                  if (page.getChildren() == null)
                  {
                     page.setChildren(new ArrayList<ModelObject>());
                  }
                  DataStorage dataService = uiPage.getApplicationComponent(DataStorage.class);
                  dataService.save(page);
               }
               break;
            }
         }
         PortalRequestContext pcontext = (PortalRequestContext)event.getRequestContext();
View Full Code Here

         if(PortalConfig.PORTAL_TYPE.equals(navigation.getOwnerType()))
         {
            UserPortalConfig portalConfig = portalConfigService.getUserPortalConfig(navigation.getOwnerId(), prContext.getRemoteUser());
            if(portalConfig != null)
            {
               dataService.save(navigation);
            }
            else
            {
               UIApplication uiApp = Util.getPortalRequestContext().getUIApplication();
               uiApp.addMessage(new ApplicationMessage("UIPortalForm.msg.notExistAnymore", null));
View Full Code Here

            if (page.getChildren() == null)
            {
               page.setChildren(new ArrayList<ModelObject>());
            }
            DataStorage dataService = uiPage.getApplicationComponent(DataStorage.class);
            dataService.save(page);
            pcontext.setFullRender(false);
            pcontext.setResponseComplete(true);
            pcontext.getWriter().write(EventListener.RESULT_OK);
         }
         else
View Full Code Here

               return;
            }
         }
         else
         {
            dataService.save(navigation);
         }

         // Reload navigation here as some navigation could exist in the back end such as system navigations
         // that would not be in the current edited UI navigation
         navigation = dataService.getPageNavigation(navigation.getOwnerType(), navigation.getOwnerId());
View Full Code Here

      }
      uiNodeSelector.selectPageNodeByUri(pageNode.getUri());

      DataStorage dataService = getApplicationComponent(DataStorage.class);
      dataService.create(page);
      dataService.save(pageNav);
      setNavigation(uiPortal.getNavigations(), uiNodeSelector.getSelectedNavigation());
      PageNodeEvent<UIPortal> pnevent = new PageNodeEvent<UIPortal>(uiPortal, PageNodeEvent.CHANGE_PAGE_NODE, pageNode.getUri());
      uiPortal.broadcast(pnevent, Event.Phase.PROCESS);
   }
View Full Code Here

      //
      gadget.addUserPref(addedUserPref);

      //
      state = service.save(state, gadget);

      // WARNING :
      // This is used to force a state save and it should not be copied else where to make things
      // convenient as this could lead to a severe performance degradation
      ModelDataStorage mds = getApplicationComponent(ModelDataStorage.class);
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.