com.metamatrix.console.models
Class VdbManager

java.lang.Object
  extended by com.metamatrix.console.models.Manager
      extended by com.metamatrix.console.models.VdbManager

public class VdbManager
extends Manager


Field Summary
 
Fields inherited from class com.metamatrix.console.models.Manager
MODEL_CHANGED, MODEL_STALE
 
Constructor Summary
VdbManager(ConnectionInfo connection)
           
 
Method Summary
 void exportVDB(VirtualDatabase vdb, java.lang.String vdbFileName, java.lang.String parentDir)
           
 int getHighestNumberedVDBVersion(java.lang.String vdbName)
           
 VirtualDatabase getLatestVDBVersion(java.lang.String vdbName)
           
 MaterializationLoadScripts getMaterializationScripts(ConnectorBinding materializationConnector, VDBDefn vdb, java.lang.String mmHost, java.lang.String mmPort, java.lang.String materializationUserName, java.lang.String materializationUserPwd, java.lang.String metamatrixUserName, java.lang.String metamatrixUserPwd)
           
 ModelInfo getMaterializationTableModel(VDBDefn vdb)
           
 PermissionDataNodeTreeView getTreeViewForVDB(java.lang.String vdbName, java.lang.String vdbVersion)
           
 java.util.Collection getVdbEntitlements(VirtualDatabaseID vdbID)
           
 java.util.Collection getVdbModels(VirtualDatabaseID vdbID)
           
 java.util.Collection getVDBs()
           
 java.util.Collection getVDBsForConnectorBinding(java.lang.String routingID)
           
 java.lang.String getVdbStatusAsString(short siStatus)
           
 VirtualDatabase getVirtualDatabase(VirtualDatabaseID vdbID)
           
 WSDLOperationsDescription getWSDLOperationsDescription(VirtualDatabase vdb)
           
 boolean hasAnyModels(TreeView treeView)
           
 boolean hasMaterializationModels(VirtualDatabase virtualDatabase)
          return true if the specified VirtualDatabase has any materialization models.
 EntitlementMigrationReport importEntitlements(VirtualDatabase vdbSource, char[] dataRoleContents, boolean overwriteExisting)
           
 java.lang.Object[] importVDB(VDBArchive vdbArchive, boolean importRoles)
           
 java.lang.Boolean isVDBActive(java.lang.String vdbName, int vdbVersion)
          Returns null if VDB not found, else Boolean.
 void markVDBForDelete(VirtualDatabaseID vdbID)
           
 java.util.Map migrateConnectorBindingNames(VirtualDatabase vdbSourceVdb, VDBDefn vdb)
           
 EntitlementMigrationReport migrateEntitlements(VirtualDatabase vdbSource, VirtualDatabase vdbTarget)
           
 boolean modelSuppressed(java.lang.String sModelName)
           
 void setConnectorBindingNames(VirtualDatabaseID vdbId, java.util.Map mapModelsToConnBinds)
           
 void setVDBState(VirtualDatabaseID vdbID, short siState)
           
 void updateVirtualDatabase(VirtualDatabase vdb)
           
 boolean vdbHasDataRoles(VirtualDatabaseID vid)
           
 boolean vdbSuppressed(java.lang.String sVdbName)
           
 
Methods inherited from class com.metamatrix.console.models.Manager
addManagerListener, fireModelChangedEvent, fireModelChangedEvent, getConnection, getConnection, getEncryptor, getEventListeners, getIsStale, init, refresh, removeManagerListener, setIsStale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VdbManager

public VdbManager(ConnectionInfo connection)
Method Detail

hasAnyModels

public boolean hasAnyModels(TreeView treeView)

getVDBs

public java.util.Collection getVDBs()
                             throws java.lang.Exception
Throws:
java.lang.Exception

getVirtualDatabase

public VirtualDatabase getVirtualDatabase(VirtualDatabaseID vdbID)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getVdbModels

public java.util.Collection getVdbModels(VirtualDatabaseID vdbID)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

isVDBActive

public java.lang.Boolean isVDBActive(java.lang.String vdbName,
                                     int vdbVersion)
                              throws java.lang.Exception
