org.palo.api.ext.favoriteviews.impl
Class FavoriteViewXMLHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.palo.api.impl.xml.BaseXMLHandler
          extended by org.palo.api.ext.favoriteviews.impl.FavoriteViewXMLHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class FavoriteViewXMLHandler
extends BaseXMLHandler

FavoriteViewXMLHandler Parses a given XML file representing favorite views and translates it into a tree consisting of FavoriteViewsFolder and FavoriteView objects.

Version:
$Id: FavoriteViewXMLHandler.html,v 1.8 2009/07/09 11:01:47 ArndHouben Exp $

Constructor Summary
FavoriteViewXMLHandler(Connection connection)
          The constructor adds the handlers for the XML structure.
 
Method Summary
 CubeView findCubeViewById(Connection connection, java.lang.String dbId, java.lang.String cubeId, java.lang.String viewId)
          This method is used to find a CubeView object in the set of currently active databases and connections.
 FavoriteViewTreeNode getRoot()
          Returns the root of the generated tree.
 
Methods inherited from class org.palo.api.impl.xml.BaseXMLHandler
endElement, putEndHandler, putStartHandler, startElement
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FavoriteViewXMLHandler

public FavoriteViewXMLHandler(Connection connection)
The constructor adds the handlers for the XML structure.

Parameters:
connection - the Connection from which this xml file is read.
Method Detail

getRoot

public FavoriteViewTreeNode getRoot()
Returns the root of the generated tree.

Returns:
the root of the generated tree.

findCubeViewById

public CubeView findCubeViewById(Connection connection,
                                 java.lang.String dbId,
                                 java.lang.String cubeId,
                                 java.lang.String viewId)
This method is used to find a CubeView object in the set of currently active databases and connections. To identify the specific view, the server name, service name, user name, database id, cube id and cube view id are used.

Parameters:
connection - the connection of the current user.
dbId - the unique database id belonging to the view in question.
cubeId - the cube id belongig to the view in question.
viewId - the cube view id belonging to the view in question.
Returns:
the CubeView object representing the specified strings, or null if no matching CubeView could be found.