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,- 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,- 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 SummaryFieldsModifier and TypeFieldDescriptionprotected StringBuilderprotected Connectionprotected liquibase.database.Databaseprotected liquibase.database.jvm.JdbcConnectionprotected KeycloakSessionprotected List<liquibase.statement.SqlStatement>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionliquibase.statement.SqlStatement[]generateStatements(liquibase.database.Database database) protected abstract voidIt's supposed to fill SQL statements to the "statements" variable and fill "confirmationMessage"protected StringgetTableName(String tableName) protected abstract Stringprotected booleanvoidsetFileOpener(liquibase.resource.ResourceAccessor resourceAccessor) voidsetUp()liquibase.exception.ValidationErrorsvalidate(liquibase.database.Database database) 
- 
Field Details- 
kcSession
- 
databaseprotected liquibase.database.Database database
- 
jdbcConnectionprotected liquibase.database.jvm.JdbcConnection jdbcConnection
- 
connection
- 
confirmationMessage
- 
statements
 
- 
- 
Constructor Details- 
CustomKeycloakTaskpublic CustomKeycloakTask()
 
- 
- 
Method Details- 
validatepublic liquibase.exception.ValidationErrors validate(liquibase.database.Database database) - Specified by:
- validatein interface- liquibase.change.custom.CustomChange
 
- 
setFileOpenerpublic void setFileOpener(liquibase.resource.ResourceAccessor resourceAccessor) - Specified by:
- setFileOpenerin interface- liquibase.change.custom.CustomChange
 
- 
getConfirmationMessage- Specified by:
- getConfirmationMessagein interface- liquibase.change.custom.CustomChange
 
- 
setUppublic void setUp() throws liquibase.exception.SetupException- Specified by:
- setUpin interface- liquibase.change.custom.CustomChange
- Throws:
- liquibase.exception.SetupException
 
- 
generateStatementspublic liquibase.statement.SqlStatement[] generateStatements(liquibase.database.Database database) throws liquibase.exception.CustomChangeException - Specified by:
- generateStatementsin interface- liquibase.change.custom.CustomSqlChange
- Throws:
- liquibase.exception.CustomChangeException
 
- 
isApplicableprotected boolean isApplicable() throws liquibase.exception.CustomChangeException- Throws:
- liquibase.exception.CustomChangeException
 
- 
generateStatementsImplprotected 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
 
-