Helper class for path-related functions and methods
The class contains general helper methods for joining, splitting, modifying and validating paths.
Returns the full path for a content based on its Id or Path
the Id Or Path of the content
A full Id or Path-based url of the content (e.g. '/content(1)' or '/Root/Example/('Content')')
Method that gets the URL that refers to a single item in the Sense/Net Content Repository
Path that you want to format.
Path in entity format e.g. /workspaces('project') from /workspaces/project
Method that gets the URL that refers to a single item in the Sense/Net Content Repository by its Id
Id of the Content.
Returns the parent path from a specified path. e.g. "/Root/Example/Content" will return "/Root/Example"
"Root" will always return "Root"
The content path
Splits a full path into path segments, e.g.: /Root/Example('Content1') will be ["Root", "Example", "('Content1')"]
The path to be splitted
the segments for the path
Checks if the ancestorPath is really the ancestor of the descendantPath
the ancestor path
the descendant path
if the provided path is the ancestor of the descendant
Method that tells if a path is an item path or an item reference path (e.g. contains an Item segment).
Path that you want to test.
Returns if the given path is a path of a Content or not.
Checks if a specific segment is an Item segment or not (like "('Content1')")
The segment to be examined
Method that allows to join paths without multiple or missing slashes
The list of the paths to join
Trims the slash characters from the beginning and from the end of the path to avoid duplicated slashes
The source path that should be trimmed
Generated using TypeDoc