Examples of UISiteBody


Examples of org.exoplatform.portal.webui.page.UISiteBody

      {
         org.exoplatform.portal.webui.container.UIContainer uiContainer =
            createUIComponent(org.exoplatform.portal.webui.container.UIContainer.class, null, null);
         uiContainer.setStorageId(container.getStorageId());
         PortalDataMapper.toUIContainer(uiContainer, container);
         UISiteBody uiSiteBody = uiContainer.findFirstComponentOfType(UISiteBody.class);
         //uiSiteBody.setUIComponent(uiPortal);
         uiSiteBody.setUIComponent(this.showedUIPortal);
         uiContainer.setRendered(true);
         uiViewWS.setUIComponent(uiContainer);
      }
      else
      {
View Full Code Here

Examples of org.exoplatform.portal.webui.page.UISiteBody

         UIEditInlineWorkspace uiEditWS = uiWorkingWS.getChild(UIEditInlineWorkspace.class);
         uiEditWS.getComposer().setEditted(false);
         uiEditWS.setRendered(false);
         uiWorkingWS.setRenderedChild(UIPortalApplication.UI_VIEWING_WS_ID);
         prContext.setFullRender(true);
         UISiteBody siteBody = uiWorkingWS.findFirstComponentOfType(UISiteBody.class);

         UIPortal uiPortal = uiWorkingWS.getBackupUIPortal();
         siteBody.setUIComponent(uiPortal);

         String uri = uiPortal.getSelectedNode() != null ? uiPortal.getSelectedNode().getUri() : null;
         PageNodeEvent<UIPortal> pnevent = new PageNodeEvent<UIPortal>(uiPortal, PageNodeEvent.CHANGE_PAGE_NODE, uri);
         uiPortal.broadcast(pnevent, Event.Phase.PROCESS);
         prContext.addUIComponentToUpdateByAjax(uiWorkingWS);
View Full Code Here

Examples of org.exoplatform.portal.webui.page.UISiteBody

         UIPortalApplication uiPortalApp = (UIPortalApplication)prContext.getUIApplication();
         UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);
         UIEditInlineWorkspace uiEditWS = uiWorkingWS.getChild(UIEditInlineWorkspace.class);
         UIPortal editPortal = (UIPortal)uiEditWS.getUIComponent();

         UISiteBody siteBody = uiWorkingWS.findFirstComponentOfType(UISiteBody.class);
         UIPortal uiPortal = (UIPortal)siteBody.getUIComponent();

         if (uiPortal == null)
         {
            siteBody.setUIComponent(editPortal);
         }
         uiEditWS.setRendered(false);
         uiPortal = (UIPortal)siteBody.getUIComponent();

         uiPortalApp.setSessionOpen(PortalProperties.SESSION_ALWAYS.equals(uiPortal.getSessionAlive()));
         uiPortalApp.setModeState(UIPortalApplication.NORMAL_MODE);
         uiWorkingWS.setRenderedChild(UIPortalApplication.UI_VIEWING_WS_ID);
         prContext.setFullRender(true);
View Full Code Here

Examples of org.exoplatform.portal.webui.page.UISiteBody

      UIComponent uiComponent = null;
      WebuiRequestContext context = Util.getPortalRequestContext();

      if (model instanceof SiteBody)
      {
         UISiteBody uiSiteBody = uiContainer.createUIComponent(context, UISiteBody.class, null, null);
         uiSiteBody.setStorageId(((SiteBody)model).getStorageId());
         uiComponent = uiSiteBody;
      }
      else if (model instanceof PageBody)
      {
         UIPageBody uiPageBody = uiContainer.createUIComponent(context, UIPageBody.class, null, null);
View Full Code Here

Examples of org.exoplatform.portal.webui.page.UISiteBody

     * @param uiPortal
     */
    public void setCurrentSite(UIPortal uiPortal) {
        this.currentSite = uiPortal;

        UISiteBody siteBody = this.findFirstComponentOfType(UISiteBody.class);
        if (siteBody != null) {
            // TODO: Check this part carefully
            siteBody.setUIComponent(uiPortal);
        }
    }
View Full Code Here

Examples of org.exoplatform.portal.webui.page.UISiteBody

            UIPortalApplication uiPortalApp = (UIPortalApplication) prContext.getUIApplication();
            UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);
            UIEditInlineWorkspace uiEditWS = uiWorkingWS.getChild(UIEditInlineWorkspace.class);
            UIPortal editPortal = (UIPortal) uiEditWS.getUIComponent();

            UISiteBody siteBody = uiWorkingWS.findFirstComponentOfType(UISiteBody.class);
            UIPortal uiPortal = (UIPortal) siteBody.getUIComponent();

            if (uiPortal == null) {
                siteBody.setUIComponent(editPortal);
            }
            uiEditWS.setRendered(false);
            uiPortal = (UIPortal) siteBody.getUIComponent();

            uiPortalApp.setSessionOpen(PortalProperties.SESSION_ALWAYS.equals(uiPortal.getSessionAlive()));
            uiPortalApp.setModeState(UIPortalApplication.NORMAL_MODE);
            uiWorkingWS.setRenderedChild(UIPortalApplication.UI_VIEWING_WS_ID);
            prContext.ignoreAJAXUpdateOnPortlets(true);
