C# 클래스 ScrewTurn.Wiki.AclEngine.AclManagerBase

Implements a base class for an ACL Manager.
All instance and static members are thread-safe.
상속: IAclManager
파일 보기 프로젝트 열기: mono/ScrewTurnWiki

공개 메소드들

메소드 설명
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