C# Class BlogEngine.Core.Providers.BlogProvider

A base class for all custom providers to inherit from.
Inheritance: System.Configuration.Provider.ProviderBase
Show file Open project: rasmuskl/ReSharperCourse Class Usage Examples

Public Methods

Method Description
DeleteBlog ( Blog blog ) : void

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

DeleteBlogRollItem ( BlogRollItem blogRollItem ) : void

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

DeleteBlogStorageContainer ( Blog blog ) : bool

Deletes a Blog's storage container from the data store specified by the provider.

DeleteCategory ( Category category ) : void

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

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.

DeletePost ( Post post ) : void

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

DeleteProfile ( AuthorProfile profile ) : void

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

DeleteQuickNote ( System.Guid noteId ) : void

Delete quick note

FillBlogRoll ( ) : List

Retrieves all BlogRolls from the provider and returns them in a list.

FillBlogs ( ) : List

Retrieves all Blogs from the provider and returns them in a list.

FillCategories ( ) : List

Retrieves all Categories from the provider and returns them in a List.

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 provider and returns them in a List.

FillPosts ( ) : List

Retrieves all Posts from the provider and returns them in a List.

FillProfiles ( ) : List

Retrieves all Pages from the provider and returns them in a List.

FillQuickNotes ( string userId ) : List

Fill quick notes

FillQuickSettings ( string userId ) : List

Fill quick settings

FillReferrers ( ) : List

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

FillRights ( ) : IEnumerable>.IDictionary

Returns a dictionary representing rights and the roles that allow them.

InsertBlog ( Blog blog ) : void

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

InsertBlogRollItem ( BlogRollItem blogRollItem ) : void

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

InsertCategory ( Category category ) : void

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

InsertPage ( Page page ) : void

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

InsertPost ( Post post ) : void

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

InsertProfile ( AuthorProfile profile ) : void

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

InsertReferrer ( Referrer referrer ) : void

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

LoadFromDataStore ( ExtensionType extensionType, string extensionId ) : object

Loads settings from data store

LoadPingServices ( ) : StringCollection

Loads the ping services.

LoadSettings ( ) : StringDictionary

Loads the settings from the provider.

LoadStopWords ( ) : StringCollection

Loads the stop words used in the search feature.

RemoveFromDataStore ( ExtensionType extensionType, string extensionId ) : void

Removes settings from data store

SavePackage ( InstalledPackage package ) : void

Save installed package id and version

SavePackageFiles ( List packageFiles ) : void

Log of all files for installed package

SavePingServices ( StringCollection services ) : void

Saves the ping services.

SaveQuickNote ( QuickNote note ) : void

Save quick note

SaveQuickSetting ( QuickSetting setting ) : void

Save quick setting

SaveRights ( IEnumerable rights ) : void

Saves all of the Rights and the roles that coorespond with them.

SaveSettings ( StringDictionary settings ) : void

Saves the settings to the provider.

SaveToDataStore ( ExtensionType extensionType, string extensionId, object settings ) : void

Saves settings to data store

SelectBlog ( System.Guid id ) : Blog

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

SelectBlogRollItem ( System.Guid id ) : BlogRollItem

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

SelectCategory ( System.Guid id ) : Category

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

SelectPage ( System.Guid id ) : Page

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

SelectPost ( System.Guid id ) : Post

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

SelectProfile ( string id ) : AuthorProfile

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

SelectReferrer ( System.Guid id ) : Referrer

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

SetupBlogFromExistingBlog ( Blog existingBlog, Blog newBlog ) : bool

Sets up the required storage files/tables for a new Blog instance, from an existing blog instance.

UpdateBlog ( Blog blog ) : void

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

UpdateBlogRollItem ( BlogRollItem blogRollItem ) : void

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

UpdateCategory ( Category category ) : void

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

UpdatePage ( Page page ) : void

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

UpdatePost ( Post post ) : void

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

UpdateProfile ( AuthorProfile profile ) : void

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

UpdateReferrer ( Referrer referrer ) : void

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

Method Details

DeleteBlog() public abstract method

Deletes a Blog from the data store specified by the provider.
public abstract DeleteBlog ( Blog blog ) : void
blog Blog /// The blog to delete. ///
return void

DeleteBlogRollItem() public abstract method

Deletes a BlogRoll from the data store specified by the provider.
public abstract DeleteBlogRollItem ( BlogRollItem blogRollItem ) : void
blogRollItem BlogRollItem /// The blog Roll Item to delete. ///
return void

DeleteBlogStorageContainer() public abstract method

Deletes a Blog's storage container from the data store specified by the provider.
public abstract DeleteBlogStorageContainer ( Blog blog ) : bool
blog Blog /// The blog to delete the storage container of. ///
return bool

DeleteCategory() public abstract method

Deletes a Category from the data store specified by the provider.
public abstract DeleteCategory ( Category category ) : void
category Category /// The category to delete. ///
return void

DeletePackage() public abstract method

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

DeletePage() public abstract method

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

DeletePost() public abstract method

Deletes a Post from the data store specified by the provider.
public abstract DeletePost ( Post post ) : void
post Post /// The post to delete. ///
return void

DeleteProfile() public abstract method

Deletes a Page from the data store specified by the provider.
public abstract DeleteProfile ( AuthorProfile profile ) : void
profile AuthorProfile /// The profile to delete. ///
return void

DeleteQuickNote() public abstract method

Delete quick note
public abstract DeleteQuickNote ( System.Guid noteId ) : void
noteId System.Guid Note ID
return void

FillBlogRoll() public abstract method

Retrieves all BlogRolls from the provider and returns them in a list.
public abstract FillBlogRoll ( ) : List
return List

FillBlogs() public abstract method

Retrieves all Blogs from the provider and returns them in a list.
public abstract FillBlogs ( ) : List
return List

FillCategories() public abstract method

Retrieves all Categories from the provider and returns them in a List.
public abstract FillCategories ( ) : List
return List

FillPackageFiles() public abstract method

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

FillPackages() public abstract method

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

FillPages() public abstract method

Retrieves all Pages from the provider and returns them in a List.
public abstract FillPages ( ) : List
return List

FillPosts() public abstract method

Retrieves all Posts from the provider and returns them in a List.
public abstract FillPosts ( ) : List
return List

FillProfiles() public abstract method

Retrieves all Pages from the provider and returns them in a List.
public abstract FillProfiles ( ) : List
return List

FillQuickNotes() public abstract method

Fill quick notes
public abstract FillQuickNotes ( string userId ) : List
userId string User ID
return List

FillQuickSettings() public abstract method

Fill quick settings
public abstract FillQuickSettings ( string userId ) : List
userId string User ID
return List

FillReferrers() public abstract method

Deletes a Referrer from the data store specified by the provider.
public abstract FillReferrers ( ) : List
return List

FillRights() public abstract method

Returns a dictionary representing rights and the roles that allow them.
public abstract FillRights ( ) : IEnumerable>.IDictionary
return IEnumerable>.IDictionary

InsertBlog() public abstract method

Inserts a new Blog into the data store specified by the provider.
public abstract InsertBlog ( Blog blog ) : void
blog Blog /// The blog. ///
return void

InsertBlogRollItem() public abstract method

Inserts a new BlogRoll into the data store specified by the provider.
public abstract InsertBlogRollItem ( BlogRollItem blogRollItem ) : void
blogRollItem BlogRollItem /// The blog Roll Item. ///
return void

InsertCategory() public abstract method

Inserts a new Category into the data store specified by the provider.
public abstract InsertCategory ( Category category ) : void
category Category /// The category. ///
return void

InsertPage() public abstract method

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

InsertPost() public abstract method

Inserts a new Post into the data store specified by the provider.
public abstract InsertPost ( Post post ) : void
post Post /// The post to insert. ///
return void

InsertProfile() public abstract method

Inserts a new Page into the data store specified by the provider.
public abstract InsertProfile ( AuthorProfile profile ) : void
profile AuthorProfile /// The profile to insert. ///
return void

InsertReferrer() public abstract method

Inserts a new Referrer into the data store specified by the provider.
public abstract InsertReferrer ( Referrer referrer ) : void
referrer Referrer /// The referrer to insert. ///
return void

LoadFromDataStore() public abstract method

Loads settings from data store
public abstract LoadFromDataStore ( ExtensionType extensionType, string extensionId ) : object
extensionType ExtensionType /// Extension Type ///
extensionId string /// Extensio Id ///
return object

LoadPingServices() public abstract method

Loads the ping services.
public abstract LoadPingServices ( ) : StringCollection
return System.Collections.Specialized.StringCollection

LoadSettings() public abstract method

Loads the settings from the provider.
public abstract LoadSettings ( ) : StringDictionary
return System.Collections.Specialized.StringDictionary

LoadStopWords() public abstract method

Loads the stop words used in the search feature.
public abstract LoadStopWords ( ) : StringCollection
return System.Collections.Specialized.StringCollection