View Full Code Here

Examples of org.exoplatform.portal.webui.page.UISiteBody

            UIEditInlineWorkspace uiEditWS = uiWorkingWS.getChild(UIEditInlineWorkspace.class);
            uiEditWS.getComposer().setEditted(false);
            uiEditWS.setRendered(false);
            uiWorkingWS.setRenderedChild(UIPortalApplication.UI_VIEWING_WS_ID);
            prContext.ignoreAJAXUpdateOnPortlets(true);
            UISiteBody siteBody = uiWorkingWS.findFirstComponentOfType(UISiteBody.class);

            UIPortal uiPortal = uiWorkingWS.getBackupUIPortal();
            siteBody.setUIComponent(uiPortal);

            UserNode currentNode = uiPortal.getSelectedUserNode();
            SiteKey siteKey = currentNode.getNavigation().getKey();
            PageNodeEvent<UIPortalApplication> pnevent = new PageNodeEvent<UIPortalApplication>(uiPortalApp,
                    PageNodeEvent.CHANGE_NODE, siteKey, currentNode.getURI());
View Full Code Here

Examples of org.exoplatform.portal.webui.page.UISiteBody

    private static void buildUIContainer(UIContainer uiContainer, Object model, boolean dashboard) throws Exception {
        UIComponent uiComponent = null;
        WebuiRequestContext context = Util.getPortalRequestContext();

        if (model instanceof SiteBody) {
            UISiteBody uiSiteBody = uiContainer.createUIComponent(context, UISiteBody.class, null, null);
            uiSiteBody.setStorageId(((SiteBody) model).getStorageId());
            uiComponent = uiSiteBody;
        } else if (model instanceof PageBody) {
            UIPageBody uiPageBody = uiContainer.createUIComponent(context, UIPageBody.class, null, null);
            uiPageBody.setStorageId(((PageBody) model).getStorageId());
            uiComponent = uiPageBody;
View Full Code Here

Examples of org.exoplatform.portal.webui.page.UISiteBody

    public UIPortal restoreUIPortal() {
        UIPortal result = backupUIPortal;
        if (result == null) {
            throw new IllegalStateException("backupUIPortal not available");
        } else {
            UISiteBody siteBody = findFirstComponentOfType(UISiteBody.class);
            siteBody.setUIComponent(result);
            return result;
        }
    }
View Full Code Here

Examples of org.exoplatform.portal.webui.page.UISiteBody

                }
                uiPortalApp.setSkin(editPortal.getSkin());
            }
            prContext.refreshResourceBundle();

            UISiteBody siteBody = uiWorkingWS.findFirstComponentOfType(UISiteBody.class);
            uiPortal = (UIPortal) siteBody.getUIComponent();
            if (uiPortal == null) {
                siteBody.setUIComponent(editPortal);
            }
            uiEditWS.setRendered(false);
            uiPortal = (UIPortal) siteBody.getUIComponent();

            // Update the cache of UIPortal from UIPortalApplication
            uiPortalApp.refreshCachedUI();

            UserNode currentNode = uiPortal.getSelectedUserNode();
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.