Package org.palo.api

Examples of org.palo.api.Dimension


    int allDimCnt = db.getDimensionCount();
    int dimCnt = 0;
    XObject  ret[];

    for (int i = 0; i < allDimCnt; i++) {
      Dimension dim = db.getDimensionAt(i);
      if ((parent.getFolderType().equalsIgnoreCase(TYPE_STATIC_FOLDER_DIMENSIONS) && isDataDimension(dim)) ||
        (parent.getFolderType().equalsIgnoreCase(TYPE_STATIC_FOLDER_SYSTEMDIMENSIONS) && dim.isSystemDimension()) ||
        (parent.getFolderType().equalsIgnoreCase(TYPE_STATIC_FOLDER_ATTRIBUTEDIMENSIONS) && dim.isAttributeDimension())) {
        dimCnt++;
      }
    }
   
    if (parent.getFolderType().equalsIgnoreCase(TYPE_STATIC_FOLDER_DIMENSIONS)) {
      dimCnt += 2;              // for additional subfolders
    }
     
    ret = new XObject[dimCnt];
    int curDim = 0;
 
    for (int i = 0; i < allDimCnt; i++)
    {
      Dimension dim = db.getDimensionAt(i);
      if ((parent.getFolderType().equalsIgnoreCase(TYPE_STATIC_FOLDER_DIMENSIONS) && isDataDimension(dim)) ||
        (parent.getFolderType().equalsIgnoreCase(TYPE_STATIC_FOLDER_SYSTEMDIMENSIONS) && dim.isSystemDimension()) ||
        (parent.getFolderType().equalsIgnoreCase(TYPE_STATIC_FOLDER_ATTRIBUTEDIMENSIONS) && dim.isAttributeDimension())) {
        XDimension xdim = (XDimension) XConverter.createX(dim);
//        xdim.setName(dim.getName());
//        xdim.setDbId(db.getId());
//        xdim.setDimId(dim.getId());
        setIdToXObject(xdim);
View Full Code Here


      Connection con = ConnectionFactory.getInstance().newConnection(cfg);
      Database db = con.getDatabaseByName("Config");
      if (db != null) {
        Cube c = db.getCubeByName("#_connections");
        if (c != null) {
          Dimension conDim = c.getDimensionByName("connections");
          Dimension conAttribDim = c.getDimensionByName("#_connections_");
          ArrayList <Element []> coords = new ArrayList<Element[]>();
          ArrayList <Element> attributes = new ArrayList<Element>();
          addElement(attributes, conAttribDim, "type");
          addElement(attributes, conAttribDim, "name");
          addElement(attributes, conAttribDim, "host");
View Full Code Here

  }
 
  private final XDirectLinkData parsePaloStudioConnectionData(String paloSuiteUser, String paloSuitePass, String paloSuiteHost, String paloSuitePort, Database configDb, String viewId, SimpleLogger log, XDirectLinkData data, String locale) {
    Cube c = configDb.getCubeByName("#_connections");
    if (c != null) {
      Dimension conDim = c.getDimensionByName("connections");
      Dimension conAttribDim = c.getDimensionByName("#_connections_");
      ArrayList <Element []> coords = new ArrayList<Element[]>();
      ArrayList <Element> attributes = new ArrayList<Element>();
      addElement(attributes, conAttribDim, "type");
      addElement(attributes, conAttribDim, "name");
      addElement(attributes, conAttribDim, "host");
View Full Code Here

TOP

Related Classes of org.palo.api.Dimension

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.