Class JpaUpdate24_0_2_FederatedTermsAndConditionsRequiredAction
java.lang.Object
org.keycloak.connections.jpa.updater.liquibase.custom.CustomKeycloakTask
org.keycloak.connections.jpa.updater.liquibase.custom.JpaUpdate24_0_2_FederatedTermsAndConditionsRequiredAction
- All Implemented Interfaces:
liquibase.change.custom.CustomChange,liquibase.change.custom.CustomSqlChange
Custom liquibase change to migrate legacy
terms and conditions required action for federated users (table
FED_USER_REQUIRED_ACTION, in line with what JpaUpdate21_0_2_TermsAndConditionsRequiredAction
did to migrate the same action for regular users.
The legacy value was in lowercase, and it was changed to upper case to match the other required actions in Keycloak.
This class ensures that the legacy action set for federated users is properly migrated to upper case when upgrading
the server.- Author:
- Stefan Guilhen
-
Field Summary
Fields inherited from class org.keycloak.connections.jpa.updater.liquibase.custom.CustomKeycloakTask
confirmationMessage, connection, database, jdbcConnection, kcSession, statements -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidIt's supposed to fill SQL statements to the "statements" variable and fill "confirmationMessage"protected StringMethods inherited from class org.keycloak.connections.jpa.updater.liquibase.custom.CustomKeycloakTask
generateStatements, getConfirmationMessage, getTableName, isApplicable, setFileOpener, setUp, validate
-
Constructor Details
-
JpaUpdate24_0_2_FederatedTermsAndConditionsRequiredAction
public JpaUpdate24_0_2_FederatedTermsAndConditionsRequiredAction()
-
-
Method Details
-
generateStatementsImpl
protected void generateStatementsImpl() throws liquibase.exception.CustomChangeExceptionDescription copied from class:CustomKeycloakTaskIt's supposed to fill SQL statements to the "statements" variable and fill "confirmationMessage"- Specified by:
generateStatementsImplin classCustomKeycloakTask- Throws:
liquibase.exception.CustomChangeException
-
getTaskId
- Specified by:
getTaskIdin classCustomKeycloakTask
-