Click or drag to resize
TreePathUtils Class
Provides static helper methods for converting and validating paths, aliases and names.
Inheritance Hierarchy
SystemObject
  CMS.DocumentEngineTreePathUtils

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax
C#
public static class TreePathUtils

The TreePathUtils type exposes the following members.

Fields
  NameDescription
Public fieldStatic memberMAX_NAME_LENGTH
Maximal length of the node document name.
Top
Properties
  NameDescription
Public propertyStatic memberMaxAliasLength
Maximal length of the node alias name.
Public propertyStatic memberMaxNameLength
Maximal length of the node document name.
Public propertyStatic memberRemoveDiacriticForSafeURLPath
Indicates if diacritics should be removed from the URL path.
Top
Methods
  NameDescription
Public methodStatic memberAllowPermanentPreviewLink
Returns true if document workflow cycle GUID shouldn't be changed when moving from publish/archive step to edit step.
Public methodStatic memberAutomaticallyUpdateDocumentAlias
Returns true if the document alias should be automatically updated upon document name change.
Public methodStatic memberEnsureChildPath
Ensures path to be for all child pages.
Public methodStatic memberEnsureMaxFileNameLength
Ensures maximal length of the file name. Reflects the class node name source field size.
Public methodStatic memberEnsureMaxNodeAliasLength
Ensures maximal allowed node alias length.
Public methodStatic memberEnsureMaxNodeNameLength
Ensures maximal length of the node document name. Reflects the class node name source field size.
Public methodStatic memberEnsureSingleNodePath
Ensures node alias path to be only for single document.
Public methodStatic memberEnsureSinglePath
Ensures path to be only for a single page.
Public methodStatic memberExistsLinkedPageInSubTree
Return true if the specified subtree contains any linked page.
Public methodStatic memberGetAlias
Returns the alias from the given alias path.
Public methodStatic memberGetAliasPathByNodeId
Returns the AliasPath equivalent for the given node ID.
Public methodStatic memberGetAliasPathCondition
Returns the where condition for node alias path expression.
Public methodStatic memberGetClassNameByDocumentID
Returns the node class name corresponding to the given document ID.
Public methodStatic memberGetDocumentIdByDocumentGUID
Returns the Document ID equivalent for the given document GUID.
Public methodStatic memberGetDocumentSite
Returns the site info of the specified original document ID.
Public methodStatic memberGetMaxNameLength
Gets maximal length of the node document name. Reflects the class node name source field size.
Public methodStatic memberGetNodeAliasPathsOnPath
Gets list of node alias paths for all documents on given path.
Public methodStatic memberGetNodeByAliasPath
Gets the base node record (CMS_Tree) by the alias path and site name.
Public methodStatic memberGetNodeGUIDByNodeId
Returns the Node GUID equivalent for the given node ID.
Public methodStatic memberGetNodeIdByAliasPath
Returns the node ID corresponding to the given aliasPath.
Public methodStatic memberGetNodeIdByNodeGUID
Returns the Node ID equivalent for the given node GUID.
Public methodStatic memberGetNodeInheritedValue
Gets the inherited value for a single document column.
Public methodStatic memberGetNodeParentId
Returns the parent node ID.
Public methodStatic memberGetNodeSite
Returns the site info of the specified node.
Public methodStatic memberGetNodesOnPathWhereCondition
Returns where condition for all nodes on the path to the given alias path.
Public methodStatic memberGetParentPath(String)
Returns the parent path for the specified path (any kind of path with "/" as a separator)
Public methodStatic memberGetParentPath(String, Int32)
Returns the parent path for the specified path, with distance of parentLevel from the given path.
Public methodStatic memberGetPathLevel
Returns the specified path level created from the given path.
Public methodStatic memberGetSafeDocumentName
Replaces back slash in document name.
Public methodStatic memberGetSafeNodeAlias
Returns node alias without forbidden characters.
Public methodStatic memberGetUniqueNodeAlias
Returns the unique node alias for the given node, node alias and parent node.
Public methodStatic memberGetUniqueNodeName
Returns the unique node name for the given node, node name and parent node.
Public methodStatic memberIsMenuItemType
Returns true, if the class name is considered to be menu item type document.
Public methodStatic memberNewDocumentOrder
Returns the new document order settings for the given site.
Top
See Also