com.atlassian.crowd.migration.verify
Class VersionMismatchVerifier

java.lang.Object
  extended by com.atlassian.crowd.migration.verify.VersionMismatchVerifier
All Implemented Interfaces:
Verifier

public class VersionMismatchVerifier
extends Object
implements Verifier

This class will validate the correctness of an XML file to be imported into the currently running version of Crowd.

This will stop XML files created from 'newer' versions of crowd, e.g. 2.0.3 being imported into 2.0.2 versions.


Constructor Summary
VersionMismatchVerifier()
           
 
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.
 List<String> getErrors()
           
 boolean hasErrors()
           
 void verify(org.dom4j.Element root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionMismatchVerifier

public VersionMismatchVerifier()
Method Detail

verify

public void verify(org.dom4j.Element root)
Specified by:
verify in interface Verifier

clearState

public void clearState()
Description copied from interface: Verifier
This method will be called between runs of the verifier to make sure that state can be purged between runs if required.

Specified by:
clearState in interface Verifier

hasErrors

public boolean hasErrors()
Specified by:
hasErrors in interface Verifier

getErrors

public List<String> getErrors()
Specified by:
getErrors in interface Verifier


Copyright © 2013 Atlassian. All Rights Reserved.