Package rex.metadata

Examples of rex.metadata.ServerMetadata


    Object obj=evt.getSource();
    if(ur.equalsIgnoreCase("http://localhost:8080/mondrian/xmla"))
    {
      if(obj==bDS)
      {
             ServerMetadata smd = new ServerMetadata(ur);
             DataSourceTreeElement ds[] = smd.discoverDataSources();
             cmbDS.removeAllItems();
             for (int i = 0; ds != null && i < ds.length; i++)
             {
                 cmbDS.addItem((ds[i].toString()).trim());
             }
             cmbDS.repaint();
      }
      if(obj==bCat)
      {
        ServerMetadata smd = new ServerMetadata(ur);
        XMLADiscoverRestrictions restrictions = XMLAObjectsFactory.newXMLADiscoverRestrictions();
        XMLADiscoverProperties   properties   = XMLAObjectsFactory.newXMLADiscoverProperties();
          properties.setDataSourceInfo((String)cmbDS.getSelectedItem());
        CatalogElement ds[]=(CatalogElement[])smd.getCatalogList(restrictions,properties);
        cmbCat.removeAllItems();
        for (int i = 0; i < ds.length; i++)
          {         
            cmbCat.addItem((ds[i].toString()).trim());
          }
        cmbCat.repaint();
      }
      if(obj==bCube)
      {
        ServerMetadata smd = new ServerMetadata(ur);
        XMLADiscoverRestrictions restrictions = XMLAObjectsFactory.newXMLADiscoverRestrictions();
        XMLADiscoverProperties   properties   = XMLAObjectsFactory.newXMLADiscoverProperties();
          properties.setDataSourceInfo((String)cmbDS.getSelectedItem());
          properties.setCatalog((String)cmbCat.getSelectedItem());
        DataSourceTreeElement ds[]=smd.getCubeList(restrictions,properties);
        cmbCube.removeAllItems();
        for (int i = 0; i < ds.length; i++)
          {  System.out.println(ds[i].toString());       
            cmbCube.addItem((ds[i].toString()));
          }       
View Full Code Here


   }


   public static void main(String[] args) {
     ServerMetadata svm = new ServerMetadata("http://localhost:8080/xmla/msxisapi.dll");

     XMLADiscoverRestrictions restrictions = XMLAObjectsFactory.newXMLADiscoverRestrictions();
     XMLADiscoverProperties   properties   = XMLAObjectsFactory.newXMLADiscoverProperties();

View Full Code Here

    * Main class used for testing the Mdx Editor.
    * @param args String[]
    */
   public static void main(String[] args){
      String url = JOptionPane.showInputDialog("Please input an Foodmart 2000 service URL", "http://localhost:8080/xmla/msxisapi.dll");
      ServerMetadata svm = new ServerMetadata( url);

      XMLADiscoverRestrictions restrictions =  XMLAObjectsFactory.newXMLADiscoverRestrictions();
      XMLADiscoverProperties   properties   =  XMLAObjectsFactory.newXMLADiscoverProperties();


View Full Code Here

  {
      mdxEditorRestrictions.setCatalog(strCatalog);
      mdxEditorRestrictions.setCubeName(strCube);
      mdxEditorProperties.setDataSourceInfo(strDataSourcename);
      mdxEditorProperties.setCatalog(strCatalog);
    mdxEditor=new MdxEditor(mdxEditorRestrictions,mdxEditorProperties,new ServerMetadata(strOLAPURL),strCube);
    mdxEditor.setLocale(this.locale);
    I18n.setCurrentLocale(this.locale);        
    mdxEditor.setLocaleEnabled(false);
    pQueryEditor.add(mdxEditor,BorderLayout.CENTER);
    cardLayout.show(pMdxMainPanel,"pQueryEditor");
View Full Code Here

    public void addDataSource(String URL){
        int i;
       final DataSourceRootElement rootData = (DataSourceRootElement)root.getUserObject();
       if (!urls.containsKey(URL)){ // Jules Grengbondai
           ServerMetadata smd = new ServerMetadata(URL);
           DataSourceTreeElement ds[] = smd.discoverDataSources();
           if (ds != null){
                try {
                    urls.put(URL, new URL(URL));
                } catch (java.net.MalformedURLException  e) {
                   // ignored
View Full Code Here

// TEST main:


   public static void main(String[] args) {

       ServerMetadata svm = new ServerMetadata("http://localhost/xmla/msxisapi.dll");

       XMLADiscoverRestrictions restrictions =  XMLAObjectsFactory.newXMLADiscoverRestrictions();
       XMLADiscoverProperties   properties   =  XMLAObjectsFactory.newXMLADiscoverProperties();

       properties.setDataSourceInfo("Local Analysis Server");
View Full Code Here

TOP

Related Classes of rex.metadata.ServerMetadata

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.