Class AvailableSettingsRepository
Default implementation of IAvailable
Inheritance
Implements
Namespace: EPiServer.DataAbstraction.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[ServiceConfiguration]
public class AvailableSettingsRepository : Object, IAvailableSettingsRepository
Constructors
AvailableSettingsRepository(ServiceAccessor<IContentTypeRepository>, IAvailableModelSettingsRepository)
Initializes a new instance of the Available
Declaration
public AvailableSettingsRepository(ServiceAccessor<IContentTypeRepository> contentTypeRepositoryAccessor, IAvailableModelSettingsRepository modelRepository)
Parameters
Type | Name | Description |
---|---|---|
Service |
contentTypeRepositoryAccessor | The content type repository accessor. |
IAvailable |
modelRepository | The model repository. |
Methods
ClearSetting(String)
Clears all settings defined for the content type.
Declaration
public void ClearSetting(string contentTypeName)
Parameters
Type | Name | Description |
---|---|---|
System. |
contentTypeName | Name of the content type. |
Remarks
Any other calls on the same session will be ignored if ClearAllSettings is called.
GetSetting(ContentType)
Gets the settings registered for the Page
Declaration
public AvailableSetting GetSetting(ContentType contentType)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentType | Type of the page. |
Returns
Type | Description |
---|---|
Available |
Remarks
The runtime settings on Content
ListSettings()
Lists the registered settings.
Declaration
public IDictionary<string, AvailableSetting> ListSettings()
Returns
Type | Description |
---|---|
System. |
RegisterSetting(ContentType, AvailableSetting)
Sets available content types settings for a page type.
Declaration
public void RegisterSetting(ContentType contentType, AvailableSetting setting)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentType | Type of the page. |
Available |
setting | The setting. |
Remarks
The runtime settings on Content
Events
SettingsChanged
Occurs when a setting has been changed.
Declaration
public event EventHandler<RepositoryEventArgs> SettingsChanged
Event Type
Type | Description |
---|---|
System. |