Nucleus .Net Core CMS

Managers.IRoleManager Interface

Namespace: Nucleus.Abstractions.Managers
Assembly: Nucleus.Abstractions.dll
Defines the interface for the role manager.

Remarks

Get an instance of this class from dependency injection by including a parameter in your class constructor.

Methods

CreateNew

CreateNew ()
Create a new Models.Role with default values.
Remarks
This function does not save the new Models.Role to the database. Call Save to save the role.

Get (Guid) Method

Get (Guid id)
Retrieve an existing Models.Role from the database.
Parameters
Name Type
id Guid

GetByName (Site,String) Method

GetByName (Site site, String name)
Retrieve an existing Models.Role from the database.
Parameters
Name Type
site Nucleus.Abstractions.Models.Site
name String

List (Site) Method

List (Site site)
List all Models.Roles for the specified site.
Parameters
Name Type
site Nucleus.Abstractions.Models.Site

List (Site,PagingSettings) Method

List (Site site, PagingSettings pagingSettings)
List Models.Roles for the specified site.

Save (Site,Role) Method

Save (Site site, Role role)
Create or update the specified Models.Role.

Delete (Role) Method

Delete (Role role)
Delete the specified Models.Role from the database.
Parameters
Name Type
role Nucleus.Abstractions.Models.Role