Class LegacyDatabaseVerifier
java.lang.Object
com.atlassian.crowd.migration.verify.DatabaseVerifier
com.atlassian.crowd.migration.verify.LegacyDatabaseVerifier
Pretty much a copy/paste of LegacyXmlVerifier - just that info is taken from database instead of XML document
Responsible for verifying the correctness of the legacy database
Currently this verifies that roles and groups within a directory have different names (case-insensitive comparison).
-
Field Summary
Fields inherited from class com.atlassian.crowd.migration.verify.DatabaseVerifier
errors, legacyTableQueries
-
Constructor Summary
ConstructorDescriptionLegacyDatabaseVerifier
(org.springframework.jdbc.core.JdbcOperations jdbcTemplate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method will be called between runs of the verifier to make sure that state can be purged between runs if required.void
verify()
Verifies a legacy database to ensure: 1.Methods inherited from class com.atlassian.crowd.migration.verify.DatabaseVerifier
getErrors, hasErrors, setLegacyTableQueries
-
Constructor Details
-
LegacyDatabaseVerifier
public LegacyDatabaseVerifier(org.springframework.jdbc.core.JdbcOperations jdbcTemplate)
-
-
Method Details
-
verify
public void verify()Verifies a legacy database to ensure: 1. no group name matches any other group name in the same directory 2. no role name matches any other role name in the same directory 3. no group name matches any role name in the same directoryErrors can be obtained by called
getErrors
.- Specified by:
verify
in classDatabaseVerifier
-
clearState
public void clearState()Description copied from class:DatabaseVerifier
This method will be called between runs of the verifier to make sure that state can be purged between runs if required.- Overrides:
clearState
in classDatabaseVerifier
-