AuthenticationService v0.3.0+7-g8a7f190
Public Member Functions | Static Public Member Functions | List of all members
Joutsen.AuthenticationControl.DeleteRoleCommand Class Reference

A command that can be used to delete a role of an user for an application from the database. More...

Public Member Functions

 DeleteRoleCommand (IServiceProvider services)
 
override void ExecuteAuthenticated ()
 In derived classes contains the logic of the command. More...
 
- Public Member Functions inherited from Joutsen.AuthenticationControl.RoleCommand
 RoleCommand (IServiceProvider services)
 
- Public Member Functions inherited from Joutsen.AuthenticationControl.AuthenticatedCommand
 AuthenticatedCommand (IServiceProvider services)
 
abstract void ExecuteAuthenticated ()
 In derived classes contains the logic of the command. More...
 
override void Execute ()
 

Static Public Member Functions

static SubParser< DeleteRoleCommandCreateParser (SubParser parser, IServiceProvider services)
 Creates a command line parser for use with the command. More...
 
- Static Public Member Functions inherited from Joutsen.AuthenticationControl.AuthenticatedCommand
static new SubParser ConfigureParser (SubParser parser)
 Can be used to configure a parser with the credentials argument. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Joutsen.AuthenticationControl.RoleCommand
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 inherited from Joutsen.AuthenticationControl.RoleCommand
ApplicationRepository AppRepository [get]
 The repository providing access to applications in the database. More...
 
UserRepository UserRepository [get]
 The repository providing access to users in the database. More...
 
RoleRepository Repository [get]
 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]
 The schema for the authentication database. More...
 

Detailed Description

A command that can be used to delete a role of an user for an application from the database.

Since
0.1.0

Constructor & Destructor Documentation

◆ DeleteRoleCommand()

Joutsen.AuthenticationControl.DeleteRoleCommand.DeleteRoleCommand ( IServiceProvider  services)

Member Function Documentation

◆ CreateParser()

static SubParser< DeleteRoleCommand > Joutsen.AuthenticationControl.DeleteRoleCommand.CreateParser ( SubParser  parser,
IServiceProvider  services 
)
static

Creates a command line parser for use with the command.

◆ ExecuteAuthenticated()

override void Joutsen.AuthenticationControl.DeleteRoleCommand.ExecuteAuthenticated ( )
virtual

In derived classes contains the logic of the command.

Implements Joutsen.AuthenticationControl.AuthenticatedCommand.