Interface ConfigurationsValidator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void validateDuplicateAuthorizables​(Set<String> authorizablesFromAllConfig, Set<String> authorizablesFromCurrentConfig, String configPath)
      Method that checks if a group in the current configuration file was already defined in another configuration file which has been already processed
      void validateInitialContentForNoDuplicates​(Set<biz.netcentric.cq.tools.actool.configmodel.AceBean> aceMapFromAllConfigs)
      Checks that no duplicate initialContent property is set
      void validateKeepOrder​(Set<biz.netcentric.cq.tools.actool.configmodel.AceBean> aceMapFromAllConfigs, Set<biz.netcentric.cq.tools.actool.configmodel.AceBean> aceBeansFromCurrentConfig, String sourceFile)
      Checks that keepOrder=true must be specified in one file for one given path (to ensure the natural order for an ACL can not span multiple files, include order of multiple files may vary)
      void validateSectionIdentifiers​(Set<String> sectionIdentifiers, String filePath)
      Method that checks if only valid configuration section identifiers (group (and optional users) and ACE) exist in the current configuration file
    • Method Detail

      • validateDuplicateAuthorizables

        void validateDuplicateAuthorizables​(Set<String> authorizablesFromAllConfig,
                                            Set<String> authorizablesFromCurrentConfig,
                                            String configPath)
                                     throws IllegalArgumentException
        Method that checks if a group in the current configuration file was already defined in another configuration file which has been already processed
        Parameters:
        authorizablesFromAllConfig - set holding all names of groups of all config files which have already been processed
        authorizablesFromCurrentConfig - set holding all names of the groups from the current configuration
        configPath - repository path of current config
        Throws:
        IllegalArgumentException
      • validateSectionIdentifiers

        void validateSectionIdentifiers​(Set<String> sectionIdentifiers,
                                        String filePath)
                                 throws IllegalArgumentException
        Method that checks if only valid configuration section identifiers (group (and optional users) and ACE) exist in the current configuration file
        Throws:
        IllegalArgumentException
      • validateInitialContentForNoDuplicates

        void validateInitialContentForNoDuplicates​(Set<biz.netcentric.cq.tools.actool.configmodel.AceBean> aceMapFromAllConfigs)
                                            throws IllegalArgumentException
        Checks that no duplicate initialContent property is set
        Parameters:
        aceMapFromAllConfigs -
        Throws:
        IllegalArgumentException
      • validateKeepOrder

        void validateKeepOrder​(Set<biz.netcentric.cq.tools.actool.configmodel.AceBean> aceMapFromAllConfigs,
                               Set<biz.netcentric.cq.tools.actool.configmodel.AceBean> aceBeansFromCurrentConfig,
                               String sourceFile)
        Checks that keepOrder=true must be specified in one file for one given path (to ensure the natural order for an ACL can not span multiple files, include order of multiple files may vary)