com.atlassian.crowd.migration.verify
Class LegacyDatabaseVerifier
java.lang.Object
com.atlassian.crowd.migration.verify.DatabaseVerifier
com.atlassian.crowd.migration.verify.LegacyDatabaseVerifier
public class LegacyDatabaseVerifier
- extends DatabaseVerifier
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).
Method Summary |
void |
clearState()
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LegacyDatabaseVerifier
public LegacyDatabaseVerifier(org.springframework.jdbc.core.JdbcOperations jdbcTemplate)
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 directory
Errors can be obtained by called
getErrors
.
- Specified by:
verify
in class DatabaseVerifier
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 class DatabaseVerifier
Copyright © 2013 Atlassian. All Rights Reserved.