MigrationMainObj Object [C++]
Use this object to coordinate the migration from the Site Server 3.0 Membership Directory to the Commerce Server Profile data store. The MigrationMainObj object uses the following four COM objects to implement this task:
- MigrationLogObj
- MigrationModifyObj
- MigrationReadObj
- MigrationWriteObj
ProgID: | MigrationProfile (Externally creatable) |
COM Class Name: | MigrationProfile |
Type Library Name: | MigrationMainObj 1.0 Type Library |
DLL Name: |
[C++]
COM Interface Name: | IMigrationProfile |
Interface ID Constant: | None |
Header File: | MigrationProfile.h |
[C++]
In C++, use the IMigrationProfile interface to access the properties and methods of the MigrationMainObj object.
Methods
[C++]
Method | Description |
---|---|
Initialize | Sets up all the components for the migration process. |
MigrateObject | Migrates an ADSPath key to the Commerce Server 2002 Profile data store. |
ShutDown | Shuts down and deallocates the data structures that were created upon initialization. |
[Visual Basic]
Method | Description |
---|---|
Initialize | Sets up all the components for the migration process. |
MigrateObject | Migrates an ADSPath key to the Commerce Server 2002 Profile data store. |
ShutDown | Shuts down and deallocates the data structures that were created upon initialization. |
Remarks
The following structure should be added to the .idl file included in the Migration folder to facilitate passing the profile information to each object:
typedef struct _PROFILE
long lprofile_id;
' bstrConfigStore in Commerce Server
BSTR bstrConnection;
' used in profile service initialization
BSTR bstrCatalog;
' migrate user's membership
BSTR bstrMemberOf;
SAFEARRAY(BSTR) Attributes;
' number of attribute types
SAFEARRAY(USHORT) nAttributeTypes;
' only for write use
SAFEARRAY(BSTR) ProfileTypes;
' Membership User name
BSTR bstrMOUserName;
BSTR bstrMDPassword;
BSTR bstrCSUserName
BSTR bstrCSPassword;
' True for ADSite, otherwise False
BSTR bstrADSite;
' OU that holds all groups
BSTR bstrGroupOU;
' total number of modifiers in this profile
long lNumModifies;
' modify info
SAFEARRAY(USHORT) rgModIndex;
} PROFILE;
See Also
[Visual Basic]MigrationLogObj Object
[Visual Basic]MigrationModify Object
[Visual Basic]MigrationReadObj Object
[Visual Basic]MigrationWriteObj Object
Copyright © 2005 Microsoft Corporation.
All rights reserved.