Class AbstractDatabaseCollationRule
- java.lang.Object
-
- com.atlassian.confluence.impl.health.checks.rules.AbstractHealthCheckRule
-
- com.atlassian.confluence.impl.health.checks.rules.AbstractDatabaseCollationRule
-
- All Implemented Interfaces:
HealthCheckRule
- Direct Known Subclasses:
MsSqlCollationRule
,MySqlCollationRule
,PostgresCollationRule
public abstract class AbstractDatabaseCollationRule extends AbstractHealthCheckRule
Convenient superclass for Database Collation Health Check Rules.- Since:
- 6.13
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]
supportedCollations
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractDatabaseCollationRule(ErrorMessageProvider errorMessageProvider, URL kbUrl, DatabaseCollationVerifier databaseCollationVerifier, SingleConnectionProvider databaseHelper, com.atlassian.config.db.HibernateConfig hibernateConfig, String[] supportedCollations)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Optional<String>
doValidation()
protected abstract String
getCollationScript()
protected String
getFailureMessageKey()
-
Methods inherited from class com.atlassian.confluence.impl.health.checks.rules.AbstractHealthCheckRule
getErrorMessage, getFailureEvent, validate
-
-
-
-
Field Detail
-
supportedCollations
protected final String[] supportedCollations
-
-
Constructor Detail
-
AbstractDatabaseCollationRule
protected AbstractDatabaseCollationRule(ErrorMessageProvider errorMessageProvider, URL kbUrl, DatabaseCollationVerifier databaseCollationVerifier, SingleConnectionProvider databaseHelper, com.atlassian.config.db.HibernateConfig hibernateConfig, String[] supportedCollations)
-
-
Method Detail
-
doValidation
protected Optional<String> doValidation()
- Specified by:
doValidation
in classAbstractHealthCheckRule
-
getCollationScript
protected abstract String getCollationScript()
-
getFailureMessageKey
protected String getFailureMessageKey()
-
-