Class FilterDynamicSchemaProcessor

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String filter​(java.lang.String schemaUrl, Util.PropertyList connectInfo, java.io.InputStream stream)
      Reads the contents of a schema as a stream and returns the result as a string.
      java.lang.String processSchema​(java.lang.String schemaUrl, Util.PropertyList connectInfo)
      Modifies a Mondrian schema.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FilterDynamicSchemaProcessor

        public FilterDynamicSchemaProcessor()
    • Method Detail

      • processSchema

        public java.lang.String processSchema​(java.lang.String schemaUrl,
                                              Util.PropertyList connectInfo)
                                       throws java.lang.Exception
        Modifies a Mondrian schema.

        An implementation should generally interpret the URL string as an Apache VFS (virtual file system) URL.

        FilterDynamicSchemaProcessor's implementation of this method reads from the URL supplied (that is, it does not perform URL translation) and passes it through the filter(java.lang.String, mondrian.olap.Util.PropertyList, java.io.InputStream) method.

        Specified by:
        processSchema in interface DynamicSchemaProcessor
        Parameters:
        schemaUrl - The URL of the catalog.
        connectInfo - Connection properties.
        Returns:
        Returns the modified schema.
        Throws:
        java.lang.Exception - if an error occurs.
      • filter

        protected java.lang.String filter​(java.lang.String schemaUrl,
                                          Util.PropertyList connectInfo,
                                          java.io.InputStream stream)
                                   throws java.lang.Exception
        Reads the contents of a schema as a stream and returns the result as a string.

        The default implementation returns the contents of the schema unchanged.

        Parameters:
        schemaUrl - the URL of the catalog
        connectInfo - Connection properties
        stream - Schema contents represented as a stream
        Returns:
        the modified schema
        Throws:
        java.lang.Exception - if an error occurs