November Happy Hour will be moved to Thursday December 5th.

Class ProviderAwareContentVersionRepository

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

Inheritance
System.Object
ProviderAwareContentVersionRepository
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
[ServiceConfiguration(ServiceType = typeof(IContentVersionRepository), FactoryMember = "Instance", Lifecycle = ServiceInstanceScope.Singleton)]
[ServiceConfiguration(ServiceType = typeof(ProviderAwareContentVersionRepository), Lifecycle = ServiceInstanceScope.Singleton)]
public class ProviderAwareContentVersionRepository : IContentVersionRepository

Constructors

ProviderAwareContentVersionRepository(DefaultContentEvents, IContentProviderManager, IContentLoader, IPermanentLinkMapper, ContentAccessChecker, IContentLanguageAccessor, IContentCacheHandler)

Declaration
public ProviderAwareContentVersionRepository(DefaultContentEvents eventHandler, IContentProviderManager providerManager, IContentLoader contentLoader, IPermanentLinkMapper permanentLinkMapper, ContentAccessChecker accessChecker, IContentLanguageAccessor languageAccessor, IContentCacheHandler contentCacheHandler)
Parameters
Type Name Description
DefaultContentEvents eventHandler
IContentProviderManager providerManager
IContentLoader contentLoader
IPermanentLinkMapper permanentLinkMapper
ContentAccessChecker accessChecker
IContentLanguageAccessor languageAccessor
IContentCacheHandler contentCacheHandler

Properties

Instance

Declaration
public static ProviderAwareContentVersionRepository Instance { get; }
Property Value
Type Description
ProviderAwareContentVersionRepository

Methods

Delete(ContentReference)

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

Delete(ContentReference, AccessLevel)

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

List(VersionFilter, Int32, Int32, out Int32)

Declaration
public IEnumerable<ContentVersion> List(VersionFilter filter, int startIndex, int maxRows, out int totalCount)
Parameters
Type Name Description
VersionFilter filter
System.Int32 startIndex
System.Int32 maxRows
System.Int32 totalCount
Returns
Type Description
System.Collections.Generic.IEnumerable<ContentVersion>

Load(ContentReference)

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

LoadCommonDraft(ContentReference, String)

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

LoadPublished(ContentReference)

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

LoadPublished(ContentReference, String)

Declaration
public virtual ContentVersion LoadPublished(ContentReference contentLink, string languageBranch)
Parameters
Type Name Description
ContentReference contentLink
System.String languageBranch
Returns
Type Description
ContentVersion

SetCommonDraft(ContentReference)

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

Implements

Extension Methods