Table of Contents

Interface IUserManager

Namespace
Loehnert.Lisrt.Users
Assembly
Loehnert.Lisrt.dll

Interface for a user manager.

public interface IUserManager

Properties

CurrentUser

Gets the current user.

IUser CurrentUser { get; }

Property Value

IUser

DefaultUser

Gets the default user.

IUser DefaultUser { get; }

Property Value

IUser

Remarks

This IUser has a minimum of permissions and no password.

Groups

Gets all existing user groups.

KeyItemCollection<IGroup> Groups { get; }

Property Value

KeyItemCollection<IGroup>

PasswordRules

Gets all PasswordRules.

ICollection<IStringRule> PasswordRules { get; }

Property Value

ICollection<IStringRule>

Permissions

Gets all existing permissions.

KeyItemCollection<IPermission> Permissions { get; }

Property Value

KeyItemCollection<IPermission>

SuperUser

Gets the super user with all permissions.

IUser SuperUser { get; }

Property Value

IUser

Remarks

This IUser has all permissions and a password.

Users

Gets all existing users.

KeyItemCollection<IUser> Users { get; }

Property Value

KeyItemCollection<IUser>

Methods

Login()

Logs a user to CurrentUser in.

void Login()

Login(string, string)

Logs user to CurrentUser in.

void Login(string key, string password)

Parameters

key string

Key of a exported IUser.

password string

Password for this IUser.

Events

UserChanged

Occurs when the current user has changed.

event EventHandler<UserChangedEventArgs> UserChanged

Event Type

EventHandler<UserChangedEventArgs>

UserChanging

Occurs before a user change.

event EventHandler<UserChangingEventArgs> UserChanging

Event Type

EventHandler<UserChangingEventArgs>