Class PersonalizedContentFactory
Factory for personalized content
Inheritance
System.Object
PersonalizedContentFactory
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Personalization
Assembly: EPiServer.dll
Version: 8.11.0Syntax
[ServiceConfiguration(typeof(IPersonalizedContentFactory))]
public class PersonalizedContentFactory : IPersonalizedContentFactory
Constructors
PersonalizedContentFactory()
Initializes a new instance of the PersonalizedContentFactory class.
Declaration
public PersonalizedContentFactory()
PersonalizedContentFactory(LocalizationService)
Initializes a new instance of the PersonalizedContentFactory class.
Declaration
public PersonalizedContentFactory(LocalizationService localizationService)
Parameters
Type | Name | Description |
---|---|---|
LocalizationService | localizationService | The resource locator that should be used by the current instance. |
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 |