Class MetaUriSegment
Handles Uri segment specific calls to the database
Inheritance
Inherited Members
Namespace: Mediachase.MetaDataPlus
Assembly: Mediachase.MetaDataPlus.dll
Version: 10.8.0Syntax
public class MetaUriSegment
Constructors
MetaUriSegment()
Declaration
public MetaUriSegment()
Methods
ListMatchingSegments(Int32, Int32, String, MetaDataContext)
Lists all children directly under parentNodeId
that matches the uriSegment
Declaration
public virtual IList<MetaUriSegmentResult> ListMatchingSegments(int parentNodeId, int catalogId, string uriSegment, MetaDataContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | parentNodeId | Id of the parent node to search under, or 0 for searching on the catalog level. |
System.Int32 | catalogId | The catalogId, or 0 to not filter by catalog. |
System.String | uriSegment | The url segment to find |
MetaDataContext | context | The meta data context |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<MetaUriSegmentResult> | List of children |
ListMatchingSegments(Int32, String, MetaDataContext)
Lists all children directly under parentNodeId
that matches the uriSegment
Declaration
public virtual IList<MetaUriSegmentResult> ListMatchingSegments(int parentNodeId, string uriSegment, MetaDataContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | parentNodeId | Id of the parent node to search under, or 0 for searching on the catalog level. |
System.String | uriSegment | The url segment to find |
MetaDataContext | context | The meta data context |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<MetaUriSegmentResult> | List of children |
ValidateUniqueSegment(Int32, Int32, String, MetaDataContext)
Validates there is no child directly under parentNodeId
with the uriSegment
Declaration
public virtual bool ValidateUniqueSegment(int parentNodeId, int catalogId, string uriSegment, MetaDataContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | parentNodeId | Id of the parent node to search under, or 0 for searching on the catalog level. |
System.Int32 | catalogId | The catalogId, or 0 to not filter by catalog. |
System.String | uriSegment | The url segment to find |
MetaDataContext | context | The meta data context |
Returns
Type | Description |
---|---|
System.Boolean |
|
ValidateUniqueSegment(Int32, String, MetaDataContext)
Validates there is no child directly under parentNodeId
with the uriSegment
Declaration
public virtual bool ValidateUniqueSegment(int parentNodeId, string uriSegment, MetaDataContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | parentNodeId | Id of the parent node to search under, or 0 for searching on the catalog level. |
System.String | uriSegment | The url segment to find |
MetaDataContext | context | The meta data context |
Returns
Type | Description |
---|---|
System.Boolean |
|