com.tensegrity.palowebviewer.server.paloaccessor
Class PaloHelper

java.lang.Object
  extended by com.tensegrity.palowebviewer.server.paloaccessor.PaloHelper

public class PaloHelper
extends java.lang.Object


Constructor Summary
PaloHelper()
           
 
Method Summary
static XElement[] convert(org.palo.api.ElementNode[] nodes, XDimension dimension)
           
static org.palo.api.Axis findAxisById(org.palo.api.CubeView cubeView, java.lang.String id)
           
static org.palo.api.ElementNode findElementNode(java.lang.String elementId, org.palo.api.ElementNode[] rootNodes)
           
static org.palo.api.CubeView getCubeView(org.palo.api.Cube cube, java.lang.String viewId)
           
static int[] getDimensionOrder(XCube xCube, java.util.List dimensionPaths)
           
static org.palo.api.ElementNode[] getParentPath(org.palo.api.ElementNode[] rootNodes, java.lang.String elementId)
           
static org.palo.api.ext.subsets.SubsetHandler getSubetHandler(XSubset xSubset)
           
static org.palo.api.ElementNode[] getSubsetNativeNodes(XSubset xSubset)
           
static IXSubsetType getSubsetType(org.palo.api.Subset subset)
           
static XElementNode[] getSubsetXElements(XSubset xSubset)
           
static double[] getWeights(org.palo.api.Consolidation[] nodes)
           
static XAxis[] getXAxises(XView xview)
           
static XCube[] getXCubes(org.palo.api.Cube[] cubes, XDatabase db)
           
static XDatabase[] getXDatabases(org.palo.api.Connection connection, XServer server)
           
static XDimension[] getXDimensions(org.palo.api.Dimension[] dimensions, XDatabase db)
           
static XElement[] getXElements(org.palo.api.Consolidation[] consolidation, XObject parent)
           
static XServer[] getXServers(IConnectionPool pool, PaloConfiguration cfg, XRoot root)
           
static XSubset[] getXSubsets(XDimension dimension)
           
static XView[] getXViews(XCube xcube)
           
static void loadAxis(XAxis xAxis)
           
static XAxis wrapAxis(org.palo.api.Axis axis, XView parent)
           
static XCube wrapCube(org.palo.api.Cube cube)
           
static XDatabase wrapDatabase(org.palo.api.Database db)
           
static XDimension wrapDimension(org.palo.api.Dimension dimension)
           
static XElement wrapElement(org.palo.api.Element element, XObject parent)
           
static XElementNode wrapElementNode(org.palo.api.ElementNode node, XObject parent, XDimension dimension)
           
static XElementNode[] wrapElementNodes(org.palo.api.ElementNode[] nodes, XObject parent, XDimension dimension)
           
static IElementType wrapElementType(org.palo.api.Element element)
           
static XElement wrapElementWithParents(org.palo.api.Element element, XDimension dimension)
           
static XServer wrapServer(org.palo.api.Connection connection)
           
static XSubset wrapSubset(org.palo.api.Subset subset, XObject parent)
           
static XView wrapView(org.palo.api.CubeView view)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaloHelper

public PaloHelper()
Method Detail

convert

public static XElement[] convert(org.palo.api.ElementNode[] nodes,
                                 XDimension dimension)

getParentPath

public static org.palo.api.ElementNode[] getParentPath(org.palo.api.ElementNode[] rootNodes,
                                                       java.lang.String elementId)
                                                throws InvalidObjectPathException
Throws:
InvalidObjectPathException

wrapAxis

public static XAxis wrapAxis(org.palo.api.Axis axis,
                             XView parent)

findAxisById

public static org.palo.api.Axis findAxisById(org.palo.api.CubeView cubeView,
                                             java.lang.String id)

wrapSubset

public static XSubset wrapSubset(org.palo.api.Subset subset,
                                 XObject parent)

getSubsetType

public static IXSubsetType getSubsetType(org.palo.api.Subset subset)

wrapElementType

public static IElementType wrapElementType(org.palo.api.Element element)

wrapElement

public static XElement wrapElement(org.palo.api.Element element,
                                   XObject parent)

getXElements

public static XElement[] getXElements(org.palo.api.Consolidation[] consolidation,
                                      XObject parent)

wrapCube

public static XCube wrapCube(org.palo.api.Cube cube)

getXCubes

public static XCube[] getXCubes(org.palo.api.Cube[] cubes,
                                XDatabase db)

wrapDimension

public static XDimension wrapDimension(org.palo.api.Dimension dimension)

getXDimensions

public static XDimension[] getXDimensions(org.palo.api.Dimension[] dimensions,
                                          XDatabase db)

wrapDatabase

public static XDatabase wrapDatabase(org.palo.api.Database db)

getDimensionOrder

public static int[] getDimensionOrder(XCube xCube,
                                      java.util.List dimensionPaths)

getXDatabases

public static XDatabase[] getXDatabases(org.palo.api.Connection connection,
                                        XServer server)

wrapServer

public static XServer wrapServer(org.palo.api.Connection connection)

getXServers

public static XServer[] getXServers(IConnectionPool pool,
                                    PaloConfiguration cfg,
                                    XRoot root)

getWeights

public static double[] getWeights(org.palo.api.Consolidation[] nodes)

getXSubsets

public static XSubset[] getXSubsets(XDimension dimension)

wrapElementWithParents

public static XElement wrapElementWithParents(org.palo.api.Element element,
                                              XDimension dimension)

wrapElementNode

public static XElementNode wrapElementNode(org.palo.api.ElementNode node,
                                           XObject parent,
                                           XDimension dimension)

wrapElementNodes

public static XElementNode[] wrapElementNodes(org.palo.api.ElementNode[] nodes,
                                              XObject parent,
                                              XDimension dimension)

findElementNode

public static org.palo.api.ElementNode findElementNode(java.lang.String elementId,
                                                       org.palo.api.ElementNode[] rootNodes)

getSubsetNativeNodes

public static org.palo.api.ElementNode[] getSubsetNativeNodes(XSubset xSubset)

getSubetHandler

public static org.palo.api.ext.subsets.SubsetHandler getSubetHandler(XSubset xSubset)

getSubsetXElements

public static XElementNode[] getSubsetXElements(XSubset xSubset)

wrapView

public static XView wrapView(org.palo.api.CubeView view)

getXViews

public static XView[] getXViews(XCube xcube)

getXAxises

public static XAxis[] getXAxises(XView xview)

loadAxis

public static void loadAxis(XAxis xAxis)

getCubeView

public static org.palo.api.CubeView getCubeView(org.palo.api.Cube cube,
                                                java.lang.String viewId)