|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.server.admin.apiimpl.RuntimeMetadataHelper
public class RuntimeMetadataHelper
A collection of static methods that facilitate the server-side remote class RuntimeMetadataAdminAPIImpl.
Field Summary | |
---|---|
static char |
PATH_SEPERATOR_CHAR
|
static short |
VDB_STATE_ACTIVE
|
static short |
VDB_STATE_ACTIVE_DEFAULT
|
static short |
VDB_STATE_DELETED
|
static short |
VDB_STATE_INACTIVE
|
static short |
VDB_STATE_INCOMPLETE
|
Constructor Summary | |
---|---|
RuntimeMetadataHelper()
|
Method Summary | |
---|---|
static MaterializationLoadScripts |
createMaterializedViewLoadProperties(ModelInfo materializationModel,
java.lang.String matURL,
java.lang.String matDriver,
java.lang.String materializationUserName,
java.lang.String materializationUserPwd,
java.lang.String mmHost,
java.lang.String mmPort,
java.lang.String mmDriver,
boolean useSSL,
java.lang.String metamatrixUserName,
java.lang.String metamatrixPwd,
java.lang.String vdbName,
java.lang.String vdbVersion)
Generate connection properties for materialization model in given VDB. |
static MaterializationLoadScripts |
createMaterializedViewLoadPropertiesVersion(ModelInfo materializationModel,
java.lang.String matURL,
java.lang.String matDriver,
java.lang.String materializationUserName,
java.lang.String materializationUserPwd,
java.lang.String mmHost,
java.lang.String mmPort,
java.lang.String mmDriver,
boolean useSSL,
java.lang.String metamatrixUserName,
java.lang.String metamatrixPwd,
java.lang.String vdbName,
java.lang.String vdbVersion)
|
static java.util.List |
getAllDataNodeNames(java.lang.String vdbName,
java.lang.String vdbVersion,
java.util.Map modelNameToModelMap)
Aquire all data node full names from the runtime catalog. |
static java.util.List |
getAllDataNodeNames(VirtualDatabaseID vdbID,
java.util.Map modelNameToModelMap)
Aquire all data node full names from the runtime catalog. |
static void |
getDataNodeNames(PermissionDataNodeImpl treeRoot,
java.util.List nodeNames)
A recursive method that gets the list of data node names from the given data node tree. |
static PermissionDataNodeImpl |
getDataNodes(java.lang.String vdbName,
java.lang.String vdbVersion)
Get the tree of data nodes that make op a VDB. |
static PermissionDataNode |
getPermissionDataNodes(AuthorizationRealm realm,
AuthorizationPolicyID policyID,
AuthorizationServiceInterface authSvcProxy)
Method to provide the task of finding all data nodes in realm, finding any and all permissions assigned to them, uniting these and returning the united objects. |
static VirtualDatabaseID |
getVDBID(java.lang.String vdbName,
java.lang.String vdbVersion)
|
static short[] |
mapVDBStates(short stateFlag)
|
static EntitlementMigrationReport |
migrateEntitlements(VirtualDatabaseID tvdbID)
|
static EntitlementMigrationReport |
migrateEntitlements(VirtualDatabaseID tvdbID,
char[] dataRoleContents,
boolean overwriteExisting,
SessionToken session)
|
static EntitlementMigrationReport |
migrateEntitlements(VirtualDatabase sourceVDB,
VirtualDatabase targetVDB,
SessionToken token)
|
protected static java.lang.String |
parseDatabaseType(java.lang.String url,
java.lang.String driver)
|
protected static java.lang.String |
parseDatabaseType(java.lang.String url,
java.lang.String driver,
java.lang.String userName,
java.lang.String pwd)
|
static void |
printTree(java.util.Map tree)
|
static VirtualDatabase |
walkBack(java.lang.String vdbName,
int vers,
short stateFlag)
Given a VDB, get its previous version of a given state. Note: The stateFlag paremeter is currently meaningless
and has no effect on the algorithm. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char PATH_SEPERATOR_CHAR
public static final short VDB_STATE_INCOMPLETE
public static final short VDB_STATE_INACTIVE
public static final short VDB_STATE_ACTIVE
public static final short VDB_STATE_DELETED
public static final short VDB_STATE_ACTIVE_DEFAULT
Constructor Detail |
---|
public RuntimeMetadataHelper()
Method Detail |
---|
public static short[] mapVDBStates(short stateFlag)
public static VirtualDatabase walkBack(java.lang.String vdbName, int vers, short stateFlag) throws VirtualDatabaseException
stateFlag
paremeter is currently meaningless
and has no effect on the algorithm. All VDB ancesters of state INCOMPLETE,
INACTIVE or ACTIVE will be returned.
vdbName
- The VDB to get the previous version.vers
- The current version of the given VDB. We'll be looking for the one before this.stateFlag
- Only interested in VDBs of state(s).
VirtualDatabaseException
public static java.util.List getAllDataNodeNames(VirtualDatabaseID vdbID, java.util.Map modelNameToModelMap) throws MetaMatrixComponentException
vdbID
- The VDB from which to get the node names.
MetaMatrixComponentException
- if an error occurs in the runtime
catalog.public static void getDataNodeNames(PermissionDataNodeImpl treeRoot, java.util.List nodeNames)
treeRoot
- The root of the data node (sub)tree.nodeNames
- The list of all data node names found in the tree collected during recursion.public static java.util.List getAllDataNodeNames(java.lang.String vdbName, java.lang.String vdbVersion, java.util.Map modelNameToModelMap) throws MetaMatrixComponentException
vdbName
- The VDB name from which to get the node names.vdbVersion
- The VDB version from which to get the node names.
MetaMatrixComponentException
- if an error occurs in the runtime
catalog.public static PermissionDataNodeImpl getDataNodes(java.lang.String vdbName, java.lang.String vdbVersion) throws MetaMatrixComponentException
vdbName
- The name of the VDB for which data nodes are sought.vdbVersion
- The version of the VDB for which data nodes are sought.
MetaMatrixComponentException
public static PermissionDataNode getPermissionDataNodes(AuthorizationRealm realm, AuthorizationPolicyID policyID, AuthorizationServiceInterface authSvcProxy) throws MetaMatrixComponentException
realm
- The realm in which to look for data nodes and their permissions.policyID
- The AuthorizationPolicyID
for which to check for
permissions on data nodes.authSvcProxy
- A proxy to the AuthorizationService.
MetaMatrixComponentException
public static void printTree(java.util.Map tree)
public static VirtualDatabaseID getVDBID(java.lang.String vdbName, java.lang.String vdbVersion) throws MetaMatrixComponentException
MetaMatrixComponentException
public static EntitlementMigrationReport migrateEntitlements(VirtualDatabaseID tvdbID) throws MetaMatrixComponentException
MetaMatrixComponentException
public static EntitlementMigrationReport migrateEntitlements(VirtualDatabaseID tvdbID, char[] dataRoleContents, boolean overwriteExisting, SessionToken session) throws MetaMatrixComponentException
MetaMatrixComponentException
public static EntitlementMigrationReport migrateEntitlements(VirtualDatabase sourceVDB, VirtualDatabase targetVDB, SessionToken token) throws MetaMatrixComponentException
MetaMatrixComponentException
public static MaterializationLoadScripts createMaterializedViewLoadProperties(ModelInfo materializationModel, java.lang.String matURL, java.lang.String matDriver, java.lang.String materializationUserName, java.lang.String materializationUserPwd, java.lang.String mmHost, java.lang.String mmPort, java.lang.String mmDriver, boolean useSSL, java.lang.String metamatrixUserName, java.lang.String metamatrixPwd, java.lang.String vdbName, java.lang.String vdbVersion)
scripts
to be given back to Console admin to save.
vdbInfo
- TODOmatURL
- matDriver
- materializationUserName
- materializationUserPwd
- mmHost
- mmPort
- mmDriver
- metamatrixUserName
- metamatrixPwd
- vdbName
- TODOvdbVersion
- TODO
public static MaterializationLoadScripts createMaterializedViewLoadPropertiesVersion(ModelInfo materializationModel, java.lang.String matURL, java.lang.String matDriver, java.lang.String materializationUserName, java.lang.String materializationUserPwd, java.lang.String mmHost, java.lang.String mmPort, java.lang.String mmDriver, boolean useSSL, java.lang.String metamatrixUserName, java.lang.String metamatrixPwd, java.lang.String vdbName, java.lang.String vdbVersion)
protected static java.lang.String parseDatabaseType(java.lang.String url, java.lang.String driver, java.lang.String userName, java.lang.String pwd) throws java.lang.Throwable
url
-
java.lang.Throwable
protected static java.lang.String parseDatabaseType(java.lang.String url, java.lang.String driver)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |