[teiid-commits] teiid SVN: r841 - trunk/adminshell/src/main/resources/scripts.

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Fri Apr 24 09:12:53 EDT 2009


Author: vhalbert at redhat.com
Date: 2009-04-24 09:12:52 -0400 (Fri, 24 Apr 2009)
New Revision: 841

Modified:
   trunk/adminshell/src/main/resources/scripts/adminapi.bsh
Log:
Teiid 470 - added new method - addVDB that supports passing in the AdminOptions in order to support multiple options

Modified: trunk/adminshell/src/main/resources/scripts/adminapi.bsh
===================================================================
--- trunk/adminshell/src/main/resources/scripts/adminapi.bsh	2009-04-23 22:44:04 UTC (rev 840)
+++ trunk/adminshell/src/main/resources/scripts/adminapi.bsh	2009-04-24 13:12:52 UTC (rev 841)
@@ -76,6 +76,28 @@
 }
 
 /**
+ * Import a {@link VDB} file.
+ * <br>A VDB file with internal definitions. This is the default VDB export configuration
+ * begining with MetaMatrix version 4.3.</br>
+ *
+ * @param name
+ *            VDB Name
+ * @param vdbFile
+ *            byte array of the VDB Archive
+ * @param AdminOptions that defines the options on how to import the vdb and its related connector bindings.
+ * See {@link AdminOptions}.
+ * @throws AdminException
+ *             if there's a system error.
+ * @return the {@link VDB} representing the current property values and runtime state.
+ * @since 6.1.0
+ */
+VDB addVDB(String name, byte[] vdb, AdminOptions options) {
+    debug("Adding VDB " + name);
+    checkAdmin();    
+    return currentContext().internalAdmin.addVDB(name, vdb, options);
+}
+
+/**
  * Export VDB to a file.
  * 
  * @param name




More information about the teiid-commits mailing list