Class CatalogNodeRowExtensions

Inheritance
System.Object
CatalogNodeRowExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Catalog.Dto
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
public static class CatalogNodeRowExtensions

Methods

EndDate(CatalogNodeDto.CatalogNodeRow, String)

Get node end date in the specific language.

Declaration
public static DateTime EndDate(this CatalogNodeDto.CatalogNodeRow catalogNodeRow, string language)
Parameters
Type Name Description
CatalogNodeDto.CatalogNodeRow catalogNodeRow

The catalog node row.

System.String language

The language.

Returns
Type Description
System.DateTime

IsAvailable(CatalogNodeDto.CatalogNodeRow)

Determines whether the specified catalog node row is available (is active, startdate and enddate are correct)

Declaration
public static bool IsAvailable(this CatalogNodeDto.CatalogNodeRow catalogNodeRow)
Parameters
Type Name Description
CatalogNodeDto.CatalogNodeRow catalogNodeRow

The catalog node row.

Returns
Type Description
System.Boolean

true if the specified catalog node row is available; otherwise, false.

IsAvailable(CatalogNodeDto.CatalogNodeRow, String)

Determines whether the specified catalog node row is available (is published, startdate and enddate are correct) in the specific language.

Declaration
public static bool IsAvailable(this CatalogNodeDto.CatalogNodeRow catalogNodeRow, string language)
Parameters
Type Name Description
CatalogNodeDto.CatalogNodeRow catalogNodeRow

The catalog node row.

System.String language

The language.

Returns
Type Description
System.Boolean

true if the specified catalog node row is available; otherwise, false.

IsPublished(CatalogNodeDto.CatalogNodeRow, MetaObject)

Checks if the entry is published based on the rows's active status and the published field in the meta object.

Declaration
public static bool IsPublished(this CatalogNodeDto.CatalogNodeRow row, MetaObject metaObject)
Parameters
Type Name Description
CatalogNodeDto.CatalogNodeRow row

The node row.

MetaObject metaObject

The meta object.

Returns
Type Description
System.Boolean

true if the node is published, otherwise false.

IsPublished(CatalogNodeDto.CatalogNodeRow, String)

Checks if the node is published in the specific language.

Declaration
public static bool IsPublished(this CatalogNodeDto.CatalogNodeRow row, string language)
Parameters
Type Name Description
CatalogNodeDto.CatalogNodeRow row

The node row.

System.String language

The language to check if the node is published.

Returns
Type Description
System.Boolean

true if the node is published in this language, otherwise false.

StartDate(CatalogNodeDto.CatalogNodeRow, String)

Get node start date in the specific language.

Declaration
public static DateTime StartDate(this CatalogNodeDto.CatalogNodeRow catalogNodeRow, string language)
Parameters
Type Name Description
CatalogNodeDto.CatalogNodeRow catalogNodeRow

The catalog node row.

System.String language

The language.

Returns
Type Description
System.DateTime