Class AvailableSettingsRepository
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Default implementation of IAvailableSettingsRepository.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.DataAbstraction.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
[ServiceConfiguration(typeof(IAvailableSettingsRepository), Lifecycle = ServiceInstanceScope.Singleton)]
public class AvailableSettingsRepository : IAvailableSettingsRepositoryConstructors
AvailableSettingsRepository(ServiceAccessor<IContentTypeRepository>, IAvailableModelSettingsRepository)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the AvailableSettingsRepository class.
Declaration
public AvailableSettingsRepository(ServiceAccessor<IContentTypeRepository> contentTypeRepositoryAccessor, IAvailableModelSettingsRepository modelRepository)Parameters
| Type | Name | Description | 
|---|---|---|
| ServiceAccessor<IContentTypeRepository> | contentTypeRepositoryAccessor | The content type repository accessor. | 
| IAvailableModelSettingsRepository | modelRepository | The model repository. | 
Methods
ClearSetting(String)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Clears all settings defined for the content type.
Declaration
public void ClearSetting(string contentTypeName)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | contentTypeName | Name of the content type. | 
Remarks
Any other calls on the same session will be ignored if ClearAllSettings is called.
GetSetting(ContentType)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the settings registered for the PageType in database.
Declaration
public AvailableSetting GetSetting(ContentType contentType)Parameters
| Type | Name | Description | 
|---|---|---|
| ContentType | contentType | Type of the page. | 
Returns
| Type | Description | 
|---|---|
| AvailableSetting | 
Remarks
The runtime settings on ContentTypeAvailabilityService will be the merged result from settings specified on the content type and on the model.
ListSettings()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Lists the registered settings.
Declaration
public IDictionary<string, AvailableSetting> ListSettings()Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IDictionary<System.String, AvailableSetting> | 
RegisterSetting(ContentType, AvailableSetting)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Sets available content types settings for a page type.
Declaration
public void RegisterSetting(ContentType contentType, AvailableSetting setting)Parameters
| Type | Name | Description | 
|---|---|---|
| ContentType | contentType | Type of the page. | 
| AvailableSetting | setting | The setting. | 
Remarks
The runtime settings on ContentTypeAvailabilityService will be the merged result from settings specified on the content type and on the model.
Events
SettingsChanged
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Occurs when a setting has been changed.
Declaration
public event EventHandler<RepositoryEventArgs> SettingsChangedEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<RepositoryEventArgs> | 
