public abstract class OneBaseUpgrade extends BaseUpgrade
The one base upgrade adds additional edoras one security related functionality to the BaseUpgrade. It will also get the tenants once for all upgrades to improve the
performance of the upgrades.
| Constructor and Description |
|---|
OneBaseUpgrade(String version,
String description,
BulkWorkObjectProcessor workObjectProcessor,
BulkWorkObjectDefinitionProcessor definitionProcessor,
CurrentTenantService currentTenantService,
CurrentUserService currentUserService,
UserManager userManager,
OnePersistence onePersistence,
org.springframework.transaction.PlatformTransactionManager transactionManager,
TenantLookupService tenantLookupService)
Creates a new instance of a one base upgrade with the given version and description of the upgrade.
|
| Modifier and Type | Method and Description |
|---|---|
OnePersistence |
getOnePersistence() |
void |
migrate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) |
getDescription, getVersionpublic OneBaseUpgrade(String version, String description, BulkWorkObjectProcessor workObjectProcessor, BulkWorkObjectDefinitionProcessor definitionProcessor, CurrentTenantService currentTenantService, CurrentUserService currentUserService, UserManager userManager, OnePersistence onePersistence, org.springframework.transaction.PlatformTransactionManager transactionManager, TenantLookupService tenantLookupService)
Creates a new instance of a one base upgrade with the given version and description of the upgrade.
version - the version of the upgradedescription - the description of the upgradeworkObjectProcessor - the work object processor for bulk updatesdefinitionProcessor - the work object definition processor for bulk updatescurrentTenantService - the current tenant service which is needed for executing the upgrades in a tenant scopecurrentUserService - the current user service which is needed for executing the upgrades in a user scopeuserManager - the user manager which is needed to retrieve the administrator useronePersistence - the one persistence which is used to get all tenants of the systemtransactionManager - the transaction manager to use for the upgradetenantLookupService - the tenant lookup servicepublic void migrate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
throws Exception
migrate in interface org.flywaydb.core.api.migration.spring.SpringJdbcMigrationmigrate in class BaseUpgradeExceptionpublic OnePersistence getOnePersistence()
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.