Interface IPermissionMapper
Represents a contract for mapping permission entities between the domain model and the database.
Namespace: Umbraco.Cms.Infrastructure.Persistence.Mappers
Assembly: Umbraco.Infrastructure.dll
Syntax
public interface IPermissionMapper
Properties
View SourceContext
Gets the context string that identifies the scope or area to which the permission mapper applies.
Declaration
string Context { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceMapFromDto(UserGroup2GranularPermissionDto)
Maps a UserGroup2GranularPermissionDto to an IGranularPermission instance.
Declaration
IGranularPermission MapFromDto(UserGroup2GranularPermissionDto dto)
Parameters
| Type | Name | Description |
|---|---|---|
| UserGroup2GranularPermissionDto | dto | The DTO representing a user group's granular permission. |
Returns
| Type | Description |
|---|---|
| IGranularPermission | The corresponding IGranularPermission instance. |