SaaS CMS has officially launched! Learn more now.

Class PermissionTypeRepository

A in-memory repository of all registered permission types

Inheritance
System.Object
PermissionTypeRepository
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public abstract class PermissionTypeRepository : Object

Constructors

PermissionTypeRepository()

Declaration
protected PermissionTypeRepository()

Methods

List()

List all registered permission types

Declaration
public abstract IEnumerable<PermissionType> List()
Returns
Type Description
System.Collections.Generic.IEnumerable<PermissionType>

A list of permission types

Register(PermissionType)

Register a permission type

Declaration
public abstract bool Register(PermissionType type)
Parameters
Type Name Description
PermissionType type

The permission type

Returns
Type Description
System.Boolean

true if the type was registered successfully; false if type already exists.

Unregister(PermissionType)

Register a permission type

Declaration
public abstract bool Unregister(PermissionType type)
Parameters
Type Name Description
PermissionType type

The permission type

Returns
Type Description
System.Boolean

true if the type was unregistered successfully; false if type was not found.

Extension Methods