Examples of OlapModel


Examples of com.tonbeller.jpivot.olap.model.OlapModel

    Node selectedConnectionNode = (Node) session.getAttribute("selectedConnectionNode");
    String connectionType = (String)selectedConnectionNode.valueOf("@type");
    String catalogUri = (String) session.getAttribute("catalogUri");
    //String spagoBIBaseUrl = (String) session.getAttribute("spagobiurl");
    //String path = (String) session.getAttribute("biobject_path");
    OlapModel olapModel = (OlapModel) session.getAttribute("query01");
    MdxQuery mdxQuery = (MdxQuery) olapModel.getExtension("mdxQuery");
    String query = mdxQuery.getMdxQuery();
    // the queryWithParameters is added by the addParameter.jsp
    String queryWithParameters = (String) session.getAttribute("queryWithParameters");
    String initialQueryWithParameters = (String) session.getAttribute("initialQueryWithParameters");
    String initialMondrianQuery = (String) session.getAttribute("initialMondrianQuery");
View Full Code Here

Examples of com.tonbeller.jpivot.olap.model.OlapModel

    String userUniqueIdentifier = (String) profile.getUserUniqueIdentifier();   
    String user = (String)((UserProfile) profile).getUserId();
    String schema = (String)session.getAttribute("selectedSchema");
    String documentId=(String)session.getAttribute("document");
    String catalogUri = (String) session.getAttribute("catalogUri");
    OlapModel olapModel = (OlapModel) session.getAttribute("query01");
    MdxQuery mdxQuery = (MdxQuery) olapModel.getExtension("mdxQuery");
    String query = mdxQuery.getMdxQuery();
    // the queryWithParameters is added by the addParameter.jsp
    String queryWithParameters = (String) session.getAttribute("queryWithParameters");
    String initialQueryWithParameters = (String) session.getAttribute("initialQueryWithParameters");
    String initialMondrianQuery = (String) session.getAttribute("initialMondrianQuery");
View Full Code Here

Examples of com.tonbeller.jpivot.olap.model.OlapModel

    HttpSession session = reqContext.getSession();
    String documentId=(String)session.getAttribute("document");
    IEngUserProfile profile=(IEngUserProfile)session.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
    String user = (String)((UserProfile) profile).getUserId();
    String userUniqueIdentifier = (String)((UserProfile) profile).getUserUniqueIdentifier();
    OlapModel olapModel = (OlapModel) session.getAttribute("query01");
    String query = null;
    MdxQuery mdxQuery = (MdxQuery) olapModel.getExtension("mdxQuery");
    if (mdxQuery != null) {
      query = mdxQuery.getMdxQuery();
    }
   
    /*String spagoBIBaseUrl = (String) session.getAttribute("spagobiurl");
View Full Code Here

Examples of com.tonbeller.jpivot.olap.model.OlapModel

    IEngUserProfile profile=(IEngUserProfile)session.getAttribute(IEngUserProfile.ENG_USER_PROFILE);

    //String user = (String) profile.getUserUniqueIdentifier();
    String user = (String)((UserProfile) profile).getUserId();
    String userUniqueIdentifier = (String)((UserProfile) profile).getUserUniqueIdentifier();
    OlapModel olapModel = (OlapModel) session.getAttribute("query01");
    String query = null;
    MdxQuery mdxQuery = (MdxQuery) olapModel.getExtension("mdxQuery");
    if (mdxQuery != null) {
      query = mdxQuery.getMdxQuery();
    }
    if (query != null) {
      ChartComponent chart = (ChartComponent) session.getAttribute("chart01");
View Full Code Here

Examples of com.tonbeller.jpivot.olap.model.OlapModel

    Logger logger = Logger.getLogger(this.getClass());
    logger.debug("Entering service method");
   
    // retrieves analysis information from session
    HttpSession session = request.getSession();
    OlapModel olapModel = (OlapModel) session.getAttribute("query01");
    ChartComponent chart = (ChartComponent) session.getAttribute("chart01");
    TableComponent table = (TableComponent) session.getAttribute("table01");
    AnalysisBean analysis = (AnalysisBean) session.getAttribute("analysisBean");
    analysis = AnalysisAdapterUtil.createAnalysisBean(analysis.getConnectionName(), analysis.getCatalogUri(),
      chart, table, olapModel);
    // stores current analysis information on session
    session.setAttribute("analysisBean", analysis);
   
    // retrieves Mondrian connection
    ScriptableMondrianDrillThrough smdt = (ScriptableMondrianDrillThrough) olapModel.getExtension("drillThrough");
    Connection mondrianConnection = smdt.getConnection();
    // retrieves CacheControl object
    CacheControl cacheControl = mondrianConnection.getCacheControl(null);
    // retrieves the MDX query
    MdxQuery mdxQuery = (MdxQuery) olapModel.getExtension("mdxQuery");
    Query mondrianQuery = mondrianConnection.parseQuery(mdxQuery.getMdxQuery());
    // finds the cube in the MDX query
      Cube cube = mondrianQuery.getCube();
      // flush cache on all measures for that cube
      CacheControl.CellRegion measuresRegion = cacheControl.createMeasuresRegion(cube);
View Full Code Here

Examples of com.tonbeller.jpivot.olap.model.OlapModel

  }
  */

  /** @return true if extension is available */
  protected boolean initializeExtension() {
    OlapModel om = table.getOlapModel();
    extension = (SpagoBICrossNavigation) om.getExtension(SpagoBICrossNavigation.ID);
    return extension != null;
  }
View Full Code Here

Examples of com.tonbeller.jpivot.olap.model.OlapModel

   
    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
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.