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 Personalized
Declaration
public PersonalizedContentFactory(LocalizationService localizationService, IPrincipalAccessor principalAccessor)
Parameters
Type | Name | Description |
---|---|---|
Localization |
localizationService | |
IPrincipal |
principalAccessor |
Properties
ContentHolderClassName
Gets the name of the content holder attribute class.
Declaration
public string ContentHolderClassName { get; }
Property Value
Type | Description |
---|---|
System. |
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. |
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 |
---|---|---|
String |
stringFragmentCollection | The string fragments. |
ISecured |
securedFragmentMarkupGenerator | The group resolver. |
Returns
Type | Description |
---|---|
System. |
GetMarkupForEditor(StringFragmentCollection, ISecuredFragmentMarkupGenerator)
Gets the markup that is presented when editing.
Declaration
public string GetMarkupForEditor(StringFragmentCollection stringFragmentCollection, ISecuredFragmentMarkupGenerator securedFragmentMarkupGenerator)
Parameters
Type | Name | Description |
---|---|---|
String |
stringFragmentCollection | The string fragments. |
ISecured |
securedFragmentMarkupGenerator | The group resolver. |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
String |
stringFragmentCollection | The string fragments. |
ISecured |
securedFragmentMarkupGenerator | The group resolver. |
Returns
Type | Description |
---|---|
System. |