Search Results for

    Show / Hide Table of Contents
    View Source

    Class MemberTabsAndPropertiesMapper

    A custom tab/property resolver for members which will ensure that the built-in membership properties are or aren't displayed depending on if the member type has these properties

    Inheritance
    System.Object
    TabsAndPropertiesMapper
    TabsAndPropertiesMapper<IMember>
    Namespace: Umbraco.Cms.Core.Models.Mapping
    Assembly: Umbraco.Core.dll
    Syntax
    public class MemberTabsAndPropertiesMapper : TabsAndPropertiesMapper<IMember>
    Remarks

    This also ensures that the IsLocked out property is readonly when the member is not locked out - this is because an admin cannot actually set isLockedOut = true, they can only unlock.

    Constructors

    View Source

    MemberTabsAndPropertiesMapper(ICultureDictionary, IBackOfficeSecurityAccessor, ILocalizedTextService, IMemberTypeService, IMemberService, IMemberGroupService, IOptions<MemberPasswordConfigurationSettings>, IContentTypeBaseServiceProvider, PropertyEditorCollection)

    Declaration
    public MemberTabsAndPropertiesMapper(ICultureDictionary cultureDictionary, IBackOfficeSecurityAccessor backofficeSecurityAccessor, ILocalizedTextService localizedTextService, IMemberTypeService memberTypeService, IMemberService memberService, IMemberGroupService memberGroupService, IOptions<MemberPasswordConfigurationSettings> memberPasswordConfiguration, IContentTypeBaseServiceProvider contentTypeBaseServiceProvider, PropertyEditorCollection propertyEditorCollection)
    Parameters
    Type Name Description
    ICultureDictionary cultureDictionary
    IBackOfficeSecurityAccessor backofficeSecurityAccessor
    ILocalizedTextService localizedTextService
    IMemberTypeService memberTypeService
    IMemberService memberService
    IMemberGroupService memberGroupService
    IOptions<MemberPasswordConfigurationSettings> memberPasswordConfiguration
    IContentTypeBaseServiceProvider contentTypeBaseServiceProvider
    PropertyEditorCollection propertyEditorCollection
    View Source

    MemberTabsAndPropertiesMapper(ICultureDictionary, IBackOfficeSecurityAccessor, ILocalizedTextService, IMemberTypeService, IMemberService, IMemberGroupService, IOptions<MemberPasswordConfigurationSettings>, IContentTypeBaseServiceProvider, PropertyEditorCollection, ITwoFactorLoginService)

    Declaration
    public MemberTabsAndPropertiesMapper(ICultureDictionary cultureDictionary, IBackOfficeSecurityAccessor backofficeSecurityAccessor, ILocalizedTextService localizedTextService, IMemberTypeService memberTypeService, IMemberService memberService, IMemberGroupService memberGroupService, IOptions<MemberPasswordConfigurationSettings> memberPasswordConfiguration, IContentTypeBaseServiceProvider contentTypeBaseServiceProvider, PropertyEditorCollection propertyEditorCollection, ITwoFactorLoginService twoFactorLoginService)
    Parameters
    Type Name Description
    ICultureDictionary cultureDictionary
    IBackOfficeSecurityAccessor backofficeSecurityAccessor
    ILocalizedTextService localizedTextService
    IMemberTypeService memberTypeService
    IMemberService memberService
    IMemberGroupService memberGroupService
    IOptions<MemberPasswordConfigurationSettings> memberPasswordConfiguration
    IContentTypeBaseServiceProvider contentTypeBaseServiceProvider
    PropertyEditorCollection propertyEditorCollection
    ITwoFactorLoginService twoFactorLoginService

    Methods

    View Source

    GetCustomGenericProperties(IContentBase)

    Declaration
    protected override IEnumerable<ContentPropertyDisplay> GetCustomGenericProperties(IContentBase content)
    Parameters
    Type Name Description
    IContentBase content
    Returns
    Type Description
    IEnumerable<ContentPropertyDisplay>
    View Source

    Map(IMember, MapperContext)

    Declaration
    public override IEnumerable<Tab<ContentPropertyDisplay>> Map(IMember source, MapperContext context)
    Parameters
    Type Name Description
    IMember source
    MapperContext context
    Returns
    Type Description
    IEnumerable<Tab<ContentPropertyDisplay>>
    Remarks

    Overridden to deal with custom member properties and permissions.

    View Source

    MapMembershipProperties(IMember, MapperContext)

    Declaration
    public IEnumerable<ContentPropertyDisplay> MapMembershipProperties(IMember member, MapperContext context)
    Parameters
    Type Name Description
    IMember member
    MapperContext context
    Returns
    Type Description
    IEnumerable<ContentPropertyDisplay>
    View Source

    MapProperties(IContentBase, List<IProperty>, MapperContext)

    Overridden to assign the IsSensitive property values

    Declaration
    protected override List<ContentPropertyDisplay> MapProperties(IContentBase content, List<IProperty> properties, MapperContext context)
    Parameters
    Type Name Description
    IContentBase content
    List<IProperty> properties
    MapperContext context
    Returns
    Type Description
    List<ContentPropertyDisplay>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • MemberTabsAndPropertiesMapper(ICultureDictionary, IBackOfficeSecurityAccessor, ILocalizedTextService, IMemberTypeService, IMemberService, IMemberGroupService, IOptions<MemberPasswordConfigurationSettings>, IContentTypeBaseServiceProvider, PropertyEditorCollection)
      • MemberTabsAndPropertiesMapper(ICultureDictionary, IBackOfficeSecurityAccessor, ILocalizedTextService, IMemberTypeService, IMemberService, IMemberGroupService, IOptions<MemberPasswordConfigurationSettings>, IContentTypeBaseServiceProvider, PropertyEditorCollection, ITwoFactorLoginService)
    • Methods
      • GetCustomGenericProperties(IContentBase)
      • Map(IMember, MapperContext)
      • MapMembershipProperties(IMember, MapperContext)
      • MapProperties(IContentBase, List<IProperty>, MapperContext)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX