C# Class EPiCode.Relations.Core.RelationProviders.RelationProviderBase

Inheritance: System.Configuration.Provider.ProviderBase
Afficher le fichier Open project: BVNetwork/Relations Class Usage Examples

Protected Properties

Свойство Type Description
_description string
_name string

Méthodes publiques

Méthode Description
AddRelation ( string rule, int pageLeft, int pageRight ) : void

Create a new relation between two pages in EPi

DeleteAll ( ) : void

Delete all rules

DeleteAll ( string rule ) : void

Delete all relations of a given rule

DeleteRelation ( Relation relationToDelete ) : void

Delete single relation

GetAllRelations ( string rule ) : List

Get all relations of a given rule

GetRelation ( Identity id ) : Relation

Get single relation

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

Get single relation

GetRelationPagesForPage ( int pageID, Rule rule ) : List

Get related page IDs for page

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

Get a list of all related pages through one direction of a given rule

GetRelationsCount ( string rule ) : int

Get number of relations for a rule

GetRelationsForPage ( int pageID ) : List

Get relations for given page

GetRelationsForPage ( int pageID, Rule rule ) : List

Get relations for given page

GetRelationsForPage ( int pageID, Rule rule, Rule dir ) : List

Get all page relations for the rule through a specific direction

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

Get a list of all related pages through one direction of two given rules

RaiseOnAddedRelation ( RelationEventArgs e ) : void
RaiseOnAddingRelation ( RelationEventArgs e ) : void
RaiseOnDeletedRelation ( RelationEventArgs e ) : void
RaiseOnDeletingRelation ( RelationEventArgs e ) : void
RelationExists ( string rule, int pageLeft, int pageRight ) : bool

Check if a relation already exists

Save ( Relation relation ) : void

Save relation

Method Details

AddRelation() public abstract méthode

Create a new relation between two pages in EPi
public abstract AddRelation ( string rule, int pageLeft, int pageRight ) : void
rule string Rule to use for new relation
pageLeft int Left side page
pageRight int Right side page
Résultat void

DeleteAll() public abstract méthode

Delete all rules
public abstract DeleteAll ( ) : void
Résultat void

DeleteAll() public abstract méthode

Delete all relations of a given rule
public abstract DeleteAll ( string rule ) : void
rule string
Résultat void

DeleteRelation() public abstract méthode

Delete single relation
public abstract DeleteRelation ( Relation relationToDelete ) : void
relationToDelete Relation Relation to be deleted
Résultat void

GetAllRelations() public abstract méthode

Get all relations of a given rule
public abstract GetAllRelations ( string rule ) : List
rule string Name of rule
Résultat List

GetRelation() public abstract méthode

Get single relation
public abstract GetRelation ( Identity id ) : Relation
id Identity Relation ID
Résultat Relation

GetRelation() public abstract méthode

Get single relation
public abstract GetRelation ( string rule, int pageLeft, int pageRight ) : Relation
rule string Rule
pageLeft int Left page
pageRight int Right page
Résultat Relation

GetRelationPagesForPage() public abstract méthode

Get related page IDs for page
public abstract GetRelationPagesForPage ( int pageID, Rule rule ) : List
pageID int Page ID to get relations from
rule Rule Rule to get relations through
Résultat List

GetRelationPagesForPage() public abstract méthode

Get a list of all related pages through one direction of a given rule
public abstract GetRelationPagesForPage ( int pageID, Rule rule, Rule direction ) : List
pageID int Page ID to get relations from
rule Rule Rule to get relations through
direction Rule Direction to search through
Résultat List

GetRelationsCount() public abstract méthode

Get number of relations for a rule
public abstract GetRelationsCount ( string rule ) : int
rule string Rule to get number of relations of
Résultat int

GetRelationsForPage() public abstract méthode

Get relations for given page
public abstract GetRelationsForPage ( int pageID ) : List
pageID int Page ID to fetch relations from
Résultat List

GetRelationsForPage() public abstract méthode

Get relations for given page
public abstract GetRelationsForPage ( int pageID, Rule rule ) : List
pageID int Page ID to fetch relations from
rule Rule Relation rule to use
Résultat List

GetRelationsForPage() public abstract méthode

Get all page relations for the rule through a specific direction
public abstract GetRelationsForPage ( int pageID, Rule rule, Rule dir ) : List
pageID int Page ID to get relations from
rule Rule Rule to get relations through
dir Rule
Résultat List

GetRelationsForPageTwoHop() public abstract méthode

Get a list of all related pages through one direction of two given rules
public abstract GetRelationsForPageTwoHop ( int pageID, Rule firstRule, Rule firstDirection, Rule secondRule, Rule secondDirection ) : List
pageID int
firstRule Rule
firstDirection Rule
secondRule Rule
secondDirection Rule
Résultat List

RaiseOnAddedRelation() public méthode

public RaiseOnAddedRelation ( RelationEventArgs e ) : void
e RelationEventArgs
Résultat void

RaiseOnAddingRelation() public méthode

public RaiseOnAddingRelation ( RelationEventArgs e ) : void
e RelationEventArgs
Résultat void

RaiseOnDeletedRelation() public méthode

public RaiseOnDeletedRelation ( RelationEventArgs e ) : void
e RelationEventArgs
Résultat void

RaiseOnDeletingRelation() public méthode

public RaiseOnDeletingRelation ( RelationEventArgs e ) : void
e RelationEventArgs
Résultat void

RelationExists() public abstract méthode

Check if a relation already exists
public abstract RelationExists ( string rule, int pageLeft, int pageRight ) : bool
rule string Rule to check
pageLeft int Left page to check
pageRight int Right page to check
Résultat bool

Save() public abstract méthode

Save relation
public abstract Save ( Relation relation ) : void
relation Relation Relation to be saved
Résultat void

Property Details

_description protected_oe property

protected string _description
Résultat string

_name protected_oe property

protected string _name
Résultat string