Class ContentPackageValidator

  • All Implemented Interfaces:
    io.wcm.devops.conga.generator.spi.FilePlugin<io.wcm.devops.conga.generator.spi.context.ValidatorContext,​Void>, io.wcm.devops.conga.generator.spi.Plugin, io.wcm.devops.conga.generator.spi.ValidatorPlugin

    public class ContentPackageValidator
    extends Object
    implements io.wcm.devops.conga.generator.spi.ValidatorPlugin
    Validates AEM content packages with Jackrabbit FileVault validator.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String NAME
      Plugin name
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accepts​(io.wcm.devops.conga.generator.spi.context.FileContext file, io.wcm.devops.conga.generator.spi.context.ValidatorContext context)  
      Void apply​(io.wcm.devops.conga.generator.spi.context.FileContext file, io.wcm.devops.conga.generator.spi.context.ValidatorContext context)  
      String getName()  
      io.wcm.devops.conga.generator.spi.ImplicitApplyOptions implicitApply​(io.wcm.devops.conga.generator.spi.context.FileContext file, io.wcm.devops.conga.generator.spi.context.ValidatorContext context)  
    • Constructor Detail

      • ContentPackageValidator

        public ContentPackageValidator()
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface io.wcm.devops.conga.generator.spi.Plugin
      • accepts

        public boolean accepts​(io.wcm.devops.conga.generator.spi.context.FileContext file,
                               io.wcm.devops.conga.generator.spi.context.ValidatorContext context)
        Specified by:
        accepts in interface io.wcm.devops.conga.generator.spi.FilePlugin<io.wcm.devops.conga.generator.spi.context.ValidatorContext,​Void>
      • implicitApply

        public io.wcm.devops.conga.generator.spi.ImplicitApplyOptions implicitApply​(io.wcm.devops.conga.generator.spi.context.FileContext file,
                                                                                    io.wcm.devops.conga.generator.spi.context.ValidatorContext context)
        Specified by:
        implicitApply in interface io.wcm.devops.conga.generator.spi.FilePlugin<io.wcm.devops.conga.generator.spi.context.ValidatorContext,​Void>
        Specified by:
        implicitApply in interface io.wcm.devops.conga.generator.spi.ValidatorPlugin
      • apply

        public Void apply​(io.wcm.devops.conga.generator.spi.context.FileContext file,
                          io.wcm.devops.conga.generator.spi.context.ValidatorContext context)
                   throws io.wcm.devops.conga.generator.spi.ValidationException
        Specified by:
        apply in interface io.wcm.devops.conga.generator.spi.FilePlugin<io.wcm.devops.conga.generator.spi.context.ValidatorContext,​Void>
        Specified by:
        apply in interface io.wcm.devops.conga.generator.spi.ValidatorPlugin
        Throws:
        io.wcm.devops.conga.generator.spi.ValidationException