Package com.tonbeller.jpivot.mondrian

Examples of com.tonbeller.jpivot.mondrian.MondrianModel


      int choices = cninfo.getChoicesNumber();
      for (int i = 0; i < choices; i++) {
        Element targetElement = table.insert("cross-navigation-target", cnElem);
        mondrian.olap.Cell mondrianCell = ((MondrianCell) cell.getRootDecoree()).getMonCell();
        MondrianModel mondrianModel = (MondrianModel) extension.getModel();
        String[] choice = cninfo.getChoice(i, mondrianCell, mondrianModel);
        targetElement.setAttribute("title", choice[0]);
        targetElement.setAttribute("crossNavigationJSFunction", choice[1]);
      }
      return parent;
View Full Code Here


    HttpSession session = context.getRequest().getSession();
    IEngUserProfile profile = (IEngUserProfile) session.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
   
    String filers=(String)session.getAttribute("filters");
   
    MondrianModel mm = MondrianModelFactory.instance(filers,url, cfg, profile);
   
    //MondrianModel mm = MondrianModelFactory.instance(url, cfg);
    //mm.setRole(new SpagoBIMondrianRole(filers,profile));
    OlapModel om = (OlapModel) mm.getTopDecorator();
    om.setLocale(context.getLocale());
    om.setServletContext(context.getSession().getServletContext());
    return om;
  }
View Full Code Here

  public static MondrianModel instance(String filers,URL url, Config cfg, IEngUserProfile profile) throws SAXException, IOException {
    if (logger.isInfoEnabled()) {
      logger.info(cfg.toString());
      logger.info("ConnectString=" + makeConnectString(filers,cfg, profile));
    }
    MondrianModel mm = (MondrianModel) ModelFactory.instance(url);
    mm.setMdxQuery(cfg.getMdxQuery());
    mm.setConnectString(makeConnectString(filers,cfg, profile));
    mm.setJdbcDriver(cfg.getJdbcDriver());
    mm.setDynresolver(cfg.getDynResolver());
    mm.setDynLocale(cfg.getDynLocale());   
    mm.setDataSourceChangeListener( cfg.getDataSourceChangeListener());

    if ("false".equalsIgnoreCase(cfg.getConnectionPooling()))
      mm.setConnectionPooling(false);
    mm.setExternalDataSource(cfg.getExternalDataSource());
    return mm;
  }
View Full Code Here

TOP

Related Classes of com.tonbeller.jpivot.mondrian.MondrianModel

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.