Class YamlConfigurationsValidator
- java.lang.Object
-
- biz.netcentric.cq.tools.actool.validators.YamlConfigurationsValidator
-
- All Implemented Interfaces:
ConfigurationsValidator
public class YamlConfigurationsValidator extends Object implements ConfigurationsValidator
-
-
Constructor Summary
Constructors Constructor Description YamlConfigurationsValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidateDuplicateAuthorizables(Set<String> groupsFromAllConfig, Set<String> groupsFromCurrentConfig, String configPath)Method that checks if a group in the current configuration file was already defined in another configuration file which has been already processedvoidvalidateInitialContentForNoDuplicates(Set<biz.netcentric.cq.tools.actool.configmodel.AceBean> aceBeansFromConfig)Checks that no duplicate initialContent property is setvoidvalidateKeepOrder(Set<biz.netcentric.cq.tools.actool.configmodel.AceBean> aceBeansFromAllConfigs, 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)voidvalidateSectionIdentifiers(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
public void validateDuplicateAuthorizables(Set<String> groupsFromAllConfig, Set<String> groupsFromCurrentConfig, String configPath) throws IllegalArgumentException
Description copied from interface:ConfigurationsValidatorMethod that checks if a group in the current configuration file was already defined in another configuration file which has been already processed- Specified by:
validateDuplicateAuthorizablesin interfaceConfigurationsValidator- Parameters:
groupsFromAllConfig- set holding all names of groups of all config files which have already been processedgroupsFromCurrentConfig- set holding all names of the groups from the current configurationconfigPath- repository path of current config- Throws:
IllegalArgumentException
-
validateSectionIdentifiers
public void validateSectionIdentifiers(Set<String> sectionIdentifiers, String filePath) throws IllegalArgumentException
Description copied from interface:ConfigurationsValidatorMethod that checks if only valid configuration section identifiers (group (and optional users) and ACE) exist in the current configuration file- Specified by:
validateSectionIdentifiersin interfaceConfigurationsValidator- Throws:
IllegalArgumentException
-
validateInitialContentForNoDuplicates
public void validateInitialContentForNoDuplicates(Set<biz.netcentric.cq.tools.actool.configmodel.AceBean> aceBeansFromConfig) throws IllegalArgumentException
Description copied from interface:ConfigurationsValidatorChecks that no duplicate initialContent property is set- Specified by:
validateInitialContentForNoDuplicatesin interfaceConfigurationsValidator- Throws:
IllegalArgumentException
-
validateKeepOrder
public void validateKeepOrder(Set<biz.netcentric.cq.tools.actool.configmodel.AceBean> aceBeansFromAllConfigs, Set<biz.netcentric.cq.tools.actool.configmodel.AceBean> aceBeansFromCurrentConfig, String sourceFile)
Description copied from interface:ConfigurationsValidatorChecks 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)- Specified by:
validateKeepOrderin interfaceConfigurationsValidator
-
-