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

Try our conversational search powered by Generative AI!

Class DefaultContentTypeAvailablilityService

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

Inheritance
System.Object
DefaultContentTypeAvailablilityService
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.DataAbstraction.Internal
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(typeof(ContentTypeAvailabilityService), Lifecycle = ServiceInstanceScope.Singleton)]
public class DefaultContentTypeAvailablilityService : ContentTypeAvailabilityService

Constructors

DefaultContentTypeAvailablilityService(ServiceAccessor<IContentTypeRepository>, IAvailableModelSettingsRepository, IAvailableSettingsRepository, GroupDefinitionRepository, IContentLoader, ISynchronizedObjectInstanceCache)

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

Declaration
public DefaultContentTypeAvailablilityService(ServiceAccessor<IContentTypeRepository> contentTypeRepositoryAccessor, IAvailableModelSettingsRepository modelRepository, IAvailableSettingsRepository typeSettingsRepository, GroupDefinitionRepository groupDefinitionRepository, IContentLoader contentLoader, ISynchronizedObjectInstanceCache cache)
Parameters
Type Name Description
ServiceAccessor<IContentTypeRepository> contentTypeRepositoryAccessor

The content type repository accessor.

IAvailableModelSettingsRepository modelRepository

The model repository.

IAvailableSettingsRepository typeSettingsRepository

The type settings repository.

GroupDefinitionRepository groupDefinitionRepository

The group definition repository

IContentLoader contentLoader

The contentloader

ISynchronizedObjectInstanceCache cache

The cache dependency

Methods

GetSetting(String)

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

Declaration
public override AvailableSetting GetSetting(string contentTypeName)
Parameters
Type Name Description
System.String contentTypeName

Name of the content type.

Returns
Type Description
AvailableSetting
Overrides

IsAllowed(String, String)

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

Declaration
public override bool IsAllowed(string parentContentTypeName, string childContentTypeName)
Parameters
Type Name Description
System.String parentContentTypeName

The name of the parent ContentType.

System.String childContentTypeName

The name of child ContentType.

Returns
Type Description
System.Boolean

true if the specified content type is allowed; otherwise, false.

Overrides

ListAvailable(IContent, Boolean, IPrincipal)

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

Declaration
public override IList<ContentType> ListAvailable(IContent content, bool contentFolder, IPrincipal user)
Parameters
Type Name Description
IContent content
System.Boolean contentFolder

If true then list all available ContentType that can be created under ContentFolder otherwise list all avalible ContentType under content type of the content

System.Security.Principal.IPrincipal user
Returns
Type Description
System.Collections.Generic.IList<ContentType>
Overrides
Remarks

The list is filtered due to the user, IContentSecurable and RequiredAccessAttribute on the GroupDefinitionsAttribute

ListAvailable(String, IPrincipal)

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

Declaration
public override IList<ContentType> ListAvailable(string contentTypeName, IPrincipal user)
Parameters
Type Name Description
System.String contentTypeName
System.Security.Principal.IPrincipal user
Returns
Type Description
System.Collections.Generic.IList<ContentType>
Overrides
Remarks

The list is filtered due to the user, IContentSecurable but not RequiredAccessAttribute on the GroupDefinitionsAttribute

Extension Methods