Interface ConfigurationsValidator
-
- All Known Implementing Classes:
YamlConfigurationsValidator
public interface ConfigurationsValidator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidvalidateDuplicateAuthorizables(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 processedvoidvalidateInitialContentForNoDuplicates(Set<biz.netcentric.cq.tools.actool.configmodel.AceBean> aceMapFromAllConfigs)Checks that no duplicate initialContent property is setvoidvalidateKeepOrder(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)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
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 processedauthorizablesFromCurrentConfig- set holding all names of the groups from the current configurationconfigPath- 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)
-
-