Examples of loadPage()


Examples of ch.mtSystems.jnc.control.AppController.loadPage()

          return;
        }
      }

      ap.loadPage(AppController.PAGE_SOURCE);
    } else if(e.getSource() == JNC.getPreviousButton())
    {
      AppController.getAppController().loadPage(AppController.PAGE_INTRODUCTION);
    } else if(e.getSource() == bOpenProject)
    {
View Full Code Here

Examples of es.uma.crudframework.dao.hibernate.support.CrudHibernateTemplate.loadPage()

    public final List<T> getPage(final int pag, final int numRes) {
        List<T> result = null;
        try {
            final HibernateTemplate ht = super.getHibernateTemplate();
            final CrudHibernateTemplate lht = new CrudHibernateTemplate(ht);
            result = lht.loadPage(this.persistentClass, pag, numRes);
        } catch (final Exception e) {
            this.log.error("ERROR al obtener la página " + pag + " en BD:\n "
                    + e);
            throw ExceptionUtil.crearCrudException("ERROR_GET_ALL_BD", e);
        }
View Full Code Here

Examples of es.uma.crudframework.dao.hibernate.support.CrudHibernateTemplate.loadPage()

        List<T> result = null;
        try {
            final HibernateTemplate ht = super.getHibernateTemplate();

            final CrudHibernateTemplate lht = new CrudHibernateTemplate(ht);
            result = lht.loadPage(this.persistentClass, pag, numRes,
                    orderColumn, ascendingOrder);
        } catch (final Exception e) {
            this.log.error("ERROR al obtener la página " + pag + " en BD:\n "
                    + e);
            throw ExceptionUtil.crearCrudException("ERROR_GET_ALL_BD", e);
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()

            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()

    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()

                    + rootPage.getSite().getName() + "'", children));
        } else {
            PageService pageService = operationContext.getRuntimeContext().getRuntimeComponent(PageService.class);
            PageKey pageKey = new PageKey(getSiteKey(rootPage.getSite()), pageName);

            if (pageService.loadPage(pageKey) == null) {
                throw new ResourceNotFoundException("No page found for " + pageKey);
            }

            resultHandler.completed(new ReadResourceModel("List of child pages for page '" + pageName + "'", Collections
                    .<String> emptySet()));
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()

                pageSelector.setValue(null);
            } else {
                PageContext pageContext = pageSelector.getPage();
                DataStorage storage = uiPageNodeForm.getApplicationComponent(DataStorage.class);
                PageService pageService = uiPageNodeForm.getApplicationComponent(PageService.class);
                if (pageService.loadPage(pageContext.getKey()) == null) {
                    pageService.savePage(pageContext);

                    //
                    Page page = new Page();
                    page.setOwnerType(pageContext.getKey().getSite().getTypeName());
View Full Code Here

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

                    accessPermission != null ? Arrays.asList(accessPermission) : null, editPermission);

            // check page is exist
            PageKey pageKey = PageKey.parse(uiForm.getOwnerType().getName() + "::" + ownerId + "::" + uiPageName.getValue());
            PageService pageService = uiForm.getApplicationComponent(PageService.class);
            PageContext existPage = pageService.loadPage(pageKey);
            if (existPage != null) {
                uiPortalApp.addMessage(new ApplicationMessage("UIPageForm.msg.sameName", null));
                return;
            }
            pageSelector.setPage(new PageContext(pageKey, pageState));
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.