C# Class ScrewTurn.Wiki.Plugins.SqlCommon.SqlAclManager

Implements a SQL ACL Manager.
Inheritance: IAclManager
Afficher le fichier Open project: mono/ScrewTurnWiki

Méthodes publiques

Méthode Description
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 ( ) : ScrewTurn.Wiki.AclEngine.AclEntry[]

Retrieves all the ACL entries for a resource.

RetrieveEntriesForResource ( string resource ) : ScrewTurn.Wiki.AclEngine.AclEntry[]

Retrieves all the ACL entries for a resource.

RetrieveEntriesForSubject ( string subject ) : ScrewTurn.Wiki.AclEngine.AclEntry[]

Retrieves all the ACL entries for a subject.

SqlAclManager ( StoreEntry storeEntry, DeleteEntries deleteEntries, RenameResource renameResource, RetrieveAllEntries retrieveAllEntries, RetrieveEntriesForResource retrieveEntriesForResource, RetrieveEntriesForSubject retrieveEntriesForSubject ) : System

Initializes a new instance of the T:SqlAclManager class.

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

Stores a new ACL entry.

Private Methods

Méthode Description
OnAclChanged ( AclEntry entries, Change change ) : void

Method Details

DeleteEntriesForResource() public méthode

Deletes all the ACL entries for a resource.
If is null. If is empty.
public DeleteEntriesForResource ( string resource ) : bool
resource string The controlled resource.
Résultat bool

DeleteEntriesForSubject() public méthode

Deletes all the ACL entries for a subject.
If is null. If is empty.
public DeleteEntriesForSubject ( string subject ) : bool
subject string The subject.
Résultat bool

DeleteEntry() public méthode

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.
Résultat bool

InitializeData() public méthode

Initializes the manager data.
If is null.
public InitializeData ( AclEntry entries ) : void
entries ScrewTurn.Wiki.AclEngine.AclEntry The ACL entries.
Résultat void

RenameResource() public méthode

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.
Résultat bool

RetrieveAllEntries() public méthode

Retrieves all the ACL entries for a resource.
public RetrieveAllEntries ( ) : ScrewTurn.Wiki.AclEngine.AclEntry[]
Résultat ScrewTurn.Wiki.AclEngine.AclEntry[]

RetrieveEntriesForResource() public méthode

Retrieves all the ACL entries for a resource.
If is null. If is empty.
public RetrieveEntriesForResource ( string resource ) : ScrewTurn.Wiki.AclEngine.AclEntry[]
resource string The resource.
Résultat ScrewTurn.Wiki.AclEngine.AclEntry[]

RetrieveEntriesForSubject() public méthode

Retrieves all the ACL entries for a subject.
If is null. If is empty.
public RetrieveEntriesForSubject ( string subject ) : ScrewTurn.Wiki.AclEngine.AclEntry[]
subject string The subject.
Résultat ScrewTurn.Wiki.AclEngine.AclEntry[]

SqlAclManager() public méthode

Initializes a new instance of the T:SqlAclManager class.
public SqlAclManager ( StoreEntry storeEntry, DeleteEntries deleteEntries, RenameResource renameResource, RetrieveAllEntries retrieveAllEntries, RetrieveEntriesForResource retrieveEntriesForResource, RetrieveEntriesForSubject retrieveEntriesForSubject ) : System
storeEntry StoreEntry The delegate.
deleteEntries DeleteEntries The delegate.
renameResource RenameResource The delegate.
retrieveAllEntries RetrieveAllEntries The delegate.
retrieveEntriesForResource RetrieveEntriesForResource The delegate.
retrieveEntriesForSubject RetrieveEntriesForSubject The delegate.
Résultat System

StoreEntry() public méthode

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.
Résultat bool