Class CustomKeycloakTask
java.lang.Object
org.keycloak.connections.jpa.updater.liquibase.custom.CustomKeycloakTask
- All Implemented Interfaces:
liquibase.change.custom.CustomChange
,liquibase.change.custom.CustomSqlChange
- Direct Known Subclasses:
AbstractUserFedToComponent
,AuthzResourceUseMoreURIs
,ExtractRealmKeysFromRealmTable
,FederatedUserAttributeTextColumnMigration
,JpaUpdate1_2_0_Beta1
,JpaUpdate1_2_0_CR1
,JpaUpdate1_4_0_Final
,JpaUpdate1_9_0_Final
,JpaUpdate13_0_0_MigrateDefaultRoles
,JpaUpdate14_0_0_MigrateSamlArtifactAttribute
,JpaUpdate19_0_0_DefaultPostLogoutRedirectUri
,JpaUpdate21_0_2_TermsAndConditionsRequiredAction
,JpaUpdate22_0_0_RemoveRhssoThemes
,JpaUpdate22_0_5_UpdateAccountTheme
,JpaUpdate24_0_2_FederatedTermsAndConditionsRequiredAction
,JpaUpdate25_0_0_ConsentConstraints
,JpaUpdate25_0_0_MySQL_ConsentConstraints
,JpaUpdate26_0_0_IdentityProviderAttributesMigration
,JpaUpdate26_0_0_OrganizationGroupType
,JpaUpdate4_0_0_DefaultClientScopes
,JpaUpdate4_7_0_OfflineSessionsTimestamps
,JpaUpdateAuthz_3_4_0_CR1
,RemoveDuplicateOfflineSessions
public abstract class CustomKeycloakTask
extends Object
implements liquibase.change.custom.CustomSqlChange
- Author:
- Marek Posolda
-
Field Summary
Modifier and TypeFieldDescriptionprotected StringBuilder
protected Connection
protected liquibase.database.Database
protected liquibase.database.jvm.JdbcConnection
protected KeycloakSession
protected List<liquibase.statement.SqlStatement>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionliquibase.statement.SqlStatement[]
generateStatements
(liquibase.database.Database database) protected abstract void
It's supposed to fill SQL statements to the "statements" variable and fill "confirmationMessage"protected String
getTableName
(String tableName) protected abstract String
protected boolean
void
setFileOpener
(liquibase.resource.ResourceAccessor resourceAccessor) void
setUp()
liquibase.exception.ValidationErrors
validate
(liquibase.database.Database database)
-
Field Details
-
kcSession
-
database
protected liquibase.database.Database database -
jdbcConnection
protected liquibase.database.jvm.JdbcConnection jdbcConnection -
connection
-
confirmationMessage
-
statements
-
-
Constructor Details
-
CustomKeycloakTask
public CustomKeycloakTask()
-
-
Method Details
-
validate
public liquibase.exception.ValidationErrors validate(liquibase.database.Database database) - Specified by:
validate
in interfaceliquibase.change.custom.CustomChange
-
setFileOpener
public void setFileOpener(liquibase.resource.ResourceAccessor resourceAccessor) - Specified by:
setFileOpener
in interfaceliquibase.change.custom.CustomChange
-
getConfirmationMessage
- Specified by:
getConfirmationMessage
in interfaceliquibase.change.custom.CustomChange
-
setUp
public void setUp() throws liquibase.exception.SetupException- Specified by:
setUp
in interfaceliquibase.change.custom.CustomChange
- Throws:
liquibase.exception.SetupException
-
generateStatements
public liquibase.statement.SqlStatement[] generateStatements(liquibase.database.Database database) throws liquibase.exception.CustomChangeException - Specified by:
generateStatements
in interfaceliquibase.change.custom.CustomSqlChange
- Throws:
liquibase.exception.CustomChangeException
-
isApplicable
protected boolean isApplicable() throws liquibase.exception.CustomChangeException- Throws:
liquibase.exception.CustomChangeException
-
generateStatementsImpl
protected abstract void generateStatementsImpl() throws liquibase.exception.CustomChangeExceptionIt's supposed to fill SQL statements to the "statements" variable and fill "confirmationMessage"- Throws:
liquibase.exception.CustomChangeException
-
getTaskId
-
getTableName
-