Class DefaultContentTypeAvailablilityService
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Inherited Members
Namespace: EPiServer.DataAbstraction.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
[ServiceConfiguration(typeof(ContentTypeAvailabilityService), Lifecycle = ServiceInstanceScope.Singleton)]
public class DefaultContentTypeAvailablilityService : ContentTypeAvailabilityServiceConstructors
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 | 
 | 
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
