C# Class BlogEngine.Core.Providers.BlogProvider

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

Méthodes publiques

Méthode 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 méthode

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

DeleteBlogRollItem() public abstract méthode

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. ///
Résultat void

DeleteBlogStorageContainer() public abstract méthode

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. ///
Résultat bool

DeleteCategory() public abstract méthode

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

DeletePackage() public abstract méthode

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

DeletePage() public abstract méthode

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

DeletePost() public abstract méthode

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

DeleteProfile() public abstract méthode

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

DeleteQuickNote() public abstract méthode

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

FillBlogRoll() public abstract méthode

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

FillBlogs() public abstract méthode

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

FillCategories() public abstract méthode

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

FillPackageFiles() public abstract méthode

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

FillPackages() public abstract méthode

Gets all installed from gallery packages
public abstract FillPackages ( ) : List
Résultat List

FillPages() public abstract méthode

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

FillPosts() public abstract méthode

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

FillProfiles() public abstract méthode

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

FillQuickNotes() public abstract méthode

Fill quick notes
public abstract FillQuickNotes ( string userId ) : List
userId string User ID
Résultat List

FillQuickSettings() public abstract méthode

Fill quick settings
public abstract FillQuickSettings ( string userId ) : List
userId string User ID
Résultat List

FillReferrers() public abstract méthode

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

FillRights() public abstract méthode

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

InsertBlog() public abstract méthode

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

InsertBlogRollItem() public abstract méthode

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

InsertCategory() public abstract méthode

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

InsertPage() public abstract méthode

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

InsertPost() public abstract méthode

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

InsertProfile() public abstract méthode

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

InsertReferrer() public abstract méthode

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

LoadFromDataStore() public abstract méthode

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

LoadPingServices() public abstract méthode

Loads the ping services.
public abstract LoadPingServices ( ) : StringCollection
Résultat System.Collections.Specialized.StringCollection

LoadSettings() public abstract méthode

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

LoadStopWords() public abstract méthode

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

RemoveFromDataStore() public abstract méthode

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

SavePackage() public abstract méthode

Save installed package id and version
public abstract SavePackage ( InstalledPackage package ) : void
package InstalledPackage Intalled package
Résultat void

SavePackageFiles() public abstract méthode

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

SavePingServices() public abstract méthode

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

SaveQuickNote() public abstract méthode

Save quick note
public abstract SaveQuickNote ( QuickNote note ) : void
note QuickNote Quick note
Résultat void

SaveQuickSetting() public abstract méthode

Save quick setting
public abstract SaveQuickSetting ( QuickSetting setting ) : void
setting QuickSetting Quick setting
Résultat void

SaveRights() public abstract méthode

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

SaveSettings() public abstract méthode

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

SaveToDataStore() public abstract méthode

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 ///
Résultat void

SelectBlog() public abstract méthode

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

SelectBlogRollItem() public abstract méthode

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.
Résultat BlogRollItem

SelectCategory() public abstract méthode

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

SelectPage() public abstract méthode

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

SelectPost() public abstract méthode

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

SelectProfile() public abstract méthode

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

SelectReferrer() public abstract méthode

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

SetupBlogFromExistingBlog() public abstract méthode

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.
Résultat bool

UpdateBlog() public abstract méthode

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

UpdateBlogRollItem() public abstract méthode

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. ///
Résultat void

UpdateCategory() public abstract méthode

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

UpdatePage() public abstract méthode

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

UpdatePost() public abstract méthode

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

UpdateProfile() public abstract méthode

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

UpdateReferrer() public abstract méthode

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