Class DefaultContentRepository

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

Inheritance
System.Object
DefaultContentRepository
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 DefaultContentRepository : ContentRepository, IContentRepository, IContentLoader

Constructors

DefaultContentRepository(IContentProviderManager, DefaultContentEvents, IPermanentLinkMapper, IContentTypeRepository, IContentVersionRepository, ContentTypeAvailabilityService, IContentLoader, ContentAccessChecker, ISynchronizedObjectInstanceCache, IContentLanguageAccessor, IContentVersionResolver, IStatusTransitionEvaluator, RequiredAccessResolver, IContentCacheHandler, IContentTypeBaseResolver)

Declaration
public DefaultContentRepository(IContentProviderManager providerManager, DefaultContentEvents contentEventsHandler, IPermanentLinkMapper permanentLinkMapper, IContentTypeRepository contentTypeRepository, IContentVersionRepository versionRepository, ContentTypeAvailabilityService contentTypeAvailablilityService, IContentLoader contentLoader, ContentAccessChecker accessChecker, ISynchronizedObjectInstanceCache cacheManager, IContentLanguageAccessor languageAccessor, IContentVersionResolver versionResolver, IStatusTransitionEvaluator statusTransitionEvaluator, RequiredAccessResolver requiredAccessResolver, IContentCacheHandler cacheHandler, IContentTypeBaseResolver contentTypeBaseResolver)
Parameters
Type Name Description
IContentProviderManager providerManager
DefaultContentEvents contentEventsHandler
IPermanentLinkMapper permanentLinkMapper
IContentTypeRepository contentTypeRepository
IContentVersionRepository versionRepository
ContentTypeAvailabilityService contentTypeAvailablilityService
IContentLoader contentLoader
ContentAccessChecker accessChecker
ISynchronizedObjectInstanceCache cacheManager
IContentLanguageAccessor languageAccessor
IContentVersionResolver versionResolver
IStatusTransitionEvaluator statusTransitionEvaluator
RequiredAccessResolver requiredAccessResolver
IContentCacheHandler cacheHandler
IContentTypeBaseResolver contentTypeBaseResolver

Methods

Copy(ContentReference, ContentReference, AccessLevel, AccessLevel, Boolean)

Declaration
public override ContentReference Copy(ContentReference contentLink, ContentReference destinationLink, AccessLevel requiredSourceAccess, AccessLevel requiredDestinationAccess, bool publishOnDestination)
Parameters
Type Name Description
ContentReference contentLink
ContentReference destinationLink
AccessLevel requiredSourceAccess
AccessLevel requiredDestinationAccess
System.Boolean publishOnDestination
Returns
Type Description
ContentReference
Overrides

CreateLanguageBranch<T>(ContentReference, CultureInfo)

Declaration
public override T CreateLanguageBranch<T>(ContentReference contentLink, CultureInfo language)
    where T : IContentData
Parameters
Type Name Description
ContentReference contentLink
System.Globalization.CultureInfo language
Returns
Type Description
T
Type Parameters
Name Description
T
Overrides

Delete(ContentReference, Boolean, AccessLevel)

Declaration
public override void Delete(ContentReference contentLink, bool forceDelete, AccessLevel access)
Parameters
Type Name Description
ContentReference contentLink
System.Boolean forceDelete
AccessLevel access
Overrides

DeleteChildren(ContentReference, Boolean, AccessLevel)

Declaration
public override void DeleteChildren(ContentReference contentLink, bool forceDelete, AccessLevel access)
Parameters
Type Name Description
ContentReference contentLink
System.Boolean forceDelete
AccessLevel access
Overrides

DeleteLanguageBranch(ContentReference, String, AccessLevel)

Declaration
public override void DeleteLanguageBranch(ContentReference contentLink, string languageBranch, AccessLevel access)
Parameters
Type Name Description
ContentReference contentLink
System.String languageBranch
AccessLevel access
Overrides

Get<T>(ContentReference)

Declaration
public override T Get<T>(ContentReference contentLink)
    where T : IContentData
