Package org.palo.viewapi

Examples of org.palo.viewapi.CubeView


    } catch (Throwable t) {
    }
    importedXView.setRoleIds(roleIds);
    importedXView.setRoleNames(roleNames);       
    //saves xml definition in spagobi
    CubeView  cubeView = realView.getCubeView();
    String xml = CubeViewIO.toXML(cubeView);

    return importedXView;
  }
View Full Code Here


//    UserSession userSession = getUserSession(sessionId);
    View view = CubeViewController.getViewById(sessionId, viewId);
    if (view == null) {
      return null;
    }
    CubeView cv = view.getCubeView();
    if (cv == null) {
      try {
        cv = view.createCubeView(getLoggedInUser(sessionId), sessionId);
      } catch (PaloIOException e) {
        e.printStackTrace();
      } finally {
        ConnectionPoolManager.getInstance().disconnect(view.getAccount(), sessionId, "WPaloCubeViewServiceImpl.toNative");       
      }
    }
    Axis axis = cv.getAxis(axisId);
    if (axis == null) {
      return null;
    }
    AxisHierarchy axisHierarchy = axis.getAxisHierarchy(axisHierarchyId);
    if (axisHierarchy == null) {
      for (Axis ax: cv.getAxes()) {
        AxisHierarchy ah = ax.getAxisHierarchy(axisHierarchyId);
        if (ah != null) {
          return ah;
        }
      }
View Full Code Here

    UserSession userSession = getUserSession(sessionId);
    View view = CubeViewController.getViewById(sessionId, xAxis.getViewId());
    if (view == null) {
      return null;
    }
    CubeView cv = view.getCubeView();
    if (cv == null) {
      try {
        cv = view.createCubeView(getLoggedInUser(sessionId), sessionId);
      } catch (PaloIOException e) {
        throw new PaloGwtCoreException(e.getMessage(), e);
      } finally {
        ConnectionPoolManager.getInstance().disconnect(view.getAccount(), sessionId, "WPaloCubeViewServiceImpl.toNative2");
      }
    }
    Axis axis = cv.getAxis(xAxis.getId());
    if (axis == null) {
      return null;
    }   
    return axis;
  }
View Full Code Here

TOP

Related Classes of org.palo.viewapi.CubeView

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.