C# Class wmib.Security.Role

Mostra file Open project: benapetr/wikimedia-bot Class Usage Examples

Public Properties

Property Type Description
Level int
Permissions List
Roles List

Public Methods

Method Description
Grant ( Role role ) : void
Grant ( string permission ) : void
IsPermitted ( string permission ) : bool
Revoke ( Role role ) : void
Revoke ( string permission ) : void
Role ( ) : System
Role ( int level_ ) : System

Method Details

Grant() public method

public Grant ( Role role ) : void
role Role
return void

Grant() public method

public Grant ( string permission ) : void
permission string
return void

IsPermitted() public method

public IsPermitted ( string permission ) : bool
permission string
return bool

Revoke() public method

public Revoke ( Role role ) : void
role Role
return void

Revoke() public method

public Revoke ( string permission ) : void
permission string
return void

Role() public method

public Role ( ) : System
return System

Role() public method

public Role ( int level_ ) : System
level_ int
return System

Property Details

Level public_oe property

The level of role used to compare which role is higher
public int Level
return int

Permissions public_oe property

public List Permissions
return List

Roles public_oe property

Every role may contain other roles as well
public List Roles
return List