All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target_yaml2.hcm-config.configuration.update.updater2.yaml Maven / Gradle / Ivy

The newest version!
definitions:
  config:
    /hippo:configuration/hippo:update/hippo:registry/Test Updater 2:
      jcr:primaryType: hipposys:updaterinfo
      hipposys:batchsize: 1
      hipposys:description: Test thing
      hipposys:dryrun: true
      hipposys:parameters: '{prop: val}'
      hipposys:path: /content
      hipposys:script: |-
        import org.onehippo.repository.update.BaseNodeUpdateVisitor

        import javax.jcr.Node

        class TestUpdater2 extends BaseNodeUpdateVisitor {
            boolean doUpdate(Node node) {
                log.info "manipulate node < > & an %^&* /> {}", node.path
                return true
            }

            boolean undoUpdate(Node node) {
                throw new UnsupportedOperationException('Updater does not implement undoUpdate method')
            }
        }
      hipposys:throttle: 200




© 2015 - 2025 Weber Informatics LLC | Privacy Policy