Package org.craftercms.engine.util
Class TargetingUtils
java.lang.Object
org.craftercms.engine.util.TargetingUtils
Utility methods for content targeting.
- Author:
- avasquez
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
excludePath
(String path) Returns true if the path should be excluded or ignored for targeting.static String
getMatchingRootFolder
(String targetedUrl) Return the root folder of the specified targeted URL
-
Method Details
-
getMatchingRootFolder
Return the root folder of the specified targeted URL- Parameters:
targetedUrl
- the targeted URL- Returns:
- the root folder that matches the targeted URL
-
excludePath
Returns true if the path should be excluded or ignored for targeting.- Parameters:
path
- the path- Returns:
- true if the path should be excluded
-