Package org.craftercms.engine.util
Class TargetingUtils
- java.lang.Object
-
- org.craftercms.engine.util.TargetingUtils
-
public class TargetingUtils extends Object
Utility methods for content targeting.- Author:
- avasquez
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
getMatchingRootFolder
public static String getMatchingRootFolder(String targetedUrl)
Return the root folder of the specified targeted URL- Parameters:
targetedUrl
- the targeted URL- Returns:
- the root folder that matches the targeted URL
-
excludePath
public static boolean excludePath(String path)
Returns true if the path should be excluded or ignored for targeting.- Parameters:
path
- the path- Returns:
- true if the path should be excluded
-
-