Search Results for

    Show / Hide Table of Contents
    View Source

    Class EntityPermission

    Represents an entity permission (defined on the user group and derived to retrieve permissions for a given user)

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Models.Membership
    Assembly: Umbraco.Core.dll
    Syntax
    public class EntityPermission

    Constructors

    View Source

    EntityPermission(int, int, ISet<string>)

    Initializes a new instance of the EntityPermission class.

    Declaration
    public EntityPermission(int groupId, int entityId, ISet<string> assignedPermissions)
    Parameters
    Type Name Description
    int groupId

    The user group identifier.

    int entityId

    The entity identifier.

    ISet<string> assignedPermissions

    The set of assigned permissions.

    View Source

    EntityPermission(int, int, ISet<string>, bool)

    Initializes a new instance of the EntityPermission class.

    Declaration
    public EntityPermission(int groupId, int entityId, ISet<string> assignedPermissions, bool isDefaultPermissions)
    Parameters
    Type Name Description
    int groupId

    The user group identifier.

    int entityId

    The entity identifier.

    ISet<string> assignedPermissions

    The set of assigned permissions.

    bool isDefaultPermissions

    Indicates whether these are default permissions.

    Properties

    View Source

    AssignedPermissions

    The assigned permissions for the user/entity combo

    Declaration
    public ISet<string> AssignedPermissions { get; }
    Property Value
    Type Description
    ISet<string>
    View Source

    EntityId

    Gets the entity identifier.

    Declaration
    public int EntityId { get; }
    Property Value
    Type Description
    int
    View Source

    IsDefaultPermissions

    True if the permissions assigned to this object are the group's default permissions and not explicitly defined permissions

    Declaration
    public bool IsDefaultPermissions { get; }
    Property Value
    Type Description
    bool
    Remarks

    This will be the case when looking up entity permissions and falling back to the default permissions

    View Source

    UserGroupId

    Gets the user group identifier.

    Declaration
    public int UserGroupId { get; }
    Property Value
    Type Description
    int

    Methods

    View Source

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    View Source

    Equals(EntityPermission?)

    Declaration
    public bool Equals(EntityPermission? other)
    Parameters
    Type Name Description
    EntityPermission other
    Returns
    Type Description
    bool
    View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX