C# Класс BlogEngine.Core.Providers.BlogProvider

A base class for all custom providers to inherit from.
Наследование: System.Configuration.Provider.ProviderBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

DeleteBlog() публичный абстрактный Метод

Deletes a Blog from the data store specified by the provider.
public abstract DeleteBlog ( Blog blog ) : void
blog Blog /// The blog to delete. ///
Результат void

DeleteBlogRollItem() публичный абстрактный Метод

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. ///
Результат void

DeleteBlogStorageContainer() публичный абстрактный Метод

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. ///
Результат bool

DeleteCategory() публичный абстрактный Метод

Deletes a Category from the data store specified by the provider.
public abstract DeleteCategory ( Category category ) : void
category Category /// The category to delete. ///
Результат void

DeletePackage() публичный абстрактный Метод

Should delete package and remove all package files
public abstract DeletePackage ( string packageId ) : void
packageId string Package ID
Результат void

DeletePage() публичный абстрактный Метод

Deletes a Page from the data store specified by the provider.
public abstract DeletePage ( Page page ) : void
page Page /// The page to delete. ///
Результат void

DeletePost() публичный абстрактный Метод

Deletes a Post from the data store specified by the provider.
public abstract DeletePost ( Post post ) : void
post Post /// The post to delete. ///
Результат void

DeleteProfile() публичный абстрактный Метод

Deletes a Page from the data store specified by the provider.
public abstract DeleteProfile ( AuthorProfile profile ) : void
profile AuthorProfile /// The profile to delete. ///
Результат void

DeleteQuickNote() публичный абстрактный Метод

Delete quick note
public abstract DeleteQuickNote ( System.Guid noteId ) : void
noteId System.Guid Note ID
Результат void

FillBlogRoll() публичный абстрактный Метод

Retrieves all BlogRolls from the provider and returns them in a list.
public abstract FillBlogRoll ( ) : List
Результат List

FillBlogs() публичный абстрактный Метод

Retrieves all Blogs from the provider and returns them in a list.
public abstract FillBlogs ( ) : List
Результат List

FillCategories() публичный абстрактный Метод

Retrieves all Categories from the provider and returns them in a List.
public abstract FillCategories ( ) : List
Результат List

FillPackageFiles() публичный абстрактный Метод

Gets list of files for installed package
public abstract FillPackageFiles ( string packageId ) : List
packageId string Package ID
Результат List

FillPackages() публичный абстрактный Метод

Gets all installed from gallery packages
public abstract FillPackages ( ) : List
Результат List

FillPages() публичный абстрактный Метод

Retrieves all Pages from the provider and returns them in a List.
public abstract FillPages ( ) : List
Результат List

FillPosts() публичный абстрактный Метод

Retrieves all Posts from the provider and returns them in a List.
public abstract FillPosts ( ) : List
Результат List

FillProfiles() публичный абстрактный Метод

Retrieves all Pages from the provider and returns them in a List.
public abstract FillProfiles ( ) : List
Результат List

FillQuickNotes() публичный абстрактный Метод

Fill quick notes
public abstract FillQuickNotes ( string userId ) : List
userId string User ID
Результат List

FillQuickSettings() публичный абстрактный Метод

Fill quick settings
public abstract FillQuickSettings ( string userId ) : List
userId string User ID
Результат List

FillReferrers() публичный абстрактный Метод

Deletes a Referrer from the data store specified by the provider.
public abstract FillReferrers ( ) : List
Результат List

FillRights() публичный абстрактный Метод

Returns a dictionary representing rights and the roles that allow them.
public abstract FillRights ( ) : IEnumerable>.IDictionary
Результат IEnumerable>.IDictionary

InsertBlog() публичный абстрактный Метод

Inserts a new Blog into the data store specified by the provider.
public abstract InsertBlog ( Blog blog ) : void
blog Blog /// The blog. ///
Результат void

InsertBlogRollItem() публичный абстрактный Метод

Inserts a new BlogRoll into the data store specified by the provider.
public abstract InsertBlogRollItem ( BlogRollItem blogRollItem ) : void
blogRollItem BlogRollItem /// The blog Roll Item. ///
Результат void

InsertCategory() публичный абстрактный Метод

Inserts a new Category into the data store specified by the provider.
public abstract InsertCategory ( Category category ) : void
category Category /// The category. ///
Результат void

InsertPage() публичный абстрактный Метод

Inserts a new Page into the data store specified by the provider.
public abstract InsertPage ( Page page ) : void
page Page /// The page to insert. ///
Результат void

InsertPost() публичный абстрактный Метод

Inserts a new Post into the data store specified by the provider.
public abstract InsertPost ( Post post ) : void
post Post /// The post to insert. ///
Результат void

InsertProfile() публичный абстрактный Метод

Inserts a new Page into the data store specified by the provider.
public abstract InsertProfile ( AuthorProfile profile ) : void
profile AuthorProfile /// The profile to insert. ///
Результат void

InsertReferrer() публичный абстрактный Метод

Inserts a new Referrer into the data store specified by the provider.
public abstract InsertReferrer ( Referrer referrer ) : void
referrer Referrer /// The referrer to insert. ///
Результат void

LoadFromDataStore() публичный абстрактный Метод

Loads settings from data store
public abstract LoadFromDataStore ( ExtensionType extensionType, string extensionId ) : object
extensionType ExtensionType /// Extension Type ///
extensionId string /// Extensio Id ///
Результат object

LoadPingServices() публичный абстрактный Метод

Loads the ping services.
public abstract LoadPingServices ( ) : StringCollection
Результат System.Collections.Specialized.StringCollection

LoadSettings() публичный абстрактный Метод

Loads the settings from the provider.
public abstract LoadSettings ( ) : StringDictionary
Результат System.Collections.Specialized.StringDictionary

LoadStopWords() публичный абстрактный Метод

Loads the stop words used in the search feature.
public abstract LoadStopWords ( ) : StringCollection
Результат System.Collections.Specialized.StringCollection

RemoveFromDataStore() публичный абстрактный Метод

Removes settings from data store
public abstract RemoveFromDataStore ( ExtensionType extensionType, string extensionId ) : void
extensionType ExtensionType /// Extension Type ///
extensionId string /// Extension Id ///
Результат void

SavePackage() публичный абстрактный Метод

Save installed package id and version
public abstract SavePackage ( InstalledPackage package ) : void
package InstalledPackage Intalled package
Результат void

SavePackageFiles() публичный абстрактный Метод

Log of all files for installed package
public abstract SavePackageFiles ( List packageFiles ) : void
packageFiles List List of intalled package files
Результат void

SavePingServices() публичный абстрактный Метод

Saves the ping services.
public abstract SavePingServices ( StringCollection services ) : void
services System.Collections.Specialized.StringCollection /// The services. ///
Результат void

SaveQuickNote() публичный абстрактный Метод

Save quick note
public abstract SaveQuickNote ( QuickNote note ) : void
note QuickNote Quick note
Результат void

SaveQuickSetting() публичный абстрактный Метод

Save quick setting
public abstract SaveQuickSetting ( QuickSetting setting ) : void
setting QuickSetting Quick setting
Результат void

SaveRights() публичный абстрактный Метод

Saves all of the Rights and the roles that coorespond with them.
public abstract SaveRights ( IEnumerable rights ) : void
rights IEnumerable
Результат void

SaveSettings() публичный абстрактный Метод

Saves the settings to the provider.
public abstract SaveSettings ( StringDictionary settings ) : void
settings System.Collections.Specialized.StringDictionary /// The settings. ///
Результат void

SaveToDataStore() публичный абстрактный Метод

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 ///
Результат void

SelectBlog() публичный абстрактный Метод

Retrieves a Blog from the provider based on the specified id.
public abstract SelectBlog ( System.Guid id ) : Blog
id System.Guid The Blog Id.
Результат Blog

SelectBlogRollItem() публичный абстрактный Метод

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.
Результат BlogRollItem

SelectCategory() публичный абстрактный Метод

Retrieves a Category from the provider based on the specified id.
public abstract SelectCategory ( System.Guid id ) : Category
id System.Guid The Category id.
Результат Category

SelectPage() публичный абстрактный Метод

Retrieves a Page from the provider based on the specified id.
public abstract SelectPage ( System.Guid id ) : Page
id System.Guid The Page id.
Результат Page

SelectPost() публичный абстрактный Метод

Retrieves a Post from the provider based on the specified id.
public abstract SelectPost ( System.Guid id ) : Post
id System.Guid The Post id.
Результат Post

SelectProfile() публичный абстрактный Метод

Retrieves a Page from the provider based on the specified id.
public abstract SelectProfile ( string id ) : AuthorProfile
id string The AuthorProfile id.
Результат AuthorProfile

SelectReferrer() публичный абстрактный Метод

Retrieves a Referrer from the provider based on the specified id.
public abstract SelectReferrer ( System.Guid id ) : Referrer
id System.Guid The Referrer Id.
Результат Referrer

SetupBlogFromExistingBlog() публичный абстрактный Метод

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.
Результат bool

UpdateBlog() публичный абстрактный Метод

Updates an existing Blog in the data store specified by the provider.
public abstract UpdateBlog ( Blog blog ) : void
blog Blog /// The blog to update. ///
Результат void

UpdateBlogRollItem() публичный абстрактный Метод

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. ///
Результат void

UpdateCategory() публичный абстрактный Метод

Updates an existing Category in the data store specified by the provider.
public abstract UpdateCategory ( Category category ) : void
category Category /// The category to update. ///
Результат void

UpdatePage() публичный абстрактный Метод

Updates an existing Page in the data store specified by the provider.
public abstract UpdatePage ( Page page ) : void
page Page /// The page to update. ///
Результат void

UpdatePost() публичный абстрактный Метод

Updates an existing Post in the data store specified by the provider.
public abstract UpdatePost ( Post post ) : void
post Post /// The post to update. ///
Результат void

UpdateProfile() публичный абстрактный Метод

Updates an existing Page in the data store specified by the provider.
public abstract UpdateProfile ( AuthorProfile profile ) : void
profile AuthorProfile /// The profile to update. ///
Результат void

UpdateReferrer() публичный абстрактный Метод

Updates an existing Referrer in the data store specified by the provider.
public abstract UpdateReferrer ( Referrer referrer ) : void
referrer Referrer /// The referrer to update. ///
Результат void