com.atlassian.crowd.migration.verify
Class LegacyXmlVerifier

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

public class LegacyXmlVerifier
extends Object
implements Verifier

Responsible for verifying the correctness of a legacy XML backup.

Currently this verifies that roles and groups within a directory have different names (case-insensitive comparison).


Constructor Summary
LegacyXmlVerifier()
           
 
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)
          Verifies an XML document to ensure: 1.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyXmlVerifier

public LegacyXmlVerifier()
Method Detail

verify

public void verify(org.dom4j.Element root)
Verifies an XML document 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 interface Verifier
Parameters:
root - root of the XML document.

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 © 2012 Atlassian. All Rights Reserved.