Class DbEncryptionUpgradeOperation

java.lang.Object
org.craftercms.commons.upgrade.impl.operations.AbstractUpgradeOperation<String>
org.craftercms.studio.impl.v2.upgrade.operations.AbstractUpgradeOperation
org.craftercms.studio.impl.v2.upgrade.operations.db.DbEncryptionUpgradeOperation
All Implemented Interfaces:
org.craftercms.commons.upgrade.UpgradeOperation<String>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware

public class DbEncryptionUpgradeOperation extends AbstractUpgradeOperation
Implementation of UpgradeOperation that upgrades encrypted values in the database.
Since:
3.1.9
Author:
joseross
  • Field Details

    • REMOTE_REPOSITORIES_QUERY

      protected final String REMOTE_REPOSITORIES_QUERY
      See Also:
    • REMOTE_REPOSITORIES_UPDATE

      protected final String REMOTE_REPOSITORIES_UPDATE
      See Also:
    • textEncryptor

      protected org.craftercms.commons.crypto.TextEncryptor textEncryptor
  • Constructor Details

    • DbEncryptionUpgradeOperation

      @ConstructorProperties({"studioConfiguration","textEncryptor"}) public DbEncryptionUpgradeOperation(StudioConfiguration studioConfiguration, org.craftercms.commons.crypto.TextEncryptor textEncryptor)
  • Method Details

    • doExecute

      public void doExecute(StudioUpgradeContext context) throws org.craftercms.commons.upgrade.exception.UpgradeException
      Specified by:
      doExecute in class AbstractUpgradeOperation
      Throws:
      org.craftercms.commons.upgrade.exception.UpgradeException
    • upgradeValue

      protected String upgradeValue(String encrypted) throws org.craftercms.commons.crypto.CryptoException
      Throws:
      org.craftercms.commons.crypto.CryptoException
    • upgradeRemoteRepositories

      protected void upgradeRemoteRepositories(org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate jdbcTemplate) throws org.craftercms.commons.crypto.CryptoException
      Throws:
      org.craftercms.commons.crypto.CryptoException