Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Class NullContentVersionRepository

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. An implementation of IContentVersionRepository that does not support versions. This is the default implementation for VersionRepository.

Inheritance
System.Object
NullContentVersionRepository
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: EPiServer.Core.Internal
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public class NullContentVersionRepository : IContentVersionRepository

Constructors

NullContentVersionRepository(ContentProvider)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the NullContentVersionRepository class.

Declaration
public NullContentVersionRepository(ContentProvider provider)
Parameters
Type Name Description
ContentProvider provider

The provider.

Methods

Delete(ContentReference)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. The implementation does not do anything since repository does not support versions

Declaration
public virtual void Delete(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink

The content link.

List(VersionFilter, Int32, Int32, out Int32)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Declaration
public IEnumerable<ContentVersion> List(VersionFilter filter, int startIndex, int maxRows, out int totalCount)
Parameters
Type Name Description
VersionFilter filter

The filter used

System.Int32 startIndex

The start index, used for paging

System.Int32 maxRows

The maximum number of rows returned

System.Int32 totalCount

The total amount of matched versions

Returns
Type Description
System.Collections.Generic.IEnumerable<ContentVersion>

A list of versions, if no versions where matched an empty list will be returned

Load(ContentReference)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. This implementation has no versioning support so it uses Load(ContentReference, ILanguageSelector) to get content. If versioning is to be supported this method should be overriden.

Declaration
public ContentVersion Load(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink

The content link.

Returns
Type Description
ContentVersion

A ContentVersion

LoadCommonDraft(ContentReference, String)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Loads the common draft.

Declaration
public virtual ContentVersion LoadCommonDraft(ContentReference contentLink, string language)
Parameters
Type Name Description
ContentReference contentLink

The content link to load common draft for.

System.String language

The language.

Returns
Type Description
ContentVersion

CommonDraft if it exist, otherwise Published, If no published exist the latest saved version is returned

LoadPublished(ContentReference)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. This implementation has no versioning support so it uses Load(ContentReference, ILanguageSelector) to get content. If versioning is to be supported this method should be overriden.

Declaration
public ContentVersion LoadPublished(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink

The content link.

Returns
Type Description
ContentVersion

A ContentVersion

LoadPublished(ContentReference, String)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. This implementation has no versioning support so it uses Load(ContentReference, ILanguageSelector) to get content. If versioning is to be supported this method should be overriden.

Declaration
public ContentVersion LoadPublished(ContentReference contentLink, string languageBranch)
Parameters
Type Name Description
ContentReference contentLink

The content link.

System.String languageBranch

The language branch.

Returns
Type Description
ContentVersion

A ContentVersion

SetCommonDraft(ContentReference)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Sets the common draft.

Declaration
public virtual void SetCommonDraft(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink

The content link.

Implements

Extension Methods