Search Results for

    Show / Hide Table of Contents
    View Source

    Class UserGroupSave

    Inheritance
    System.Object
    EntityBasic
    Namespace: Umbraco.Cms.Core.Models.ContentEditing
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(Name = "userGroup", Namespace = "")]
    public class UserGroupSave : EntityBasic, IValidatableObject

    Properties

    View Source

    Action

    The action to perform when saving this user group

    Declaration
    [DataMember(Name = "action", IsRequired = true)]
    [Required]
    public ContentSaveAction Action { get; set; }
    Property Value
    Type Description
    ContentSaveAction
    Remarks

    If either of the Publish actions are specified an exception will be thrown.

    View Source

    Alias

    Declaration
    [DataMember(Name = "alias", IsRequired = true)]
    [Required]
    public override string Alias { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    AllowedLanguages

    The ids of allowed languages

    Declaration
    [DataMember(Name = "allowedLanguages")]
    public IEnumerable<int>? AllowedLanguages { get; set; }
    Property Value
    Type Description
    System.Nullable<IEnumerable<System.Int32>>
    View Source

    AssignedPermissions

    The assigned permissions for content

    Declaration
    [DataMember(Name = "assignedPermissions")]
    public IDictionary<int, IEnumerable<string>>? AssignedPermissions { get; set; }
    Property Value
    Type Description
    System.Nullable<IDictionary<System.Int32, IEnumerable<System.String>>>
    Remarks

    The key is the content id and the list is the list of letters (permission codes) to assign

    View Source

    DefaultPermissions

    The list of letters (permission codes) to assign as the default for the user group

    Declaration
    [DataMember(Name = "defaultPermissions")]
    public IEnumerable<string>? DefaultPermissions { get; set; }
    Property Value
    Type Description
    System.Nullable<IEnumerable<System.String>>
    View Source

    HasAccessToAllLanguages

    Declaration
    [DataMember(Name = "hasAccessToAllLanguages")]
    public bool HasAccessToAllLanguages { get; set; }
    Property Value
    Type Description
    System.Boolean
    View Source

    PersistedUserGroup

    The real persisted user group

    Declaration
    [IgnoreDataMember]
    public IUserGroup PersistedUserGroup { get; set; }
    Property Value
    Type Description
    IUserGroup
    View Source

    Sections

    Declaration
    [DataMember(Name = "sections")]
    public IEnumerable<string>? Sections { get; set; }
    Property Value
    Type Description
    System.Nullable<IEnumerable<System.String>>
    View Source

    StartContentId

    Declaration
    [DataMember(Name = "startContentId")]
    public int? StartContentId { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int32>
    View Source

    StartMediaId

    Declaration
    [DataMember(Name = "startMediaId")]
    public int? StartMediaId { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int32>
    View Source

    Users

    Declaration
    [DataMember(Name = "users")]
    public IEnumerable<int>? Users { get; set; }
    Property Value
    Type Description
    System.Nullable<IEnumerable<System.Int32>>

    Methods

    View Source

    Validate(ValidationContext)

    Declaration
    public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
    Parameters
    Type Name Description
    System.ComponentModel.DataAnnotations.ValidationContext validationContext
    Returns
    Type Description
    IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult>
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • Action
      • Alias
      • AllowedLanguages
      • AssignedPermissions
      • DefaultPermissions
      • HasAccessToAllLanguages
      • PersistedUserGroup
      • Sections
      • StartContentId
      • StartMediaId
      • Users
    • Methods
      • Validate(ValidationContext)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX