Class PersonalizedContentFactory
Factory for personalized content
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Personalization
Assembly: EPiServer.dll
Version: 9.12.2Syntax
[ServiceConfiguration(typeof(IPersonalizedContentFactory))]
public class PersonalizedContentFactory : IPersonalizedContentFactory
Constructors
PersonalizedContentFactory()
Initializes a new instance of the PersonalizedContentFactory class.
Declaration
[Obsolete("Use alternative constructor")]
public PersonalizedContentFactory()
PersonalizedContentFactory(LocalizationService)
Initializes a new instance of the PersonalizedContentFactory class.
Declaration
[Obsolete("Use alternative constructor")]
public PersonalizedContentFactory(LocalizationService localizationService)
Parameters
Type | Name | Description |
---|---|---|
LocalizationService | localizationService | The resource locator that should be used by the current instance. |
PersonalizedContentFactory(LocalizationService, IPrincipalAccessor)
Initializes a new instance of the PersonalizedContentFactory class.
Declaration
public PersonalizedContentFactory(LocalizationService localizationService, IPrincipalAccessor principalAccessor)
Parameters
Type | Name | Description |
---|---|---|
LocalizationService | localizationService | |
IPrincipalAccessor | principalAccessor |
Properties
ContentHolderClassName
Gets the name of the content holder attribute class.
Declaration
public string ContentHolderClassName { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the content holder attribute class. |
IdentifyingClassName
Gets the name of the identifying class attribute.
Declaration
public string IdentifyingClassName { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the identifying class attribute. |
Methods
GetInternalFormat(StringFragmentCollection, ISecuredFragmentMarkupGenerator)
Gets the internal format.
Declaration
public string GetInternalFormat(StringFragmentCollection stringFragmentCollection, ISecuredFragmentMarkupGenerator securedFragmentMarkupGenerator)
Parameters
Type | Name | Description |
---|---|---|
StringFragmentCollection | stringFragmentCollection | The string fragments. |
ISecuredFragmentMarkupGenerator | securedFragmentMarkupGenerator | The group resolver. |
Returns
Type | Description |
---|---|
System.String |
GetMarkupForEditor(StringFragmentCollection, ISecuredFragmentMarkupGenerator)
Gets the markup that is presented when editing.
Declaration
public string GetMarkupForEditor(StringFragmentCollection stringFragmentCollection, ISecuredFragmentMarkupGenerator securedFragmentMarkupGenerator)
Parameters
Type | Name | Description |
---|---|---|
StringFragmentCollection | stringFragmentCollection | The string fragments. |
ISecuredFragmentMarkupGenerator | securedFragmentMarkupGenerator | The group resolver. |
Returns
Type | Description |
---|---|
System.String | Markup that is loaded when loading the personalized content in edit mode. |
GetViewFormat(StringFragmentCollection, ISecuredFragmentMarkupGenerator)
Gets the view format.
Declaration
public string GetViewFormat(StringFragmentCollection stringFragmentCollection, ISecuredFragmentMarkupGenerator securedFragmentMarkupGenerator)
Parameters
Type | Name | Description |
---|---|---|
StringFragmentCollection | stringFragmentCollection | The string fragments. |
ISecuredFragmentMarkupGenerator | securedFragmentMarkupGenerator | The group resolver. |
Returns
Type | Description |
---|---|
System.String |