C# Класс ScrewTurn.Wiki.AclEngine.AclManagerBase

Implements a base class for an ACL Manager.
All instance and static members are thread-safe.
Наследование: IAclManager
Показать файл Открыть проект

Открытые методы

Метод Описание
AclManagerBase ( ) : System

Initializes a new instance of the T:AclManagerBase abstract class.

DeleteEntriesForResource ( string resource ) : bool

Deletes all the ACL entries for a resource.

DeleteEntriesForSubject ( string subject ) : bool

Deletes all the ACL entries for a subject.

DeleteEntry ( string resource, string action, string subject ) : bool

Deletes an ACL entry.

InitializeData ( AclEntry entries ) : void

Initializes the manager data.

RenameResource ( string resource, string newName ) : bool

Renames a resource.

RetrieveAllEntries ( ) : AclEntry[]

Retrieves all the ACL entries for a resource.

RetrieveEntriesForResource ( string resource ) : AclEntry[]

Retrieves all the ACL entries for a resource.

RetrieveEntriesForSubject ( string subject ) : AclEntry[]

Retrieves all the ACL entries for a subject.

StoreEntry ( string resource, string action, string subject, Value value ) : bool

Stores a new ACL entry.

Защищенные методы

Метод Описание
OnAclChanged ( AclEntry entries, Change change ) : void

Handles the invokation of IAclManager.AclChanged event.

Описание методов

AclManagerBase() публичный Метод

Initializes a new instance of the T:AclManagerBase abstract class.
public AclManagerBase ( ) : System
Результат System

DeleteEntriesForResource() публичный Метод

Deletes all the ACL entries for a resource.
If is null. If is empty.
public DeleteEntriesForResource ( string resource ) : bool
resource string The controlled resource.
Результат bool

DeleteEntriesForSubject() публичный Метод

Deletes all the ACL entries for a subject.
If is null. If is empty.
public DeleteEntriesForSubject ( string subject ) : bool
subject string The subject.
Результат bool

DeleteEntry() публичный Метод

Deletes an ACL entry.
If , or are null. If , or are empty.
public DeleteEntry ( string resource, string action, string subject ) : bool
resource string The controlled resource.
action string The action on the controlled resource.
subject string The subject whose access to the resource/action is controlled.
Результат bool

InitializeData() публичный Метод

Initializes the manager data.
If is null.
public InitializeData ( AclEntry entries ) : void
entries AclEntry The ACL entries.
Результат void

OnAclChanged() защищенный Метод

Handles the invokation of IAclManager.AclChanged event.
protected OnAclChanged ( AclEntry entries, Change change ) : void
entries AclEntry The changed entries.
change Change The change.
Результат void

RenameResource() публичный Метод

Renames a resource.
If or are null. If or are empty.
public RenameResource ( string resource, string newName ) : bool
resource string The resource.
newName string The new name of the resource.
Результат bool

RetrieveAllEntries() публичный Метод

Retrieves all the ACL entries for a resource.
public RetrieveAllEntries ( ) : AclEntry[]
Результат AclEntry[]

RetrieveEntriesForResource() публичный Метод

Retrieves all the ACL entries for a resource.
If is null. If is empty.
public RetrieveEntriesForResource ( string resource ) : AclEntry[]
resource string The resource.
Результат AclEntry[]

RetrieveEntriesForSubject() публичный Метод

Retrieves all the ACL entries for a subject.
If is null. If is empty.
public RetrieveEntriesForSubject ( string subject ) : AclEntry[]
subject string The subject.
Результат AclEntry[]

StoreEntry() публичный Метод

Stores a new ACL entry.
If , or are null. If , or are empty.
public StoreEntry ( string resource, string action, string subject, Value value ) : bool
resource string The controlled resource.
action string The action on the controlled resource.
subject string The subject whose access to the resource/action is controlled.
value Value The value of the entry.
Результат bool