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
    System.Object
    Namespace: Umbraco.Cms.Core.Models.Membership
    Assembly: Umbraco.Core.dll
    Syntax
    public class EntityPermission : IEquatable<EntityPermission>

    Constructors

    View Source

    EntityPermission(Int32, Int32, String[])

    Declaration
    public EntityPermission(int groupId, int entityId, string[] assignedPermissions)
    Parameters
    Type Name Description
    System.Int32 groupId
    System.Int32 entityId
    System.String[] assignedPermissions
    View Source

    EntityPermission(Int32, Int32, String[], Boolean)

    Declaration
    public EntityPermission(int groupId, int entityId, string[] assignedPermissions, bool isDefaultPermissions)
    Parameters
    Type Name Description
    System.Int32 groupId
    System.Int32 entityId
    System.String[] assignedPermissions
    System.Boolean isDefaultPermissions

    Properties

    View Source

    AssignedPermissions

    The assigned permissions for the user/entity combo

    Declaration
    public string[] AssignedPermissions { get; }
    Property Value
    Type Description
    System.String[]
    View Source

    EntityId

    Declaration
    public int EntityId { get; }
    Property Value
    Type Description
    System.Int32
    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
    System.Boolean
    Remarks

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

    View Source

    UserGroupId

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

    Methods

    View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    View Source

    Equals(EntityPermission)

    Declaration
    public bool Equals(EntityPermission other)
    Parameters
    Type Name Description
    EntityPermission other
    Returns
    Type Description
    System.Boolean
    View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • EntityPermission(Int32, Int32, String[])
      • EntityPermission(Int32, Int32, String[], Boolean)
    • Properties
      • AssignedPermissions
      • EntityId
      • IsDefaultPermissions
      • UserGroupId
    • Methods
      • Equals(Object)
      • Equals(EntityPermission)
      • GetHashCode()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX