C# Класс Tikal.MongoDBBlogProvider

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
DocumentToPage BlogEngine.Core.Page
PageToDocument MongoDB.Driver.Document
WriteToFile void

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

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

Приватные методы

Метод Описание
DocumentToPage ( Document doc ) : BlogEngine.Core.Page
PageToDocument ( Page page ) : Document
WriteToFile ( ) : void

Saves the Categories to disk.

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

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

public DeleteBlogRollItem ( BlogEngine blogRollItem ) : void
blogRollItem BlogEngine
Результат void

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

Deletes a Category
public DeleteCategory ( Category category ) : void
category Category Must be a valid Category object.
Результат void

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

public DeletePage ( BlogEngine page ) : void
page BlogEngine
Результат void

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

Deletes a post from the data store.
public DeletePost ( Post post ) : void
post Post
Результат void

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

public DeleteProfile ( AuthorProfile profile ) : void
profile AuthorProfile
Результат void

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

public FillBlogRoll ( ) : List
Результат List

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

Fills an unsorted list of categories.
public FillCategories ( ) : List
Результат List

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

public FillPages ( ) : List
Результат List

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

Retrieves all posts from the data store
public FillPosts ( ) : List
Результат List

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

public FillProfiles ( ) : List
Результат List

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

public FillReferrers ( ) : List
Результат List

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

public InsertBlogRollItem ( BlogEngine blogRollItem ) : void
blogRollItem BlogEngine
Результат void

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

Inserts a Category
public InsertCategory ( Category category ) : void
category Category Must be a valid Category object.
Результат void

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

public InsertPage ( BlogEngine page ) : void
page BlogEngine
Результат void

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

Inserts a new Post to the data store.
public InsertPost ( Post post ) : void
post Post
Результат void

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

public InsertProfile ( AuthorProfile profile ) : void
profile AuthorProfile
Результат void

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

public InsertReferrer ( BlogEngine referrer ) : void
referrer BlogEngine
Результат void

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

public LoadFromDataStore ( BlogEngine exType, string exId ) : object
exType BlogEngine
exId string
Результат object

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

public LoadPingServices ( ) : System.Collections.Specialized.StringCollection
Результат System.Collections.Specialized.StringCollection

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

public LoadSettings ( ) : StringDictionary
Результат System.Collections.Specialized.StringDictionary

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

public LoadStopWords ( ) : System.Collections.Specialized.StringCollection
Результат System.Collections.Specialized.StringCollection

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

public RemoveFromDataStore ( BlogEngine exType, string exId ) : void
exType BlogEngine
exId string
Результат void

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

public SavePingServices ( System services ) : void
services System
Результат void

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

public SaveSettings ( System settings ) : void
settings System
Результат void

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

public SaveToDataStore ( BlogEngine exType, string exId, object settings ) : void
exType BlogEngine
exId string
settings object
Результат void

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

public SelectBlogRollItem ( System.Guid Id ) : BlogEngine.Core.BlogRollItem
Id System.Guid
Результат BlogEngine.Core.BlogRollItem

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

Gets a Category based on a Guid
public SelectCategory ( System.Guid id ) : Category
id System.Guid The category's Guid.
Результат Category

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

public SelectPage ( System.Guid id ) : BlogEngine.Core.Page
id System.Guid
Результат BlogEngine.Core.Page

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

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

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

public SelectProfile ( string id ) : AuthorProfile
id string
Результат AuthorProfile

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

public SelectReferrer ( System.Guid Id ) : BlogEngine.Core.Referrer
Id System.Guid
Результат BlogEngine.Core.Referrer

StorageLocation() публичный Метод

public StorageLocation ( ) : string
Результат string

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

public UpdateBlogRollItem ( BlogEngine blogRollItem ) : void
blogRollItem BlogEngine
Результат void

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

Updates a Category
public UpdateCategory ( Category category ) : void
category Category Must be a valid Category object.
Результат void

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

public UpdatePage ( BlogEngine page ) : void
page BlogEngine
Результат void

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

Updates a Post.
public UpdatePost ( Post post ) : void
post Post
Результат void

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

public UpdateProfile ( AuthorProfile profile ) : void
profile AuthorProfile
Результат void

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

public UpdateReferrer ( BlogEngine referrer ) : void
referrer BlogEngine
Результат void