C# 클래스 Raven.Database.Plugins.AbstractReadTrigger

상속: IRequiresDocumentDatabaseInitialization
파일 보기 프로젝트 열기: nhsevidence/ravendb

공개 메소드들

메소드 설명
AllowRead ( string key, RavenJObject metadata, ReadOperation operation, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : Raven.Database.Plugins.ReadVetoResult

Ask the trigger whatever the document should be read by the user.

The document and metadata instances SHOULD NOT be modified.

Initialize ( ) : void
Initialize ( DocumentDatabase database ) : void
OnRead ( string key, RavenJObject document, RavenJObject metadata, ReadOperation operation, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : void

Allow the trigger the option of modifying the document and metadata instances before the user can see them.

The modified values are transient, and are NOT saved to the database.

메소드 상세

AllowRead() 공개 메소드

Ask the trigger whatever the document should be read by the user.
The document and metadata instances SHOULD NOT be modified.
public AllowRead ( string key, RavenJObject metadata, ReadOperation operation, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : Raven.Database.Plugins.ReadVetoResult
key string The key of the read document - can be null if reading a projection
metadata RavenJObject The document metadata
operation ReadOperation Whatever the operation is a load or a query
transactionInformation Raven.Abstractions.Data.TransactionInformation The transaction information, if any
리턴 Raven.Database.Plugins.ReadVetoResult

Initialize() 공개 메소드

public Initialize ( ) : void
리턴 void

Initialize() 공개 메소드

public Initialize ( DocumentDatabase database ) : void
database DocumentDatabase
리턴 void

OnRead() 공개 메소드

Allow the trigger the option of modifying the document and metadata instances before the user can see them.
The modified values are transient, and are NOT saved to the database.
public OnRead ( string key, RavenJObject document, RavenJObject metadata, ReadOperation operation, Raven.Abstractions.Data.TransactionInformation transactionInformation ) : void
key string The key of the read document - can be null if reading a projection
document RavenJObject The document being read
metadata RavenJObject The document metadata
operation ReadOperation Whatever the operation is a load or a query
transactionInformation Raven.Abstractions.Data.TransactionInformation The transaction information, if any
리턴 void