Returns null if VDB not found, else Boolean. Else Boolean.TRUE or Boolean.FALSE.

Throws:
java.lang.Exception

updateVirtualDatabase

public void updateVirtualDatabase(VirtualDatabase vdb)
                           throws java.lang.Exception
Throws:
java.lang.Exception

vdbHasDataRoles

public boolean vdbHasDataRoles(VirtualDatabaseID vid)
                        throws java.lang.Exception
Throws:
java.lang.Exception

setConnectorBindingNames

public void setConnectorBindingNames(VirtualDatabaseID vdbId,
                                     java.util.Map mapModelsToConnBinds)
                              throws java.lang.Exception
Throws:
java.lang.Exception

migrateConnectorBindingNames

public java.util.Map migrateConnectorBindingNames(VirtualDatabase vdbSourceVdb,
                                                  VDBDefn vdb)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

getVDBsForConnectorBinding

public java.util.Collection getVDBsForConnectorBinding(java.lang.String routingID)
                                                throws java.lang.Exception
Throws:
java.lang.Exception

setVDBState

public void setVDBState(VirtualDatabaseID vdbID,
                        short siState)
                 throws java.lang.Exception
Throws:
java.lang.Exception

markVDBForDelete

public void markVDBForDelete(VirtualDatabaseID vdbID)
                      throws java.lang.Exception
Throws:
java.lang.Exception

migrateEntitlements

public EntitlementMigrationReport migrateEntitlements(VirtualDatabase vdbSource,
                                                      VirtualDatabase vdbTarget)
                                               throws java.lang.Exception
Throws:
java.lang.Exception

importEntitlements

public EntitlementMigrationReport importEntitlements(VirtualDatabase vdbSource,
                                                     char[] dataRoleContents,
                                                     boolean overwriteExisting)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

modelSuppressed

public boolean modelSuppressed(java.lang.String sModelName)

vdbSuppressed

public boolean vdbSuppressed(java.lang.String sVdbName)

getVdbStatusAsString

public java.lang.String getVdbStatusAsString(short siStatus)

getVdbEntitlements

public java.util.Collection getVdbEntitlements(VirtualDatabaseID vdbID)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

getTreeViewForVDB

public PermissionDataNodeTreeView getTreeViewForVDB(java.lang.String vdbName,
                                                    java.lang.String vdbVersion)
                                             throws java.lang.Exception
Throws:
java.lang.Exception

getHighestNumberedVDBVersion

public int getHighestNumberedVDBVersion(java.lang.String vdbName)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getLatestVDBVersion

public VirtualDatabase getLatestVDBVersion(java.lang.String vdbName)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

importVDB

public java.lang.Object[] importVDB(VDBArchive vdbArchive,
                                    boolean importRoles)
                             throws java.lang.Exception
Throws:
java.lang.Exception

exportVDB

public void exportVDB(VirtualDatabase vdb,
                      java.lang.String vdbFileName,
                      java.lang.String parentDir)
               throws java.lang.Exception
Throws:
java.lang.Exception

getWSDLOperationsDescription

public WSDLOperationsDescription getWSDLOperationsDescription(VirtualDatabase vdb)

getMaterializationTableModel

public ModelInfo getMaterializationTableModel(VDBDefn vdb)

getMaterializationScripts

public MaterializationLoadScripts getMaterializationScripts(ConnectorBinding materializationConnector,
                                                            VDBDefn vdb,
                                                            java.lang.String mmHost,
                                                            java.lang.String mmPort,
                                                            java.lang.String materializationUserName,
                                                            java.lang.String materializationUserPwd,
                                                            java.lang.String metamatrixUserName,
                                                            java.lang.String metamatrixUserPwd)
                                                     throws java.lang.Exception
Throws:
java.lang.Exception

hasMaterializationModels

public boolean hasMaterializationModels(VirtualDatabase virtualDatabase)
                                 throws java.lang.Exception
return true if the specified VirtualDatabase has any materialization models.

Throws:
java.lang.Exception
Since:
4.3


Copyright © 2009. All Rights Reserved.