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

Inheritance: RuleProviderBase
Mostrar archivo Open project: BVNetwork/Relations

Private Properties

Property Type Description
EnsureKey void
GetFromCache object
RemovedCallback void
SetKey void
SetKey void
StoreInCache void
UpdateCache void
UpdateLocalOnly void
UpdateRemoteOnly void

Public Methods

Method Description
AddNewRule ( string name, string pageTypeLeft, string pageTypeRight, string ruleTextLeft, string ruleTextRight ) : Rule
DeleteAll ( ) : void
DeleteRule ( string name ) : void
GetAllRules ( ) : IEnumerable
GetAllRulesList ( ) : List
GetRule ( Identity id ) : Rule
GetRule ( string name ) : Rule
GetRules ( int pageID ) : IEnumerable
GetRules ( string pageTypeName ) : IEnumerable
GetRulesLeft ( int pageID ) : IEnumerable
GetRulesRight ( int pageID ) : IEnumerable
IsDescendent ( int pageID, int startID ) : bool
IsLeftRule ( int pageID, Rule rule ) : bool
IsLeftRule ( string pageTypeName, Rule rule ) : bool
RuleExists ( Identity id ) : bool
RuleExists ( string name ) : bool
Save ( Rule rel ) : Identity
SearchRelations ( Rule rule, int pageID, string searchKeyWord, PageReference hierarchyStart ) : PageDataCollection
SearchRelations ( Rule rule, int pageID, string searchKeyWord, PageReference hierarchyStart, bool isLeftRule ) : PageDataCollection
SearchRelations ( Rule rule, int pageID, string searchKeyWord, bool isLeftRule ) : PageDataCollection

Private Methods

Method Description
EnsureKey ( ) : void
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

Method Details

AddNewRule() public method

public AddNewRule ( string name, string pageTypeLeft, string pageTypeRight, string ruleTextLeft, string ruleTextRight ) : Rule
name string
pageTypeLeft string
pageTypeRight string
ruleTextLeft string
ruleTextRight string
return Rule

DeleteAll() public method

public DeleteAll ( ) : void
return void

DeleteRule() public method

public DeleteRule ( string name ) : void
name string
return void

GetAllRules() public method

public GetAllRules ( ) : IEnumerable
return IEnumerable

GetAllRulesList() public method

public GetAllRulesList ( ) : List
return List

GetRule() public method

public GetRule ( Identity id ) : Rule
id Identity
return Rule

GetRule() public method

public GetRule ( string name ) : Rule
name string
return Rule

GetRules() public method

public GetRules ( int pageID ) : IEnumerable
pageID int
return IEnumerable

GetRules() public method

public GetRules ( string pageTypeName ) : IEnumerable
pageTypeName string
return IEnumerable

GetRulesLeft() public method

public GetRulesLeft ( int pageID ) : IEnumerable
pageID int
return IEnumerable

GetRulesRight() public method

public GetRulesRight ( int pageID ) : IEnumerable
pageID int
return IEnumerable

IsDescendent() public method

public IsDescendent ( int pageID, int startID ) : bool
pageID int
startID int
return bool

IsLeftRule() public method

public IsLeftRule ( int pageID, Rule rule ) : bool
pageID int
rule Rule
return bool

IsLeftRule() public method

public IsLeftRule ( string pageTypeName, Rule rule ) : bool
pageTypeName string
rule Rule
return bool

RuleExists() public method

public RuleExists ( Identity id ) : bool
id Identity
return bool

RuleExists() public method

public RuleExists ( string name ) : bool
name string
return bool

Save() public method

public Save ( Rule rel ) : Identity
rel Rule
return Identity

SearchRelations() public method

public SearchRelations ( Rule rule, int pageID, string searchKeyWord, PageReference hierarchyStart ) : PageDataCollection
rule Rule
pageID int
searchKeyWord string
hierarchyStart PageReference
return PageDataCollection

SearchRelations() public method

public SearchRelations ( Rule rule, int pageID, string searchKeyWord, PageReference hierarchyStart, bool isLeftRule ) : PageDataCollection
rule Rule
pageID int
searchKeyWord string
hierarchyStart PageReference
isLeftRule bool
return PageDataCollection

SearchRelations() public method

public SearchRelations ( Rule rule, int pageID, string searchKeyWord, bool isLeftRule ) : PageDataCollection
rule Rule
pageID int
searchKeyWord string
isLeftRule bool
return PageDataCollection