Class EntityPermissionSet
Represents an entity -> user group & permission key value pair collection
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Models.Membership
Assembly: Umbraco.Core.dll
Syntax
public class EntityPermissionSet
Constructors
View SourceEntityPermissionSet(Int32, EntityPermissionCollection)
Declaration
public EntityPermissionSet(int entityId, EntityPermissionCollection permissionsSet)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | entityId | |
EntityPermissionCollection | permissionsSet |
Properties
View SourceEntityId
The entity id with permissions assigned
Declaration
public virtual int EntityId { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
PermissionsSet
The key/value pairs of user group id & single permission
Declaration
public EntityPermissionCollection PermissionsSet { get; }
Property Value
Type | Description |
---|---|
EntityPermissionCollection |
Methods
View SourceEmpty()
Returns an empty permission set
Declaration
public static EntityPermissionSet Empty()
Returns
Type | Description |
---|---|
EntityPermissionSet |
GetAllPermissions()
Returns the aggregate permissions in the permission set
Declaration
public ISet<string> GetAllPermissions()
Returns
Type | Description |
---|---|
ISet<System.String> |
Remarks
This value is only calculated once