C# Class EPiCode.Relations.Core.RelationProviders.DynamicDataStoreProvider.DDSRelationProvider

Inheritance: RelationProviderBase
Mostrar archivo Open project: BVNetwork/Relations

Private Properties

Property Type Description
DDSRelationProvider System
EnsureKey void
GetCacheKey string
GetFromCache object
RemovedCallback void
SetKey void
SetKey void
StoreInCache void
UpdateCache void
UpdateLocalOnly void
UpdateRemoteOnly void
ValidationFilter void

Public Methods

Method Description
AddRelation ( string rule, int pageLeft, int pageRight ) : void
DeleteAll ( ) : void
DeleteAll ( string rule ) : void
DeleteRelation ( Relation relationToDelete ) : void
GetAllRelations ( string rule ) : List
GetRelation ( Identity id ) : Relation
GetRelation ( string rule, int pageLeft, int pageRight ) : Relation
GetRelationPagesForPage ( int pageID, Rule rule ) : List
GetRelationPagesForPage ( int pageID, Rule rule, Rule direction ) : List
GetRelationsCount ( string rule ) : int
GetRelationsForPage ( int pageID ) : List
GetRelationsForPage ( int pageID, Rule rule ) : List
GetRelationsForPage ( int pageID, Rule rule, Rule direction ) : List
GetRelationsForPageTwoHop ( int pageID, Rule firstRule, Rule firstDirection, Rule secondRule, Rule secondDirection ) : List
RelationExists ( string rule, int pageLeft, int pageRight ) : bool
Save ( Relation relation ) : void

Private Methods

Method Description
DDSRelationProvider ( ) : System
EnsureKey ( ) : void
GetCacheKey ( int pageid, string rule, Rule direction ) : string
GetFromCache ( string cacheKey ) : object

Will get the pages from the cache, if it exists.

RemovedCallback ( string key, object value, CacheItemRemovedReason reason ) : void
SetKey ( ) : void
SetKey ( long value ) : void
StoreInCache ( string cacheKey, object relations ) : void
UpdateCache ( ) : void
UpdateLocalOnly ( ) : void
UpdateRemoteOnly ( ) : void
ValidationFilter ( List relations ) : void

Method Details

AddRelation() public method

public AddRelation ( string rule, int pageLeft, int pageRight ) : void
rule string
pageLeft int
pageRight int
return void

DeleteAll() public method

public DeleteAll ( ) : void
return void

DeleteAll() public method

public DeleteAll ( string rule ) : void
rule string
return void

DeleteRelation() public method

public DeleteRelation ( Relation relationToDelete ) : void
relationToDelete Relation
return void

GetAllRelations() public method

public GetAllRelations ( string rule ) : List
rule string
return List

GetRelation() public method

public GetRelation ( Identity id ) : Relation
id Identity
return Relation

GetRelation() public method

public GetRelation ( string rule, int pageLeft, int pageRight ) : Relation
rule string
pageLeft int
pageRight int
return Relation

GetRelationPagesForPage() public method

public GetRelationPagesForPage ( int pageID, Rule rule ) : List
pageID int
rule Rule
return List

GetRelationPagesForPage() public method

public GetRelationPagesForPage ( int pageID, Rule rule, Rule direction ) : List
pageID int
rule Rule
direction Rule
return List

GetRelationsCount() public method

public GetRelationsCount ( string rule ) : int
rule string
return int

GetRelationsForPage() public method

public GetRelationsForPage ( int pageID ) : List
pageID int
return List

GetRelationsForPage() public method

public GetRelationsForPage ( int pageID, Rule rule ) : List
pageID int
rule Rule
return List

GetRelationsForPage() public method

public GetRelationsForPage ( int pageID, Rule rule, Rule direction ) : List
pageID int
rule Rule
direction Rule
return List

GetRelationsForPageTwoHop() public method

public GetRelationsForPageTwoHop ( int pageID, Rule firstRule, Rule firstDirection, Rule secondRule, Rule secondDirection ) : List
pageID int
firstRule Rule
firstDirection Rule
secondRule Rule
secondDirection Rule
return List

RelationExists() public method

public RelationExists ( string rule, int pageLeft, int pageRight ) : bool
rule string
pageLeft int
pageRight int
return bool

Save() public method

public Save ( Relation relation ) : void
relation Relation
return void