com.atlassian.crowd.migration.verify
Class LegacyDatabaseVerifier

java.lang.Object
  extended by com.atlassian.crowd.migration.verify.DatabaseVerifier
      extended by 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).


Field Summary
 
Fields inherited from class com.atlassian.crowd.migration.verify.DatabaseVerifier
errors, legacyTableQueries
 
Constructor Summary
LegacyDatabaseVerifier(org.springframework.jdbc.core.JdbcOperations jdbcTemplate)
           
 
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 com.atlassian.crowd.migration.verify.DatabaseVerifier
getErrors, hasErrors, setLegacyTableQueries
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyDatabaseVerifier

public LegacyDatabaseVerifier(org.springframework.jdbc.core.JdbcOperations jdbcTemplate)
Method Detail

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.