Class ContentPathUtils
java.lang.Object
org.onehippo.forge.content.exim.core.util.ContentPathUtils
Content Node Path related utilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
encodeNodePath
(String nodePath) Returns encoded node path where each node name in thenodePath
is encoded by using Hippo CMS Default URI Encoding strategy.static String
removeIndexNotationInNodePath
(String nodePath) Removes SNS (Same Name Sibling) index notation in the givennodePath
.static String[]
splitToFolderPathAndName
(String contentLocation) Splits the givencontentLocation
to 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 thenodePath
is encoded by using Hippo CMS Default URI Encoding strategy.- Parameters:
nodePath
- node path- Returns:
- encoded node path where each node name in the
nodePath
is encoded by using Hippo CMS Default URI Encoding strategy
-
splitToFolderPathAndName
Splits the givencontentLocation
to 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
-