Class CatalogContentBase
Base class for all content delivered from the CatalogContentProvider
Implements
Namespace: EPiServer.Commerce.Catalog.ContentTypes
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2Syntax
public abstract class CatalogContentBase : ContentData, IReadOnly<CatalogContentBase>, IReadOnly, IContent, IContentData, ILocalizable, ILocale, IVersionable, IRoutable, ISecurable
Constructors
CatalogContentBase()
Declaration
protected CatalogContentBase()
Fields
ValidUrlCharactersRegex
A string representing the regex describing valid characters in a url.
Declaration
[Obsolete("This const is no longer used, use EPiServer.Web.UrlSegmentOptions.ValidUrlCharacters instead. Will remain at least until July 2018.")]
protected const string ValidUrlCharactersRegex = "^[A-Za-z0-9\\-_~\\.\\$]*$"
Field Value
Type | Description |
---|---|
System.String |
Properties
ApplicationId
Gets or sets the application id.
Declaration
[IgnoreMetaDataPlusSynchronization]
[Obsolete("The concept of ApplicationID has been removed - ignore this property. Will remain at least until August 2018.")]
public virtual string ApplicationId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
CatalogId
Gets or sets the catalog id.
Declaration
[IgnoreMetaDataPlusSynchronization]
public virtual int CatalogId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ContentGuid
Gets or sets the content GUID.
Declaration
public virtual Guid ContentGuid { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
ContentLink
Gets or sets the content link.
Declaration
public virtual ContentReference ContentLink { get; set; }
Property Value
Type | Description |
---|---|
EPiServer.Core.ContentReference |
ContentType
Gets the type of the content.
Declaration
public abstract CatalogContentType ContentType { get; }
Property Value
Type | Description |
---|---|
CatalogContentType | The type of the content. |
ContentTypeID
Gets or sets the content type ID that this CatalogContentBase is an instance of.
Declaration
public virtual int ContentTypeID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ExistingLanguages
Gets or sets the existing languages for this instance.
Declaration
public virtual IEnumerable<CultureInfo> ExistingLanguages { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Globalization.CultureInfo> |
IsDeleted
Gets or sets a value indicating whether the content is deleted.
Declaration
public virtual bool IsDeleted { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsModified
Gets a value indicating whether this instance has been modified after loading.
Declaration
public virtual bool IsModified { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsNull
Gets a value indicating whether this instance is null.
Declaration
public virtual bool IsNull { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsPendingPublish
Gets or sets a value indicating whether the content is pending publish.
Declaration
public virtual bool IsPendingPublish { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Language
Gets or sets the language for this instance.
Declaration
public virtual CultureInfo Language { get; set; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo |
MasterLanguage
Gets or sets the master language for this instance.
Declaration
public virtual CultureInfo MasterLanguage { get; set; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo |
Name
Gets or sets the name.
Declaration
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ParentLink
Gets or sets the parent link.
Declaration
public virtual ContentReference ParentLink { get; set; }
Property Value
Type | Description |
---|---|
EPiServer.Core.ContentReference |
RouteSegment
Gets or sets the route segment.
Declaration
public virtual string RouteSegment { get; set; }
Property Value
Type | Description |
---|---|
System.String |
StartPublish
Gets or sets the start publish date.
Declaration
public virtual DateTime? StartPublish { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
Status
Gets or sets the version status.
Declaration
public virtual VersionStatus Status { get; set; }
Property Value
Type | Description |
---|---|
EPiServer.Core.VersionStatus |
StopPublish
Gets or sets the stop publish date.
Declaration
public virtual DateTime? StopPublish { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
Methods
CreateWritableClone()
Creates a writable clone of this object.
Declaration
public CatalogContentBase CreateWritableClone()
Returns
Type | Description |
---|---|
CatalogContentBase | A writable CatalogContentBase object. |
CreateWritableClone<T>()
Declaration
public T CreateWritableClone<T>()
where T : CatalogContentBase
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
CreateWriteableCloneImplementation()
Creates the writeable clone including writeable clones of the content link and the language collection.
Declaration
protected override object CreateWriteableCloneImplementation()
Returns
Type | Description |
---|---|
System.Object |
GetSecurityDescriptor()
Gets the security descriptor.
Declaration
public virtual ISecurityDescriptor GetSecurityDescriptor()
Returns
Type | Description |
---|---|
EPiServer.Security.ISecurityDescriptor | An instance of EPiServer.Security.ContentAccessControlList. |
MakeReadOnly()
Protects from modifying this object.
Declaration
public override void MakeReadOnly()
ResetModified()
Resets the modified flag.
Declaration
protected override void ResetModified()