Parameters
Type Name Description
ContentReference contentLink
Returns
Type Description
T
Type Parameters
Name Description
T
Overrides

Get<T>(ContentReference, LoaderOptions)

Declaration
public override T Get<T>(ContentReference contentLink, LoaderOptions loaderOptions)
    where T : IContentData
Parameters
Type Name Description
ContentReference contentLink
LoaderOptions loaderOptions
Returns
Type Description
T
Type Parameters
Name Description
T
Overrides

Get<T>(ContentReference, CultureInfo)

Declaration
public override T Get<T>(ContentReference contentLink, CultureInfo language)
    where T : IContentData
Parameters
Type Name Description
ContentReference contentLink
System.Globalization.CultureInfo language
Returns
Type Description
T
Type Parameters
Name Description
T
Overrides

Get<T>(Guid)

Declaration
public override T Get<T>(Guid contentGuid)
    where T : IContentData
Parameters
Type Name Description
System.Guid contentGuid
Returns
Type Description
T
Type Parameters
Name Description
T
Overrides

Get<T>(Guid, LoaderOptions)

Declaration
public override T Get<T>(Guid contentGuid, LoaderOptions loaderOptions)
    where T : IContentData
Parameters
Type Name Description
System.Guid contentGuid
LoaderOptions loaderOptions
Returns
Type Description
T
Type Parameters
Name Description
T
Overrides

Get<T>(Guid, CultureInfo)

Declaration
public override T Get<T>(Guid contentGuid, CultureInfo language)
    where T : IContentData
Parameters
Type Name Description
System.Guid contentGuid
System.Globalization.CultureInfo language
Returns
Type Description
T
Type Parameters
Name Description
T
Overrides

GetAncestors(ContentReference)

