C# Class Tikal.MongoDBBlogProvider

Mostra file Open project: tikalk/fuse.dotnet.mongodb-blogengine Class Usage Examples

Private Properties

Property Type Description
DocumentToPage BlogEngine.Core.Page
PageToDocument MongoDB.Driver.Document
WriteToFile void

Public Methods

Method Description
DeleteBlogRollItem ( BlogEngine blogRollItem ) : void
DeleteCategory ( Category category ) : void

Deletes a Category

DeletePage ( BlogEngine page ) : void
DeletePost ( Post post ) : void

Deletes a post from the data store.

DeleteProfile ( AuthorProfile profile ) : void
FillBlogRoll ( ) : List
FillCategories ( ) : List

Fills an unsorted list of categories.

FillPages ( ) : List
FillPosts ( ) : List

Retrieves all posts from the data store

FillProfiles ( ) : List
FillReferrers ( ) : List
InsertBlogRollItem ( BlogEngine blogRollItem ) : void
InsertCategory ( Category category ) : void

Inserts a Category

InsertPage ( BlogEngine page ) : void
InsertPost ( Post post ) : void

Inserts a new Post to the data store.

InsertProfile ( AuthorProfile profile ) : void
InsertReferrer ( BlogEngine referrer ) : void
LoadFromDataStore ( BlogEngine exType, string exId ) : object
LoadPingServices ( ) : System.Collections.Specialized.StringCollection
LoadSettings ( ) : StringDictionary
LoadStopWords ( ) : System.Collections.Specialized.StringCollection
RemoveFromDataStore ( BlogEngine exType, string exId ) : void
SavePingServices ( System services ) : void
SaveSettings ( System settings ) : void
SaveToDataStore ( BlogEngine exType, string exId, object settings ) : void
SelectBlogRollItem ( System.Guid Id ) : BlogEngine.Core.BlogRollItem
SelectCategory ( System.Guid id ) : Category

Gets a Category based on a Guid

SelectPage ( System.Guid id ) : BlogEngine.Core.Page
SelectPost ( System.Guid id ) : Post

Retrieves a post based on the specified Id.

SelectProfile ( string id ) : AuthorProfile
SelectReferrer ( System.Guid Id ) : BlogEngine.Core.Referrer
StorageLocation ( ) : string
UpdateBlogRollItem ( BlogEngine blogRollItem ) : void
UpdateCategory ( Category category ) : void

Updates a Category

UpdatePage ( BlogEngine page ) : void
UpdatePost ( Post post ) : void

Updates a Post.

UpdateProfile ( AuthorProfile profile ) : void
UpdateReferrer ( BlogEngine referrer ) : void

Private Methods

Method Description
DocumentToPage ( Document doc ) : BlogEngine.Core.Page
PageToDocument ( Page page ) : Document
WriteToFile ( ) : void

Saves the Categories to disk.

Method Details

DeleteBlogRollItem() public method

public DeleteBlogRollItem ( BlogEngine blogRollItem ) : void
blogRollItem BlogEngine
return void

DeleteCategory() public method

Deletes a Category
public DeleteCategory ( Category category ) : void
category Category Must be a valid Category object.
return void

DeletePage() public method

public DeletePage ( BlogEngine page ) : void
page BlogEngine
return void

DeletePost() public method

Deletes a post from the data store.
public DeletePost ( Post post ) : void
post Post
return void

DeleteProfile() public method

public DeleteProfile ( AuthorProfile profile ) : void
profile AuthorProfile
return void

FillBlogRoll() public method

public FillBlogRoll ( ) : List
return List

FillCategories() public method

Fills an unsorted list of categories.
public FillCategories ( ) : List
return List

FillPages() public method

public FillPages ( ) : List
return List

FillPosts() public method

Retrieves all posts from the data store
public FillPosts ( ) : List
return List

FillProfiles() public method

public FillProfiles ( ) : List
return List

FillReferrers() public method

public FillReferrers ( ) : List
return List

InsertBlogRollItem() public method

public InsertBlogRollItem ( BlogEngine blogRollItem ) : void
blogRollItem BlogEngine
return void

InsertCategory() public method

Inserts a Category
public InsertCategory ( Category category ) : void
category Category Must be a valid Category object.
return void

InsertPage() public method

public InsertPage ( BlogEngine page ) : void
page BlogEngine
return void

InsertPost() public method

Inserts a new Post to the data store.
public InsertPost ( Post post ) : void
post Post
return void

InsertProfile() public method

public InsertProfile ( AuthorProfile profile ) : void
profile AuthorProfile
return void

InsertReferrer() public method

public InsertReferrer ( BlogEngine referrer ) : void
referrer BlogEngine
return void

LoadFromDataStore() public method

public LoadFromDataStore ( BlogEngine exType, string exId ) : object
exType BlogEngine
exId string
return object

LoadPingServices() public method

public LoadPingServices ( ) : System.Collections.Specialized.StringCollection
return System.Collections.Specialized.StringCollection

LoadSettings() public method

public LoadSettings ( ) : StringDictionary
return System.Collections.Specialized.StringDictionary

LoadStopWords() public method

public LoadStopWords ( ) : System.Collections.Specialized.StringCollection
return System.Collections.Specialized.StringCollection

RemoveFromDataStore() public method

public RemoveFromDataStore ( BlogEngine exType, string exId ) : void
exType BlogEngine
exId string
return void

SavePingServices() public method

public SavePingServices ( System services ) : void
services System
return void

SaveSettings() public method

public SaveSettings ( System settings ) : void
settings System
return void

SaveToDataStore() public method

public SaveToDataStore ( BlogEngine exType, string exId, object settings ) : void
exType BlogEngine
exId string
settings object
return void

SelectBlogRollItem() public method

public SelectBlogRollItem ( System.Guid Id ) : BlogEngine.Core.BlogRollItem
Id System.Guid
return BlogEngine.Core.BlogRollItem

SelectCategory() public method

Gets a Category based on a Guid
public SelectCategory ( System.Guid id ) : Category
id System.Guid The category's Guid.
return Category

SelectPage() public method

public SelectPage ( System.Guid id ) : BlogEngine.Core.Page
id System.Guid
return BlogEngine.Core.Page

SelectPost() public method

Retrieves a post based on the specified Id.
public SelectPost ( System.Guid id ) : Post
id System.Guid
return Post

SelectProfile() public method

public SelectProfile ( string id ) : AuthorProfile
id string
return AuthorProfile

SelectReferrer() public method

public SelectReferrer ( System.Guid Id ) : BlogEngine.Core.Referrer
Id System.Guid
return BlogEngine.Core.Referrer

StorageLocation() public method

public StorageLocation ( ) : string
return string

UpdateBlogRollItem() public method

public UpdateBlogRollItem ( BlogEngine blogRollItem ) : void
blogRollItem BlogEngine
return void

UpdateCategory() public method

Updates a Category
public UpdateCategory ( Category category ) : void
category Category Must be a valid Category object.
return void

UpdatePage() public method

public UpdatePage ( BlogEngine page ) : void
page BlogEngine
return void

UpdatePost() public method

Updates a Post.
public UpdatePost ( Post post ) : void
post Post
return void

UpdateProfile() public method

public UpdateProfile ( AuthorProfile profile ) : void
profile AuthorProfile
return void

UpdateReferrer() public method

public UpdateReferrer ( BlogEngine referrer ) : void
referrer BlogEngine
return void