Synchronization Validation Script

The following script is a shell which can be used as a validation script as part of the synchronization process.

import org.openiam.provision.type.Attribute
import org.openiam.idm.srvc.synch.dto.LineObject
import org.openiam.sync.service.ValidationScript
class LdapValidationScript implements ValidationScript {
public int isValid(LineObject rowObj) {
println "** 1 - Validation script called for ldap"
println "** 2 - Validation script for ldap has been completed and is valid."
for(Map.Entry<String, Attribute> entry : rowObj.columnMap.entrySet()) {
println(entry.key+" = "+entry.value);
}
return ValidationScript.VALID
}
}