Class ContentPathUtils
java.lang.Object
org.onehippo.forge.content.exim.core.util.ContentPathUtils
Content Node Path related utilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringencodeNodePath(String nodePath) Returns encoded node path where each node name in thenodePathis encoded by using Hippo CMS Default URI Encoding strategy.static StringremoveIndexNotationInNodePath(String nodePath) Removes SNS (Same Name Sibling) index notation in the givennodePath.static String[]splitToFolderPathAndName(String contentLocation) Splits the givencontentLocationto an array which consists of a folder path and the node name.
-
Method Details
-
removeIndexNotationInNodePath
Removes SNS (Same Name Sibling) index notation in the givennodePath.- Parameters:
nodePath- node path- Returns:
- a node path without SNS (Same Name Sibling) index notation
-
encodeNodePath
Returns encoded node path where each node name in thenodePathis encoded by using Hippo CMS Default URI Encoding strategy.- Parameters:
nodePath- node path- Returns:
- encoded node path where each node name in the
nodePathis encoded by using Hippo CMS Default URI Encoding strategy
-
splitToFolderPathAndName
Splits the givencontentLocationto an array which consists of a folder path and the node name.- Parameters:
contentLocation- content node path- Returns:
- an array which consists of a folder path and the node name
-