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()
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
Methods
Copy(ContentReference, ContentReference, AccessLevel, AccessLevel, Boolean)
Declaration
public override ContentReference Copy(ContentReference contentLink, ContentReference destinationLink, AccessLevel requiredSourceAccess, AccessLevel requiredDestinationAccess, bool publishOnDestination)
Parameters
Returns
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 Parameters
Overrides
Delete(ContentReference, Boolean, AccessLevel)
Declaration
public override void Delete(ContentReference contentLink, bool forceDelete, AccessLevel access)
Parameters
Overrides
DeleteChildren(ContentReference, Boolean, AccessLevel)
Declaration
public override void DeleteChildren(ContentReference contentLink, bool forceDelete, AccessLevel access)
Parameters
Overrides
DeleteLanguageBranch(ContentReference, String, AccessLevel)
Declaration
public override void DeleteLanguageBranch(ContentReference contentLink, string languageBranch, AccessLevel access)
Parameters
Overrides
Get<T>(ContentReference)
Declaration
public override T Get<T>(ContentReference contentLink)
where T : IContentData
Parameters
Returns
Type Parameters
Overrides
Get<T>(ContentReference, LoaderOptions)
Declaration
public override T Get<T>(ContentReference contentLink, LoaderOptions loaderOptions)
where T : IContentData
Parameters
Returns
Type Parameters
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 Parameters
Overrides
Get<T>(Guid)
Declaration
public override T Get<T>(Guid contentGuid)
where T : IContentData
Parameters
Type |
Name |
Description |
System.Guid |
contentGuid |
|
Returns
Type Parameters
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 Parameters
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 Parameters
Overrides
GetAncestors(ContentReference)
Declaration
public override IEnumerable<IContent> GetAncestors(ContentReference contentLink)
Parameters
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
Returns
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
Overrides
GetChildren<T>(ContentReference)
Declaration
public override IEnumerable<T> GetChildren<T>(ContentReference contentLink)
where T : IContentData
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
Type Parameters
Overrides
GetChildren<T>(ContentReference, LoaderOptions)
Declaration
public override IEnumerable<T> GetChildren<T>(ContentReference contentLink, LoaderOptions loaderOptions)
where T : IContentData
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
Type Parameters
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
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
Type Parameters
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
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
Overrides
GetDefault<T>(ContentReference)
Declaration
public override T GetDefault<T>(ContentReference parentLink)
where T : IContentData
Parameters
Returns
Type Parameters
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 Parameters
Overrides
GetDefault<T>(ContentReference, Int32)
Declaration
public override T GetDefault<T>(ContentReference parentLink, int contentTypeID)
where T : IContentData
Parameters
Returns
Type Parameters
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 Parameters
Overrides
GetDescendents(ContentReference)
Declaration
public override IEnumerable<ContentReference> GetDescendents(ContentReference contentLink)
Parameters
Returns
Overrides
GetItems(IEnumerable<ContentReference>, LoaderOptions)
Declaration
public override IEnumerable<IContent> GetItems(IEnumerable<ContentReference> contentLinks, LoaderOptions loaderOptions)
Parameters
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
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
Type Parameters
Overrides
GetReferencesToContent(ContentReference, Boolean)
Declaration
public override IEnumerable<ReferenceInformation> GetReferencesToContent(ContentReference contentLink, bool includeDecendents)
Parameters
Type |
Name |
Description |
ContentReference |
contentLink |
|
System.Boolean |
includeDecendents |
|
Returns
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
Returns
Overrides
MoveToWastebasket(ContentReference, String)
Declaration
public override void MoveToWastebasket(ContentReference contentLink, string deletedBy)
Parameters
Overrides
Save(IContent, SaveAction, AccessLevel)
Declaration
public override ContentReference Save(IContent content, SaveAction action, AccessLevel access)
Parameters
Returns
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
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
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
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
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
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
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
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
Overrides
EPiServer.Core.Internal.ContentRepository.TryGet<T>(System.Guid, System.Globalization.CultureInfo, T)
Implements
Extension Methods