public class MigrateFrom210 extends MigrationClientBase implements MigrationClient
Constructor and Description |
---|
MigrateFrom210(String tenantArguments,
String blackListTenantArguments,
String tenantRange,
RegistryService registryService,
org.wso2.carbon.user.core.tenant.TenantManager tenantManager) |
Modifier and Type | Method and Description |
---|---|
void |
cleanOldResources()
This method is used to clean old resources from registry.
|
void |
databaseMigration()
This method is used to migrate databases.
|
void |
fileSystemMigration()
This method is used to migrate all file system resources.
|
void |
populateScopeRoleMapping()
This method is used to retrieve user roles based on permissions and update the scopes in the the tenant-conf.
|
void |
populateSPAPPs()
This method is to populate SP_APP table
|
void |
registryResourceMigration()
This method is used to migrate all the registry resources
Swagger, RXTs and all other registry resources will be migrated
|
void |
scopeMigration()
This method is used to migrate the scopes of API's
|
void |
spMigration()
This method is used to migrate service provider information
|
void |
statsMigration()
This method is used to migrate API stats database.
|
void |
tierMigration(List<String> options)
This method is used to migrate throttling tiers.
|
void |
updateAPIPropertyVisibility()
This method is used to migrate properties to 3.2 with devportal visibility intact
|
void |
updateAPITypeInDB()
This method is used to migrate properties to 3.2 with devportal visibility intact
|
void |
updateArtifacts()
This method is used to update the API artifacts in the registry to trigger indexer.
|
void |
updateScopeRoleMappings()
This method is used to update role scope mappings during 2.x to 3.2 migrations
|
dropFKConstraint, getTenantsArray, migrateFaultSequencesInRegistry, rxtMigration, updateAPIManagerDatabase, updateGenericAPIArtifacts
public MigrateFrom210(String tenantArguments, String blackListTenantArguments, String tenantRange, RegistryService registryService, org.wso2.carbon.user.core.tenant.TenantManager tenantManager) throws org.wso2.carbon.user.api.UserStoreException, APIMigrationException, org.wso2.carbon.apimgt.api.APIManagementException
org.wso2.carbon.user.api.UserStoreException
APIMigrationException
org.wso2.carbon.apimgt.api.APIManagementException
public void databaseMigration() throws APIMigrationException, SQLException
MigrationClient
databaseMigration
in interface MigrationClient
APIMigrationException
SQLException
public void registryResourceMigration() throws APIMigrationException
MigrationClient
registryResourceMigration
in interface MigrationClient
APIMigrationException
public void fileSystemMigration() throws APIMigrationException
MigrationClient
fileSystemMigration
in interface MigrationClient
APIMigrationException
public void cleanOldResources() throws APIMigrationException
MigrationClient
cleanOldResources
in interface MigrationClient
APIMigrationException
public void statsMigration() throws APIMigrationException, APIMStatMigrationException
MigrationClient
statsMigration
in interface MigrationClient
APIMigrationException
APIMStatMigrationException
public void tierMigration(List<String> options) throws APIMigrationException
MigrationClient
tierMigration
in interface MigrationClient
APIMigrationException
public void updateArtifacts() throws APIMigrationException
MigrationClient
updateArtifacts
in interface MigrationClient
APIMigrationException
public void populateSPAPPs() throws APIMigrationException
MigrationClient
populateSPAPPs
in interface MigrationClient
APIMigrationException
public void populateScopeRoleMapping() throws APIMigrationException
MigrationClient
populateScopeRoleMapping
in interface MigrationClient
APIMigrationException
public void scopeMigration() throws APIMigrationException
MigrationClient
scopeMigration
in interface MigrationClient
APIMigrationException
public void spMigration() throws APIMigrationException
MigrationClient
spMigration
in interface MigrationClient
APIMigrationException
public void updateScopeRoleMappings() throws APIMigrationException
MigrationClient
updateScopeRoleMappings
in interface MigrationClient
APIMigrationException
public void updateAPIPropertyVisibility()
MigrationClient
updateAPIPropertyVisibility
in interface MigrationClient
public void updateAPITypeInDB() throws APIMigrationException
MigrationClient
updateAPITypeInDB
in interface MigrationClient
APIMigrationException
Copyright © 2024 WSO2. All rights reserved.