Class ConfigNameUtil
java.lang.Object
org.apache.sling.caconfig.resource.impl.util.ConfigNameUtil
Helper methods for configuration names.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
ensureValidConfigName
(String configName) Ensure that the config name is valid.static String[]
getAllPartialConfigNameVariations
(String configName) Returns all partial combinations like: a, a/b, a/b/c from config name a/b/c/dstatic boolean
Check if the config name is valid.static boolean
isValid
(Collection<String> configNames) Check if the config name is valid.
-
Method Details
-
isValid
Check if the config name is valid.- Parameters:
configName
- The name- Returns:
true
if it is valid
-
isValid
Check if the config name is valid.- Parameters:
configNames
- The names- Returns:
true
if it is valid
-
ensureValidConfigName
Ensure that the config name is valid.- Parameters:
configName
- The name- Throws:
IllegalArgumentException
- if the config name is not valid
-
getAllPartialConfigNameVariations
Returns all partial combinations like: a, a/b, a/b/c from config name a/b/c/d- Parameters:
configName
- Config name- Returns:
- All partial combinations
-