Package com.agiletec.aps.system.services.pagemodel

Examples of com.agiletec.aps.system.services.pagemodel.PageModel


    reqCtx.getRequest().getSession().setAttribute(SystemConstants.SESSIONPARAM_CURRENT_USER, user);

    Page page = new Page();
    page.setCode("login");
    page.setGroup("free");
    page.setModel(new PageModel() );

    reqCtx.addExtraParam(SystemConstants.EXTRAPAR_CURRENT_PAGE, page);

    Lang lang = new Lang();
    lang.setCode("it");
View Full Code Here


    reqCtx.getRequest().getSession().setAttribute(SystemConstants.SESSIONPARAM_CURRENT_USER, user);

    Page page = new Page();
    page.setCode("login");
    page.setGroup("free");
    page.setModel(new PageModel() );

    reqCtx.addExtraParam(SystemConstants.EXTRAPAR_CURRENT_PAGE, page);

    Lang lang = new Lang();
    lang.setCode("it");
View Full Code Here

    }
    return result;
  }

  private int getPageModelframe(String pageCode) throws ApsSystemException {
    PageModel current = this.getPageManager().getPage(pageCode).getModel();
    try {
      return current.getFrames().length;
    } catch (Throwable t) {
      throw new ApsSystemException("ERROR: unknown page code '" + pageCode + "'");
    }
  }
View Full Code Here

    super.setUp();
    this.init();
  }

  public void testGetPageModel_1() throws Throwable {
    PageModel pageModel = this._pageModelManager.getPageModel("home");
    assertNotNull(pageModel);
    assertTrue(pageModel instanceof MyPortalPageModel);
    Frame[] frames = ((MyPortalPageModel) pageModel).getFrameConfigs();
    assertEquals(6, frames.length);
    for (int i = 0; i < frames.length; i++) {
View Full Code Here

      assertTrue(frame.isLocked());
    }
  }
 
  public void testGetPageModel_2() throws Throwable {
    PageModel pageModel = this._pageModelManager.getPageModel("jpmyportalplus_pagemodel");
    assertNotNull(pageModel);
    assertTrue(pageModel instanceof MyPortalPageModel);
    Frame[] frames = ((MyPortalPageModel) pageModel).getFrameConfigs();
    assertEquals(8, frames.length);
    for (int i = 0; i < frames.length; i++) {
View Full Code Here

TOP

Related Classes of com.agiletec.aps.system.services.pagemodel.PageModel

Copyright © 2018 www.massapicom. 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.