C# Class wmib.Security.Role

Show 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 property

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

Permissions public property

public List Permissions
return List

Roles public property

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