Overview of the IdpMigrationManager
The IdpMigrationManager class provides methods that enable existing users in Fusion Service Identity Store to use Self-Service Optimization.
The following table lists the available methods:
Instance Method |
Purpose |
---|---|
migrate() |
Use this method to migrate all the users. |
migrate(contactPartyId: String) |
Use this method to migrate only the user identified by the given contact party ID. |
migrate(contactPartyIds: String[]) |
Use this method to migrate all the users identified by the given contact party IDs. |
migrateByAccountPartyIds(accountPartyIds: String[]) |
Use this method to migrate all the users related to the accounts identified by the given account party ID. |
The getInstance() Method
You can use the static getInstance() method of the IdpMigrationManager to obtain an instance of the IdpMigrationManager.
This method takes the following argument.
Argument |
Description |
---|---|
idpDestination |
The value of this parameters must always be ORA_CSS_IDP_IDCS. |
batchSize (optional) |
This number determines the number of users fetched from the database and processed at one time. The recommended batch size is 100. This parameter value isn't used when methods that accept contactPartyId as parameter. |
totalCount (optional) |
The total number of users processed. This value should not be greater than 2000. |
Groovy Code
Use the following Groovy code to get an instance of the IdpMigrationManager.
def idpDestination = "ORA_CSS_IDP_IDCS";
def mgr = oracle.apps.crm.service.css.migrationService.util.IdpMigrationManager.getInstance(idpDestination, 100, 2000);
Here's an example use of the Groovy script code to enable a single contact identified the contact party ID for Self-Service Optimization.
def contactPartyId = 1234L;
def idpDestination = "ORA_CSS_IDP_IDCS";
def mgr = oracle.apps.crm.service.css.migrationService.util.IdpMigrationManager.getInstance(idpDestination);
def msg = mgr.migrate(contactPartyId);
return msg;