public class DbEncryptionUpgradeOperation extends AbstractUpgradeOperation
UpgradeOperation that upgrades encrypted values in
the database.| Modifier and Type | Field and Description |
|---|---|
protected String |
CLUSTER_MEMBERS_QUERY |
protected String |
CLUSTER_MEMBERS_UPDATE |
protected String |
REMOTE_REPOSITORIES_QUERY |
protected String |
REMOTE_REPOSITORIES_UPDATE |
protected org.craftercms.commons.crypto.TextEncryptor |
textEncryptor |
applicationContext, commitDetails, CONFIG_KEY_COMMIT_DETAILS, contentRepository, currentVersion, dataSource, nextVersion, servletContext, studioConfiguration| Constructor and Description |
|---|
DbEncryptionUpgradeOperation(org.craftercms.commons.crypto.TextEncryptor textEncryptor) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(String site)
Performs a single upgrade operation.
|
protected void |
upgradeClusterMembers(org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate jdbcTemplate) |
protected void |
upgradeRemoteRepositories(org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate jdbcTemplate) |
protected String |
upgradeValue(String encrypted) |
commitAllChanges, doInit, getCommitMessage, getConnection, getContentRepository, getProperty, getRepositoryPath, init, loadResource, setApplicationContext, setContentRepository, setDataSource, setServletContext, setStudioConfiguration, writeToRepoprotected final String REMOTE_REPOSITORIES_QUERY
protected final String REMOTE_REPOSITORIES_UPDATE
protected final String CLUSTER_MEMBERS_QUERY
protected final String CLUSTER_MEMBERS_UPDATE
protected org.craftercms.commons.crypto.TextEncryptor textEncryptor
public DbEncryptionUpgradeOperation(org.craftercms.commons.crypto.TextEncryptor textEncryptor)
public void execute(String site) throws UpgradeException
UpgradeOperationsite - the name of the siteUpgradeException - if there is any error performing the upgradeprotected String upgradeValue(String encrypted) throws org.craftercms.commons.crypto.CryptoException
org.craftercms.commons.crypto.CryptoExceptionprotected void upgradeRemoteRepositories(org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate jdbcTemplate)
throws org.craftercms.commons.crypto.CryptoException
org.craftercms.commons.crypto.CryptoExceptionprotected void upgradeClusterMembers(org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate jdbcTemplate)
throws org.craftercms.commons.crypto.CryptoException
org.craftercms.commons.crypto.CryptoExceptionCopyright © 2020 CrafterCMS. All rights reserved.