AuthenticationService  v0.2.0
Protected Member Functions | Properties | List of all members
Joutsen.AuthenticationControl.RoleCommand Class Reference

A base class for commands that handle roles. More...

Protected Member Functions

long GetUserId ()
 Fetches the unique identifier of the user. More...
 
User GetUser ()
 Fetches the user from the database. More...
 
long GetApplicationId ()
 Fetches the unique identifier of the application. More...
 

Properties

ApplicationRepository AppRepository [get, set]
 The repository providing access to applications in the database. More...
 
UserRepository UserRepository [get, set]
 The repository providing access to users in the database. More...
 
RoleRepository Repository [get, set]
 The repository providing access to roles in the database. More...
 
String Name [get, set]
 The role's human friendly name. More...
 
String ApplicationName [get, set]
 The application's name. More...
 
long ApplicationId [get, set]
 The application's unique identifier. More...
 
String Username [get, set]
 The user's name. More...
 
long UserId [get, set]
 The user's unique identifier. More...
 
- Properties inherited from Joutsen.AuthenticationControl.AuthenticatedCommand
String Credentials [set]
 The username and password separated by a colon used to authenticate the execution of a command. More...
 
Authenticator AuthProvider [get, set]
 The authentication provider used to check the credentials. More...
 

Additional Inherited Members

- Public Member Functions inherited from Joutsen.AuthenticationControl.AuthenticatedCommand
abstract void ExecuteAuthenticated ()
 In derived classes contains the logic of the command. More...
 
override void Execute ()
 In derived classes executes the logic of the command. More...
 
- Static Public Member Functions inherited from Joutsen.AuthenticationControl.AuthenticatedCommand
static SubParser ConfigureParser (SubParser parser)
 Can be used to configure a parser with the credentials argument. More...
 

Detailed Description

A base class for commands that handle roles.

Since
0.1.0

Member Function Documentation

◆ GetApplicationId()

long Joutsen.AuthenticationControl.RoleCommand.GetApplicationId ( )
protected

Fetches the unique identifier of the application.

◆ GetUser()

User Joutsen.AuthenticationControl.RoleCommand.GetUser ( )
protected

Fetches the user from the database.

◆ GetUserId()

long Joutsen.AuthenticationControl.RoleCommand.GetUserId ( )
protected

Fetches the unique identifier of the user.

Property Documentation

◆ ApplicationId

long Joutsen.AuthenticationControl.RoleCommand.ApplicationId
getset

The application's unique identifier.

◆ ApplicationName

String Joutsen.AuthenticationControl.RoleCommand.ApplicationName
getset

The application's name.

◆ AppRepository

ApplicationRepository Joutsen.AuthenticationControl.RoleCommand.AppRepository
getset

The repository providing access to applications in the database.

◆ Name

String Joutsen.AuthenticationControl.RoleCommand.Name
getset

The role's human friendly name.

◆ Repository

RoleRepository Joutsen.AuthenticationControl.RoleCommand.Repository
getset

The repository providing access to roles in the database.

◆ UserId

long Joutsen.AuthenticationControl.RoleCommand.UserId
getset

The user's unique identifier.

◆ Username

String Joutsen.AuthenticationControl.RoleCommand.Username
getset

The user's name.

◆ UserRepository

UserRepository Joutsen.AuthenticationControl.RoleCommand.UserRepository
getset

The repository providing access to users in the database.