RemoveFromDataStore() public abstract method

Removes settings from data store
public abstract RemoveFromDataStore ( ExtensionType extensionType, string extensionId ) : void
extensionType ExtensionType /// Extension Type ///
extensionId string /// Extension Id ///
return void

SavePackage() public abstract method

Save installed package id and version
public abstract SavePackage ( InstalledPackage package ) : void
package InstalledPackage Intalled package
return void

SavePackageFiles() public abstract method

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

SavePingServices() public abstract method

Saves the ping services.
public abstract SavePingServices ( StringCollection services ) : void
services System.Collections.Specialized.StringCollection /// The services. ///
return void

SaveQuickNote() public abstract method

Save quick note
public abstract SaveQuickNote ( QuickNote note ) : void
note QuickNote Quick note
return void

SaveQuickSetting() public abstract method

Save quick setting
public abstract SaveQuickSetting ( QuickSetting setting ) : void
setting QuickSetting Quick setting
return void

SaveRights() public abstract method

Saves all of the Rights and the roles that coorespond with them.
public abstract SaveRights ( IEnumerable rights ) : void
rights IEnumerable
return void

SaveSettings() public abstract method

Saves the settings to the provider.
public abstract SaveSettings ( StringDictionary settings ) : void
settings System.Collections.Specialized.StringDictionary /// The settings. ///
return void

SaveToDataStore() public abstract method

Saves settings to data store
public abstract SaveToDataStore ( ExtensionType extensionType, string extensionId, object settings ) : void
extensionType ExtensionType /// Extension Type ///
extensionId string /// Extension Id ///
settings object /// Settings object ///
return void

SelectBlog() public abstract method

Retrieves a Blog from the provider based on the specified id.
public abstract SelectBlog ( System.Guid id ) : Blog
id System.Guid The Blog Id.
return Blog

SelectBlogRollItem() public abstract method

Retrieves a BlogRoll from the provider based on the specified id.
public abstract SelectBlogRollItem ( System.Guid id ) : BlogRollItem
id System.Guid The Blog Roll Item Id.
return BlogRollItem

SelectCategory() public abstract method

Retrieves a Category from the provider based on the specified id.
public abstract SelectCategory ( System.Guid id ) : Category
id System.Guid The Category id.
return Category

SelectPage() public abstract method

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

SelectPost() public abstract method

Retrieves a Post from the provider based on the specified id.
public abstract SelectPost ( System.Guid id ) : Post
id System.Guid The Post id.
return Post

SelectProfile() public abstract method

Retrieves a Page from the provider based on the specified id.
public abstract SelectProfile ( string id ) : AuthorProfile
id string The AuthorProfile id.
return AuthorProfile

SelectReferrer() public abstract method

Retrieves a Referrer from the provider based on the specified id.
public abstract SelectReferrer ( System.Guid id ) : Referrer
id System.Guid The Referrer Id.
return Referrer

SetupBlogFromExistingBlog() public abstract method

Sets up the required storage files/tables for a new Blog instance, from an existing blog instance.
public abstract SetupBlogFromExistingBlog ( Blog existingBlog, Blog newBlog ) : bool
existingBlog Blog The existing blog instance to base the new blog instance off of.
newBlog Blog The new blog instance.
return bool

UpdateBlog() public abstract method

Updates an existing Blog in the data store specified by the provider.
public abstract UpdateBlog ( Blog blog ) : void
blog Blog /// The blog to update. ///
return void

UpdateBlogRollItem() public abstract method

Updates an existing BlogRollItem in the data store specified by the provider.
public abstract UpdateBlogRollItem ( BlogRollItem blogRollItem ) : void
blogRollItem BlogRollItem /// The blogroll item to update. ///
return void

UpdateCategory() public abstract method

Updates an existing Category in the data store specified by the provider.
public abstract UpdateCategory ( Category category ) : void
category Category /// The category to update. ///
return void

UpdatePage() public abstract method

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

UpdatePost() public abstract method

Updates an existing Post in the data store specified by the provider.
public abstract UpdatePost ( Post post ) : void
post Post /// The post to update. ///
return void

UpdateProfile() public abstract method

Updates an existing Page in the data store specified by the provider.
public abstract UpdateProfile ( AuthorProfile profile ) : void
profile AuthorProfile /// The profile to update. ///
return void

UpdateReferrer() public abstract method

Updates an existing Referrer in the data store specified by the provider.
public abstract UpdateReferrer ( Referrer referrer ) : void
referrer Referrer /// The referrer to update. ///
return void