public class MigrateFrom18to19 extends MigrationClientBase implements MigrationClient
Constructor and Description |
---|
MigrateFrom18to19(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 registry resources.
|
void |
databaseMigration()
This method is used to migrate database tables
This executes the database queries according to the user's db type and alters the tables
|
void |
fileSystemMigration()
This method is used to migrate all the file system components
such as sequences and synapse files
|
void |
fixConsumerAppTable()
This method will format the APP_NAME IN IDN_OAUTH_CONSUMER_APPS table according to the 1.9 format
|
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 |
populateSPAPPTable(ResultSet resultSet)
This method will be used to populate SP_APP table
|
void |
registryResourceMigration()
This method is used to migrate all registry resources
This migrates swagger resources and rxts
|
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 |
updateMetaDataTable() |
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 MigrateFrom18to19(String tenantArguments, String blackListTenantArguments, String tenantRange, RegistryService registryService, org.wso2.carbon.user.core.tenant.TenantManager tenantManager) throws org.wso2.carbon.user.api.UserStoreException, org.wso2.carbon.apimgt.api.APIManagementException
org.wso2.carbon.user.api.UserStoreException
org.wso2.carbon.apimgt.api.APIManagementException
public void databaseMigration() throws SQLException
databaseMigration
in interface MigrationClient
SQLException
public void registryResourceMigration() throws APIMigrationException
registryResourceMigration
in interface MigrationClient
APIMigrationException
public void cleanOldResources() throws APIMigrationException
cleanOldResources
in interface MigrationClient
APIMigrationException
public void statsMigration() throws APIMigrationException
statsMigration
in interface MigrationClient
APIMigrationException
public void fileSystemMigration() throws APIMigrationException
fileSystemMigration
in interface MigrationClient
APIMigrationException
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 populateSPAPPTable(ResultSet resultSet) throws APIMigrationException
APIMigrationException
public void fixConsumerAppTable() throws APIMigrationException
APIMigrationException
public void updateMetaDataTable() throws APIMigrationException
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.