Examples of savePage()


Examples of org.exoplatform.portal.mop.page.PageService.savePage()

            PageService pageService = uiWorkingWS.getApplicationComponent(PageService.class);
            try {
                PageState pageState = new PageState(page.getTitle(), page.getDescription(), page.isShowMaxWindow(),
                        page.getFactoryId(), page.getAccessPermissions() != null ? Arrays.asList(page.getAccessPermissions())
                                : null, page.getEditPermission());
                pageService.savePage(new PageContext(pageKey, pageState));
                dataService.save(page);
            } catch (StaleModelException ex) {
                // Temporary solution to concurrency-related issue
                // This catch block should be put in an appropriate ApplicationLifecyclec
            }
View Full Code Here

Examples of org.exoplatform.portal.mop.page.PageService.savePage()

        //
        PageService pageService = getApplicationComponent(PageService.class);
        PageState pageState = new PageState(page.getTitle(), page.getDescription(), page.isShowMaxWindow(),
                page.getFactoryId(), page.getAccessPermissions() != null ? Arrays.asList(page.getAccessPermissions()) : null,
                page.getEditPermission());
        pageService.savePage(new PageContext(page.getPageKey(), pageState));

        //
        DataStorage dataService = getApplicationComponent(DataStorage.class);
        dataService.save(page);
View Full Code Here

Examples of org.exoplatform.portal.mop.page.PageService.savePage()

                        }

                        //
                        PageService pageService = uiPage.getApplicationComponent(PageService.class);
                        PageState pageState = PageUtils.toPageState(page);
                        pageService.savePage(new PageContext(page.getPageKey(), pageState));

                        //
                        DataStorage dataService = uiPage.getApplicationComponent(DataStorage.class);
                        dataService.save(page);
                    }
View Full Code Here

Examples of org.exoplatform.portal.mop.page.PageService.savePage()

                }

                //
                PageService pageService = uiPage.getApplicationComponent(PageService.class);
                PageState pageState = PageUtils.toPageState(page);
                pageService.savePage(new PageContext(page.getPageKey(), pageState));

                //
                DataStorage dataService = uiPage.getApplicationComponent(DataStorage.class);
                dataService.save(page);
View Full Code Here

Examples of org.exoplatform.portal.mop.page.PageService.savePage()

                    page.setChildren(new ArrayList<ModelObject>());
                }

                //
                PageState pageState = PageUtils.toPageState(page);
                pageService.savePage(new PageContext(page.getPageKey(), pageState));

                //
                dataService.save(page);
                postSave(uiPortalApp, pcontext);
                return;
View Full Code Here

Examples of org.exoplatform.portal.mop.page.PageService.savePage()

        Page page = (Page) PortalDataMapper.buildModelObject(uiPage);
        String pageId = page.getPageId();
        PageKey pageKey = PageKey.parse(pageId);
        PageState pageState = PageUtils.toPageState(page);
        PageContext pageContext = new PageContext(pageKey, pageState);
        pageService.savePage(pageContext);
        dataService.save(page);
        composer.setEditted(false);

        //
        uiToolPanel.setUIComponent(null);
View Full Code Here

Examples of org.exoplatform.portal.mop.page.PageService.savePage()

        createdNode.setPageRef(page.getPageKey());

        //
        PageService pageService = getApplicationComponent(PageService.class);
        PageState pageState = PageUtils.toPageState(page);
        pageService.savePage(new PageContext(page.getPageKey(), pageState));

        //
        DataStorage dataService = getApplicationComponent(DataStorage.class);
        dataService.save(page);
View Full Code Here

Examples of org.exoplatform.portal.webui.portal.UIPortalComposer.savePage()

            UIConfirmation uiConfirmation = event.getSource().getChild(UIConfirmation.class);
            uiConfirmation.createEvent("Close", event.getExecutionPhase(), event.getRequestContext()).broadcast();

            UIPortalComposer uiPortalComposer = event.getSource().getChild(UIPortalComposer.class);
            if (uiPortalComposer.getId().equals(UIPortalComposer.UIPAGE_EDITOR)) {
                uiPortalComposer.savePage(event.getSource(), event);
            } else {
                uiPortalComposer.saveSite();
            }
        }
    }
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.