CKFinder 3 – ASP.NET Connector Documentation
AclRepository Class Reference

Provides default Access Control List. More...

Inheritance diagram for AclRepository:
IAclRepository

Public Member Functions

 AclRepository ()
 Constructs a new instance of AclRepository. More...
 
void AddRule (AclRule rule)
 Adds AclRule to the repository. More...
 
void RemoveRule (AclRule rule)
 Removes AclRule from the repository. More...
 
Permission GetPermission (ResourceType resourceType, string path, IReadOnlyCollection< string > roles)
 Returns permission mask for given ResourceType, path and user roles. More...
 

Public Attributes

IReadOnlyCollection< AclRuleRules => _rules
 A collection of all AclRule instances in the repository. More...
 

Additional Inherited Members

- Properties inherited from IAclRepository
IReadOnlyCollection< AclRuleRules [get]
 A collection of all AclRule instances in the repository. More...
 

Detailed Description

Provides default Access Control List.

Constructor & Destructor Documentation

◆ AclRepository()

AclRepository ( )
inline

Constructs a new instance of AclRepository.

Member Function Documentation

◆ AddRule()

void AddRule ( AclRule  rule)
inline

Adds AclRule to the repository.

Parameters
ruleAn instance of AclRule to add.

Implements IAclRepository.

◆ GetPermission()

Permission GetPermission ( ResourceType  resourceType,
string  path,
IReadOnlyCollection< string >  roles 
)
inline

Returns permission mask for given ResourceType, path and user roles.

Parameters
resourceTypeAn instance of ResourceType for which calculate permission.
pathAn absolute path to the folder for which calculate permission.
rolesA collection of user roles.
Returns
A mask of Permission.

Implements IAclRepository.

◆ RemoveRule()

void RemoveRule ( AclRule  rule)
inline

Removes AclRule from the repository.

Parameters
ruleAn instance of AclRule to remove.

Implements IAclRepository.

Member Data Documentation

◆ Rules

IReadOnlyCollection<AclRule> Rules => _rules

A collection of all AclRule instances in the repository.


The documentation for this class was generated from the following file: