Examples of loadPage()


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

            PageKey pageKey = currentNode.getPageRef();
            if (pageKey == null) {
                return false;
            } else {
                PageService pageService = portalApp.getApplicationComponent(PageService.class);
                PageContext page = pageService.loadPage(pageKey);
                if (page == null) {
                    return false;
                } else {
                    return userACL.hasEditPermission(page);
                }
View Full Code Here

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

            page.setName("page" + page.hashCode());
            String pageId = ownerType + "::" + ownerId + "::" + page.getName();

            // check page is exist
            PageService pageService = uiWizard.getApplicationComponent(PageService.class);
            if (pageService.loadPage(PageKey.parse(pageId)) != null) {
                uiPortalApp.addMessage(new ApplicationMessage("UIPageCreationWizard.msg.NameNotSame", null));
                uiWizard.viewStep(FIRST_STEP);
                uiWizard.updateWizardComponent();
            }
            page.setModifiable(true);
View Full Code Here

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

    public void switchToEditMode() throws Exception {
        PageService pageService = this.getApplicationComponent(PageService.class);
        DataStorage dataStorage = this.getApplicationComponent(DataStorage.class);

        PageKey pageKey = new PageKey(getSiteKey(), getName());
        PageContext pageContext = pageService.loadPage(pageKey);
        if (pageContext == null) {
            UIPortalApplication uiApp = Util.getUIPortalApplication();
            ApplicationMessage msg = new ApplicationMessage("UIPageBrowser.msg.PageNotExist", new String[] { pageKey.format() }, 1);
            uiApp.addMessage(msg);
        } else {
View Full Code Here

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

            uiPageForm.invokeSetBindingBean(page);
            DataStorage dataService = uiPageForm.getApplicationComponent(DataStorage.class);
            // create new page
            if (uiPage == null) {
                PageService pageService = uiPageForm.getApplicationComponent(PageService.class);
                PageContext existPage = pageService.loadPage(page.getPageKey());
                if (existPage != null) {
                    uiPortalApp.addMessage(new ApplicationMessage("UIPageForm.msg.sameName", null));
                    return;
                }
                page.setModifiable(true);
View Full Code Here

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

            String pageName = "page" + UUID.randomUUID().hashCode();

            // Check if the page exists
            PageKey pageKey = new SiteKey(ownerType, ownerId).page(pageName);
            PageService pageService = uiWizard.getApplicationComponent(PageService.class);
            if (pageService.loadPage(pageKey) != null) {
                uiPortalApp.addMessage(new ApplicationMessage("UIPageCreationWizard.msg.NameNotSame", null));
                uiWizard.viewStep(FIRST_STEP);
                uiWizard.updateWizardComponent();
            }
View Full Code Here

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

        // Check if the page exists
        PageService pageService = getApplicationComponent(PageService.class);
        PageKey pageKey = new SiteKey(ownerType, ownerId).page(page.getName());

        if (pageService.loadPage(pageKey) == null) {
            // Set defaults only on new pages
            UserPortalConfigService configService = getApplicationComponent(UserPortalConfigService.class);
            configService.setDefaultPermissions(page);
        }
View Full Code Here

Examples of org.jboss.aesh.extensions.manual.parser.ManPageLoader.loadPage()

    }

    public void init() {
        ManPageLoader parser = new ManPageLoader();
        try {
            parser.loadPage(800);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
View Full Code Here

Examples of org.jboss.aesh.extensions.manual.parser.ManPageLoader.loadPage()

    private List<ManSection> sections;

    public ManPage(String fileName) {
        ManPageLoader parser = new ManPageLoader();
        try {
            parser.loadPage(800);
        } catch (IOException e) {
            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
        }
    }
View Full Code Here

Examples of org.jboss.aesh.extensions.manual.parser.ManPageLoader.loadPage()

    }

    public void init() {
        ManPageLoader parser = new ManPageLoader();
        try {
            parser.loadPage(800);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
View Full Code Here

Examples of railo.runtime.PageSource.loadPage()

      ConfigWebImpl config=(ConfigWebImpl) pc.getConfig();
      PageSource ps = isWeb?
          config.getTagMapping().getPageSource(filename):
          config.getServerTagMapping().getPageSource(filename);
     
      Page p = ps.loadPage(pc);
      ComponentImpl c = ComponentLoader.loadComponent(pc, p, ps, filename, true,true);
      ComponentWrap cw = ComponentWrap.toComponentWrap(Component.ACCESS_PRIVATE,c);
      Struct meta = Caster.toStruct( cw.get(KeyConstants._metadata,null),null);

      // TODO handle all metadata here and make checking at runtime useless
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.