target_yaml.hcm-content.configuration.update.updater.yaml Maven / Gradle / Ivy
The newest version!
/hippo:configuration/hippo:update/hippo:queue/Test Updater:
jcr:primaryType: hipposys:updaterinfo
hipposys:batchsize: 10
hipposys:dryrun: false
hipposys:query: //element(*, hippo:document)
hipposys:script: |-
import nl.openweb.tools.Tools
import org.onehippo.repository.update.BaseNodeUpdateVisitor
import javax.jcr.Node
class TestUpdater extends BaseNodeUpdateVisitor {
boolean doUpdate(Node node) {
log.info(Tools.getEnvironmentInfo())
log.info "manipulate node < > & an %^&* /> {}", node.path
return true
}
boolean undoUpdate(Node node) {
throw new UnsupportedOperationException('Updater does not implement undoUpdate method')
}
}
hipposys:throttle: 1000
© 2015 - 2025 Weber Informatics LLC | Privacy Policy