Declaration
public override IEnumerable<IContent> GetAncestors(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink
Returns
Type Description
System.Collections.Generic.IEnumerable<IContent>
Overrides

GetBySegment(ContentReference, String, LoaderOptions)

Declaration
public override IContent GetBySegment(ContentReference parentLink, string urlSegment, LoaderOptions settings)
Parameters
Type Name Description
ContentReference parentLink
System.String urlSegment
LoaderOptions settings
Returns
Type Description
IContent
Overrides

GetBySegment(ContentReference, String, CultureInfo)

Declaration
public override IContent GetBySegment(ContentReference parentLink, string urlSegment, CultureInfo language)
Parameters
Type Name Description
ContentReference parentLink
System.String urlSegment
System.Globalization.CultureInfo language
Returns
Type Description
IContent
Overrides

GetChildren<T>(ContentReference)

Declaration
public override IEnumerable<T> GetChildren<T>(ContentReference contentLink)
    where T : IContentData
Parameters
Type Name Description
ContentReference contentLink
Returns
Type Description
System.Collections.Generic.IEnumerable<T>
Type Parameters
Name Description
T
Overrides

GetChildren<T>(ContentReference, LoaderOptions)

Declaration
public override IEnumerable<T> GetChildren<T>(ContentReference contentLink, LoaderOptions loaderOptions)
    where T : IContentData
Parameters
Type Name Description
ContentReference contentLink
LoaderOptions loaderOptions
Returns
Type Description
System.Collections.Generic.IEnumerable<T>
Type Parameters
Name Description
T
Overrides

GetChildren<T>(ContentReference, LoaderOptions, Int32, Int32)

Declaration
public override IEnumerable<T> GetChildren<T>(ContentReference contentLink, LoaderOptions loaderOptions, int startIndex, int maxRows)
    where T : IContentData
Parameters
Type Name Description
ContentReference contentLink
LoaderOptions loaderOptions
System.Int32 startIndex
System.Int32 maxRows
Returns
Type Description
System.Collections.Generic.IEnumerable<T>
Type Parameters
Name Description
T
Overrides

GetChildren<T>(ContentReference, CultureInfo)

Declaration
public override IEnumerable<T> GetChildren<T>(ContentReference contentLink, CultureInfo language)
    where T : IContentData
Parameters
Type Name Description
ContentReference contentLink
System.Globalization.CultureInfo language
Returns
Type Description
System.Collections.Generic.IEnumerable<T>
Type Parameters
Name Description
T
Overrides

GetChildren<T>(ContentReference, CultureInfo, Int32, Int32)

Declaration
public override IEnumerable<T> GetChildren<T>(ContentReference contentLink, CultureInfo language, int startIndex, int maxRows)
    where T : IContentData
Parameters
Type Name Description
ContentReference contentLink
System.Globalization.CultureInfo language
System.Int32 startIndex
System.Int32 maxRows
Returns
Type Description
System.Collections.Generic.IEnumerable<T>
Type Parameters
Name Description
T
Overrides

GetDefault<T>(ContentReference)

Declaration
public override T GetDefault<T>(ContentReference parentLink)
    where T : IContentData
Parameters
Type Name Description
ContentReference parentLink
Returns
Type Description
T
Type Parameters
Name Description
T
Overrides

GetDefault<T>(ContentReference, CultureInfo)

Declaration
public override T GetDefault<T>(ContentReference parentLink, CultureInfo language)
    where T : IContentData
Parameters
Type Name Description
ContentReference parentLink
System.Globalization.CultureInfo language
Returns
Type Description
T
Type Parameters
Name Description
T
Overrides

GetDefault<T>(ContentReference, Int32)

Declaration
public override T GetDefault<T>(ContentReference parentLink, int contentTypeID)
    where T : IContentData
Parameters
Type Name Description
ContentReference parentLink
System.Int32 contentTypeID
Returns
Type Description
T
Type Parameters
Name Description
T
Overrides

GetDefault<T>(ContentReference, Int32, CultureInfo)

Declaration
public override T GetDefault<T>(ContentReference parentLink, int contentTypeID, CultureInfo language)
    where T : IContentData
Parameters
Type Name Description
ContentReference parentLink
System.Int32 contentTypeID
System.Globalization.CultureInfo language
Returns
Type Description
T
Type Parameters
Name Description
T
Overrides

GetDescendents(ContentReference)

Declaration
public override IEnumerable<ContentReference> GetDescendents(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink
Returns
Type Description
System.Collections.Generic.IEnumerable<ContentReference>
Overrides

GetItems(IEnumerable<ContentReference>, LoaderOptions)

Declaration
public override IEnumerable<IContent> GetItems(IEnumerable<ContentReference> contentLinks, LoaderOptions loaderOptions)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ContentReference> contentLinks
LoaderOptions loaderOptions
Returns
Type Description
System.Collections.Generic.IEnumerable<IContent>
Overrides

GetItems(IEnumerable<ContentReference>, CultureInfo)

Declaration
public override IEnumerable<IContent> GetItems(IEnumerable<ContentReference> contentLinks, CultureInfo language)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ContentReference> contentLinks
System.Globalization.CultureInfo language
Returns
Type Description
System.Collections.Generic.IEnumerable<IContent>
Overrides

GetLanguageBranches<T>(ContentReference)

Declaration
public override IEnumerable<T> GetLanguageBranches<T>(ContentReference contentLink)
    where T : IContentData
Parameters
Type Name Description
ContentReference contentLink
Returns
Type Description
System.Collections.Generic.IEnumerable<T>
Type Parameters
Name Description
T
Overrides

GetReferencesToContent(ContentReference, Boolean)

Declaration
public override IEnumerable<ReferenceInformation> GetReferencesToContent(ContentReference contentLink, bool includeDecendents)
Parameters
Type Name Description
ContentReference contentLink
System.Boolean includeDecendents
Returns
Type Description
System.Collections.Generic.IEnumerable<ReferenceInformation>
Overrides

ListDelayedPublish()

Declaration
public override IEnumerable<IContent> ListDelayedPublish()
Returns
Type Description
System.Collections.Generic.IEnumerable<IContent>
Overrides

Move(ContentReference, ContentReference, AccessLevel, AccessLevel)

Declaration
public override ContentReference Move(ContentReference contentLink, ContentReference destinationLink, AccessLevel requiredSourceAccess, AccessLevel requiredDestinationAccess)
Parameters
Type Name Description
ContentReference contentLink
ContentReference destinationLink
AccessLevel requiredSourceAccess
AccessLevel requiredDestinationAccess
Returns
Type Description
ContentReference
Overrides

MoveToWastebasket(ContentReference, String)

Declaration
public override void MoveToWastebasket(ContentReference contentLink, string deletedBy)
Parameters
Type Name Description
ContentReference contentLink
System.String deletedBy
Overrides

Save(IContent, SaveAction, AccessLevel)

Declaration
public override ContentReference Save(IContent content, SaveAction action, AccessLevel access)
Parameters
Type Name Description
IContent content
SaveAction action
AccessLevel access
Returns
Type Description
ContentReference
Overrides

ThrowTypeMismatchException(ContentReference, Type, Type)

Declaration
protected static void ThrowTypeMismatchException(ContentReference link, Type actual, Type required)
Parameters
Type Name Description
ContentReference link
System.Type actual
System.Type required

TryGet<T>(ContentReference, out T)

Declaration
public override bool TryGet<T>(ContentReference contentLink, out T content)
    where T : IContentData
Parameters
Type Name Description
ContentReference contentLink
T content
Returns
Type Description
System.Boolean
Type Parameters
Name Description
T
Overrides
EPiServer.Core.Internal.ContentRepository.TryGet<T>(EPiServer.Core.ContentReference, T)

TryGet<T>(ContentReference, LoaderOptions, out T)

Declaration
public override bool TryGet<T>(ContentReference contentLink, LoaderOptions loaderOptions, out T content)
    where T : IContentData
Parameters
Type Name Description
ContentReference contentLink
LoaderOptions loaderOptions
T content
Returns
Type Description
System.Boolean
Type Parameters
Name Description
T
Overrides
EPiServer.Core.Internal.ContentRepository.TryGet<T>(EPiServer.Core.ContentReference, EPiServer.Core.LoaderOptions, T)

TryGet<T>(ContentReference, CultureInfo, out T)

Declaration
public override bool TryGet<T>(ContentReference contentLink, CultureInfo language, out T content)
    where T : IContentData
Parameters
Type Name Description
ContentReference contentLink
System.Globalization.CultureInfo language
T content
Returns
Type Description
System.Boolean
Type Parameters
Name Description
T
Overrides
EPiServer.Core.Internal.ContentRepository.TryGet<T>(EPiServer.Core.ContentReference, System.Globalization.CultureInfo, T)

TryGet<T>(Guid, out T)

Declaration
public override bool TryGet<T>(Guid contentGuid, out T content)
    where T : IContentData
Parameters
Type Name Description
System.Guid contentGuid
T content
Returns
Type Description
System.Boolean
Type Parameters
Name Description
T
Overrides
EPiServer.Core.Internal.ContentRepository.TryGet<T>(System.Guid, T)

TryGet<T>(Guid, LoaderOptions, out T)

Declaration
public override bool TryGet<T>(Guid contentGuid, LoaderOptions loaderOptions, out T content)
    where T : IContentData
Parameters
Type Name Description
System.Guid contentGuid
LoaderOptions loaderOptions
T content
Returns
Type Description
System.Boolean
Type Parameters
Name Description
T
Overrides
EPiServer.Core.Internal.ContentRepository.TryGet<T>(System.Guid, EPiServer.Core.LoaderOptions, T)

TryGet<T>(Guid, CultureInfo, out T)

Declaration
public override bool TryGet<T>(Guid contentTGuid, CultureInfo language, out T content)
    where T : IContentData
Parameters
Type Name Description
System.Guid contentTGuid
System.Globalization.CultureInfo language
T content
Returns
Type Description
System.Boolean
Type Parameters
Name Description
T
Overrides
EPiServer.Core.Internal.ContentRepository.TryGet<T>(System.Guid, System.Globalization.CultureInfo, T)

Implements

Extension Methods