C# Class BlogEngine.Core.Providers.XmlBlogProvider

A storage provider for BlogEngine that uses XML files. To build another provider, you can just copy and modify this one. Then add it to the web.config's BlogEngine section.
Inheritance: BlogProvider
Show file Open project: rasmuskl/ReSharperCourse

Public Methods

Method Description
DeletePackage ( string packageId ) : void

Should delete package and remove all package files

DeletePage ( Page page ) : void

Deletes a Page from the data store specified by the provider.

FillPackageFiles ( string packageId ) : List

Gets list of files for installed package

FillPackages ( ) : List

Gets all installed from gallery packages

FillPages ( ) : List

Retrieves all pages from the data store

InsertPage ( Page page ) : void

Inserts a new Page into the data store specified by the provider.

SavePackage ( InstalledPackage package ) : void

Log of all installed packages

SavePackageFiles ( List packageFiles ) : void

Log of all files for installed package

SelectPage ( System.Guid id ) : Page

Retrieves a Page from the provider based on the specified id.

UpdatePage ( Page page ) : void

Updates an existing Page in the data store specified by the provider.

Private Methods

Method Description
AllInstalledFiles ( string pkgId ) : IEnumerable

Method Details

DeletePackage() public method

Should delete package and remove all package files
public DeletePackage ( string packageId ) : void
packageId string Package ID
return void

DeletePage() public method

Deletes a Page from the data store specified by the provider.
public DeletePage ( Page page ) : void
page Page The page to delete.
return void

FillPackageFiles() public method

Gets list of files for installed package
public FillPackageFiles ( string packageId ) : List
packageId string Package ID
return List

FillPackages() public method

Gets all installed from gallery packages
public FillPackages ( ) : List
return List

FillPages() public method

Retrieves all pages from the data store
public FillPages ( ) : List
return List

InsertPage() public method

Inserts a new Page into the data store specified by the provider.
public InsertPage ( Page page ) : void
page Page The page to insert.
return void

SavePackage() public method

Log of all installed packages
public SavePackage ( InstalledPackage package ) : void
package InstalledPackage Intalled package
return void

SavePackageFiles() public method

Log of all files for installed package
public SavePackageFiles ( List packageFiles ) : void
packageFiles List List of intalled package files
return void

SelectPage() public method

Retrieves a Page from the provider based on the specified id.
public SelectPage ( System.Guid id ) : Page
id System.Guid The Page id.
return Page

UpdatePage() public method

Updates an existing Page in the data store specified by the provider.
public UpdatePage ( Page page ) : void
page Page The page to update.
return void