November Happy Hour will be moved to Thursday December 5th.

Class PermissionRepository

Repository for permissions to functions

Inheritance
System.Object
PermissionRepository
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
public abstract class PermissionRepository

Constructors

PermissionRepository()

Declaration
protected PermissionRepository()

Methods

DeletePermissions(SecurityEntity)

Clears all permissions for a given user/role

Declaration
public abstract void DeletePermissions(SecurityEntity entity)
Parameters
Type Name Description
SecurityEntity entity

The user/role

GetPermissions(PermissionType)

Gets all roles/users that have the specified permission type

Declaration
public abstract IEnumerable<SecurityEntity> GetPermissions(PermissionType type)
Parameters
Type Name Description
PermissionType type

The permission type

Returns
Type Description
System.Collections.Generic.IEnumerable<SecurityEntity>

A list of roles/users assigned to a permission type

SavePermissions(PermissionType, IEnumerable<SecurityEntity>)

Save roles/users for the specified permission type

Declaration
public abstract void SavePermissions(PermissionType type, IEnumerable<SecurityEntity> entities)
Parameters
Type Name Description
PermissionType type

The permission type

System.Collections.Generic.IEnumerable<SecurityEntity> entities

The list or roles/users for the permission type

Extension Methods