Class PersonalizedContentFactory
Factory for personalized content
Inheritance
System.Object
PersonalizedContentFactory
Implements
Namespace: EPiServer.Personalization.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[ServiceConfiguration]
public class PersonalizedContentFactory : Object, IPersonalizedContentFactory
Constructors
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 |