November Happy Hour will be moved to Thursday December 5th.

Class VisitorGroupMarkupGenerator

Generates markup for fragments that are restricted for a list of visitor groups.

Inheritance
System.Object
VisitorGroupMarkupGenerator
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.Core.Html.StringParsing
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public class VisitorGroupMarkupGenerator : ISecuredFragmentMarkupGenerator, IContentGroup

Constructors

VisitorGroupMarkupGenerator(IVisitorGroupRepository, IVisitorGroupRoleRepository, String, IEnumerable<String>, LocalizationService)

Initializes a new instance of the VisitorGroupMarkupGenerator class.

Declaration
public VisitorGroupMarkupGenerator(IVisitorGroupRepository visitorGroupRepository, IVisitorGroupRoleRepository visitorGroupRoleRepository, string contentGroup, IEnumerable<string> visitorGroups, LocalizationService localizationService)
Parameters
Type Name Description
IVisitorGroupRepository visitorGroupRepository
IVisitorGroupRoleRepository visitorGroupRoleRepository
System.String contentGroup
System.Collections.Generic.IEnumerable<System.String> visitorGroups
LocalizationService localizationService

VisitorGroupMarkupGenerator(IVisitorGroupRepository, String, IRoleSecurityDescriptor)

Initializes a new instance of the VisitorGroupMarkupGenerator class.

Declaration
public VisitorGroupMarkupGenerator(IVisitorGroupRepository visitorGroupRepository, string contentGroup, IRoleSecurityDescriptor roleSecurityDescriptor)
Parameters
Type Name Description
IVisitorGroupRepository visitorGroupRepository

The visitor group repository.

System.String contentGroup

The content group.

IRoleSecurityDescriptor roleSecurityDescriptor

The role security descriptor.

VisitorGroupMarkupGenerator(IVisitorGroupRepository, String, IRoleSecurityDescriptor, LocalizationService)

Initializes a new instance of the VisitorGroupMarkupGenerator class.

Declaration
public VisitorGroupMarkupGenerator(IVisitorGroupRepository visitorGroupRepository, string contentGroup, IRoleSecurityDescriptor roleSecurityDescriptor, LocalizationService localizationService)
Parameters
Type Name Description
IVisitorGroupRepository visitorGroupRepository

The visitor group repository.

System.String contentGroup

The content group.

IRoleSecurityDescriptor roleSecurityDescriptor

The role security descriptor.

LocalizationService localizationService

The resource locator.

VisitorGroupMarkupGenerator(IVisitorGroupRepository, String, IEnumerable<String>)

Initializes a new instance of the VisitorGroupMarkupGenerator class.

Declaration
[Obsolete("Use alternative constructor")]
public VisitorGroupMarkupGenerator(IVisitorGroupRepository visitorGroupRepository, string contentGroup, IEnumerable<string> visitorGroups)
Parameters
Type Name Description
IVisitorGroupRepository visitorGroupRepository

The visitor group repository.

System.String contentGroup

The content group.

System.Collections.Generic.IEnumerable<System.String> visitorGroups

The visitor groups.

VisitorGroupMarkupGenerator(IVisitorGroupRepository, String, IEnumerable<String>, LocalizationService)

Initializes a new instance of the VisitorGroupMarkupGenerator class.

Declaration
[Obsolete("Use alternative constructor")]
public VisitorGroupMarkupGenerator(IVisitorGroupRepository visitorGroupRepository, string contentGroup, IEnumerable<string> visitorGroups, LocalizationService localizationService)
Parameters
Type Name Description
IVisitorGroupRepository visitorGroupRepository

The visitor group repository.

System.String contentGroup

The content group.

System.Collections.Generic.IEnumerable<System.String> visitorGroups

The visitor groups.

LocalizationService localizationService

The resource locator.

Properties

ContentGroup

Gets or sets the content group.

Declaration
public string ContentGroup { get; set; }
Property Value
Type Description
System.String

The content group.

RoleSecurityDescriptor

Gets or sets the role security descriptor that has information on which groups the content should be restricted to.

Declaration
public IRoleSecurityDescriptor RoleSecurityDescriptor { get; set; }
Property Value
Type Description
IRoleSecurityDescriptor

The role security descriptor.

Methods

GenerateCompressedGroupDisplayInformation()

Generates markup for an html editor to display information that the content is restricted to groups.

Declaration
public string GenerateCompressedGroupDisplayInformation()
Returns
Type Description
System.String

Markup for an html editor to display information that the content is restricted to groups.

Remarks

Used for inline elements.

See Also

GenerateGroupDisplayInformation()

Generates markup for an html editor to display the groups that the content is restricted to.

Declaration
public string GenerateGroupDisplayInformation()
Returns
Type Description
System.String

Markup for an html editor to display the groups that the content is restricted to.

Remarks

Used for block elements.

See Also

GenerateGroupStorageInformation()

Generates a string that can be used to store the groups that the content should be restricted to.

Declaration
public string GenerateGroupStorageInformation()
Returns
Type Description
System.String

A string that can be used to store the groups that the content should be restricted to.

Remarks

VisitorGroupMarkupGenerator uses a comma separated string with the id:s for the visitor groups.

Implements

Extension Methods