C# 클래스 BlogEngine.Core.Providers.BlogService

The proxy class for communication between the business objects and the providers.
파일 보기 프로젝트 열기: rasmuskl/ReSharperCourse

공개 메소드들

메소드 설명
DeleteBlog ( Blog blog ) : void

Deletes the specified Blog from the current provider.

DeleteBlogRoll ( BlogRollItem blogRoll ) : void

Deletes the specified BlogRoll from the current provider.

DeleteBlogStorageContainer ( Blog blog ) : bool

Deletes the storage container for the specified Blog from the current provider.

DeleteCategory ( Category category ) : void

Deletes the specified Category from the current provider.

DeleteDirectory ( Directory DirectoryObj ) : void

Deletes a directory by passing in the Directory object

DeleteDirectory ( string VirtualPath ) : void

Deletes a spefic directory from a virtual path

Virtual path is the path starting from the /files/ containers The entity is queried against to current blog id

DeleteFile ( string VirtualPath ) : void

deletes a file by virtual path

DeletePackage ( string packageId ) : void

Delete all installed by package files from application

DeletePage ( Page page ) : void

Deletes the specified Page from the current provider.

DeletePost ( Post post ) : void

Deletes the specified Post from the current provider.

DeleteProfile ( AuthorProfile profile ) : void

Deletes the specified Page from the current provider.

DeleteQuickNote ( System.Guid noteId ) : void
DirectoryExists ( string VirtualPath ) : bool

Returns wether or not the specific directory by virtual path exists

FileExists ( string VirtualPath ) : bool

boolean wether a file exists by its virtual path

FillBlogRolls ( ) : List

Returns a list of all BlogRolls in the current provider.

FillBlogs ( ) : List

The fill blogs.

FillCategories ( ) : List

The fill categories.

FillPages ( ) : List

The fill pages.

FillPosts ( ) : List

The fill posts.

FillProfiles ( ) : List

The fill profiles.

FillQuickNotes ( string userId ) : List
FillQuickSettings ( string userId ) : List
FillReferrers ( ) : List

Returns a list of all Referrers in the current provider.

FillRights ( ) : IEnumerable>.IDictionary

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

GetDirectory ( Directory BaseDirectory ) : Directory

gets a directory by a basedirectory and a string array of sub path tree

GetDirectory ( string VirtualPath ) : Directory

gets a directory by the virtual path

GetFile ( string VirtualPath ) : File

gets a specific file by virtual path

GetFiles ( Directory BaseDirectory ) : IEnumerable

gets all the files in a directory, only searches one level

InsertBlog ( Blog blog ) : void

Persists a new Blog in the current provider.

InsertBlogRoll ( BlogRollItem blogRoll ) : void

Persists a new BlogRoll in the current provider.

InsertCategory ( Category category ) : void

Persists a new Category in the current provider.

InsertPackage ( InstalledPackage package ) : void

Save installed gallery package

InsertPackageFiles ( List packageFiles ) : void

Save package files

InsertPage ( Page page ) : void

Persists a new Page in the current provider.

InsertPost ( Post post ) : void

Persists a new Post in the current provider.

InsertProfile ( AuthorProfile profile ) : void

Persists a new Page in the current provider.

InsertReferrer ( Referrer referrer ) : void

Persists a new Referrer in the current provider.

InstalledFromGalleryPackageFiles ( string packageId ) : List

Log of files installed by gallery package

InstalledFromGalleryPackages ( ) : List

Packages installed from online gallery

LoadFromDataStore ( ExtensionType extensionType, string extensionId ) : object

Loads settings from data storage

LoadPingServices ( ) : StringCollection

Loads the ping services.

LoadSettings ( ) : StringDictionary

Loads the settings from the provider and returns them in a StringDictionary for the BlogSettings class to use.

LoadStopWords ( ) : StringCollection

Loads the stop words from the data store.

RemoveFromDataStore ( ExtensionType extensionType, string extensionId ) : void

Removes object from data store

SavePingServices ( StringCollection services ) : void

Saves the ping services.

SaveQuickNote ( QuickNote note ) : void
SaveQuickSetting ( QuickSetting setting ) : void
SaveRights ( ) : void

Saves all of the current BlogEngine rights to the provider.

SaveSettings ( StringDictionary settings ) : void

Save the settings to the current provider.

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

Saves settings to data store

SelectBlog ( System.Guid id ) : Blog

Returns a Blog based on the specified id.

SelectBlogRoll ( System.Guid id ) : BlogRollItem

Returns a BlogRoll based on the specified id.

SelectCategory ( System.Guid id ) : Category

Returns a Category based on the specified id.

SelectPage ( System.Guid id ) : Page

Returns a Page based on the specified id.

SelectPost ( System.Guid id ) : Post

Returns a Post based on the specified id.

SelectProfile ( string id ) : AuthorProfile

Returns a Page based on the specified id.

SelectReferrer ( System.Guid id ) : Referrer

Returns a Referrer 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 exsiting Blog.

UpdateBlogRoll ( BlogRollItem blogRoll ) : void

Updates an exsiting BlogRoll.

UpdateCategory ( Category category ) : void

Updates an exsiting Category.

UpdatePage ( Page page ) : void

Updates an exsiting Page.

UpdatePost ( Post post ) : void

Updates an exsiting Post.

UpdateProfile ( AuthorProfile profile ) : void

Updates an exsiting Page.

UpdateReferrer ( Referrer referrer ) : void

Updates an existing Referrer.

UploadFile ( System FileStream, string FileName, FileSystem BaseDirectory ) : FileSystem.File

uploads a file to the provider container

UploadFile ( System FileStream, string FileName, FileSystem BaseDirectory, bool Overwrite ) : FileSystem.File

uploads a file to the provider container

UploadFile ( byte FileBinary, string FileName, FileSystem BaseDirectory ) : FileSystem.File

uploads a file to the provider container

UploadFile ( byte FileBinary, string FileName, FileSystem BaseDirectory, bool Overwrite ) : FileSystem.File

uploads a file to the provider container

비공개 메소드들

메소드 설명
ClearFileSystem ( ) : void
CreateDirectory ( string VirtualPath ) : Directory

Creates a directory at a specific path

Virtual path is the path starting from the /files/ containers The entity is created against the current blog id

GetDirectories ( Directory BaseDirectory ) : IEnumerable

gets all the directories underneath a base directory. Only searches one level.

GetFileContents ( File BaseFile ) : File

gets the file contents via Lazy load, however in the DbProvider the Contents are loaded when the initial object is created to cut down on DbReads

LoadProviders ( ) : void

Load the providers from the web.config.

ReloadFileSystemProvider ( ) : void

메소드 상세

DeleteBlog() 공개 정적인 메소드

Deletes the specified Blog from the current provider.
public static DeleteBlog ( Blog blog ) : void
blog Blog /// The blog. ///
리턴 void

DeleteBlogRoll() 공개 정적인 메소드

Deletes the specified BlogRoll from the current provider.
public static DeleteBlogRoll ( BlogRollItem blogRoll ) : void
blogRoll BlogRollItem /// The blog Roll. ///
리턴 void

DeleteBlogStorageContainer() 공개 정적인 메소드

Deletes the storage container for the specified Blog from the current provider.
public static DeleteBlogStorageContainer ( Blog blog ) : bool
blog Blog /// The blog. ///
리턴 bool

DeleteCategory() 공개 정적인 메소드

Deletes the specified Category from the current provider.
public static DeleteCategory ( Category category ) : void
category Category /// The category. ///
리턴 void

DeleteDirectory() 공개 정적인 메소드

Deletes a directory by passing in the Directory object
public static DeleteDirectory ( Directory DirectoryObj ) : void
DirectoryObj Directory the DirectoryObj
리턴 void

DeleteDirectory() 공개 정적인 메소드

Deletes a spefic directory from a virtual path
Virtual path is the path starting from the /files/ containers The entity is queried against to current blog id
public static DeleteDirectory ( string VirtualPath ) : void
VirtualPath string The path to delete
리턴 void

DeleteFile() 공개 정적인 메소드

deletes a file by virtual path
public static DeleteFile ( string VirtualPath ) : void
VirtualPath string virtual path
리턴 void

DeletePackage() 공개 정적인 메소드

Delete all installed by package files from application
public static DeletePackage ( string packageId ) : void
packageId string Package ID
리턴 void

DeletePage() 공개 정적인 메소드

Deletes the specified Page from the current provider.
public static DeletePage ( Page page ) : void
page Page /// The page to delete. ///
리턴 void

DeletePost() 공개 정적인 메소드

Deletes the specified Post from the current provider.
public static DeletePost ( Post post ) : void
post Post /// The post to delete. ///
리턴 void

DeleteProfile() 공개 정적인 메소드

Deletes the specified Page from the current provider.
public static DeleteProfile ( AuthorProfile profile ) : void
profile AuthorProfile /// The profile to delete. ///
리턴 void

DeleteQuickNote() 공개 정적인 메소드

public static DeleteQuickNote ( System.Guid noteId ) : void
noteId System.Guid
리턴 void

DirectoryExists() 공개 정적인 메소드

Returns wether or not the specific directory by virtual path exists
public static DirectoryExists ( string VirtualPath ) : bool
VirtualPath string The virtual path to query
리턴 bool

FileExists() 공개 정적인 메소드

boolean wether a file exists by its virtual path
public static FileExists ( string VirtualPath ) : bool
VirtualPath string the virtual path
리턴 bool

FillBlogRolls() 공개 정적인 메소드

Returns a list of all BlogRolls in the current provider.
public static FillBlogRolls ( ) : List
리턴 List

FillBlogs() 공개 정적인 메소드

The fill blogs.
public static FillBlogs ( ) : List
리턴 List

FillCategories() 공개 정적인 메소드

The fill categories.
public static FillCategories ( ) : List
리턴 List

FillPages() 공개 정적인 메소드

The fill pages.
public static FillPages ( ) : List
리턴 List

FillPosts() 공개 정적인 메소드

The fill posts.
public static FillPosts ( ) : List
리턴 List

FillProfiles() 공개 정적인 메소드

The fill profiles.
public static FillProfiles ( ) : List
리턴 List

FillQuickNotes() 공개 정적인 메소드

public static FillQuickNotes ( string userId ) : List
userId string
리턴 List

FillQuickSettings() 공개 정적인 메소드

public static FillQuickSettings ( string userId ) : List
userId string
리턴 List

FillReferrers() 공개 정적인 메소드

Returns a list of all Referrers in the current provider.
public static FillReferrers ( ) : List
리턴 List

FillRights() 공개 정적인 메소드

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

GetDirectory() 공개 정적인 메소드

gets a directory by a basedirectory and a string array of sub path tree
public static GetDirectory ( Directory BaseDirectory ) : Directory
BaseDirectory Directory the base directory object
리턴 Directory

GetDirectory() 공개 정적인 메소드

gets a directory by the virtual path
public static GetDirectory ( string VirtualPath ) : Directory
VirtualPath string the virtual path
리턴 Directory

GetFile() 공개 정적인 메소드

gets a specific file by virtual path
public static GetFile ( string VirtualPath ) : File
VirtualPath string the virtual path of the file
리턴 File

GetFiles() 공개 정적인 메소드

gets all the files in a directory, only searches one level
public static GetFiles ( Directory BaseDirectory ) : IEnumerable
BaseDirectory Directory the base directory
리턴 IEnumerable

InsertBlog() 공개 정적인 메소드

Persists a new Blog in the current provider.
public static InsertBlog ( Blog blog ) : void
blog Blog /// The blog. ///
리턴 void

InsertBlogRoll() 공개 정적인 메소드

Persists a new BlogRoll in the current provider.
public static InsertBlogRoll ( BlogRollItem blogRoll ) : void
blogRoll BlogRollItem /// The blog Roll. ///
리턴 void

InsertCategory() 공개 정적인 메소드

Persists a new Category in the current provider.
public static InsertCategory ( Category category ) : void
category Category /// The category. ///
리턴 void

InsertPackage() 공개 정적인 메소드

Save installed gallery package
public static InsertPackage ( InstalledPackage package ) : void
package InstalledPackage Installed package
리턴 void

InsertPackageFiles() 공개 정적인 메소드

Save package files
public static InsertPackageFiles ( List packageFiles ) : void
packageFiles List List of package files
리턴 void

InsertPage() 공개 정적인 메소드

Persists a new Page in the current provider.
public static InsertPage ( Page page ) : void
page Page /// The page to insert. ///
리턴 void

InsertPost() 공개 정적인 메소드

Persists a new Post in the current provider.
public static InsertPost ( Post post ) : void
post Post /// The post to insert. ///
리턴 void

InsertProfile() 공개 정적인 메소드

Persists a new Page in the current provider.
public static InsertProfile ( AuthorProfile profile ) : void
profile AuthorProfile /// The profile to insert. ///
리턴 void

InsertReferrer() 공개 정적인 메소드

Persists a new Referrer in the current provider.
public static InsertReferrer ( Referrer referrer ) : void
referrer Referrer /// The referrer to insert. ///
리턴 void

InstalledFromGalleryPackageFiles() 공개 정적인 메소드

Log of files installed by gallery package
public static InstalledFromGalleryPackageFiles ( string packageId ) : List
packageId string Package ID
리턴 List

InstalledFromGalleryPackages() 공개 정적인 메소드

Packages installed from online gallery
public static InstalledFromGalleryPackages ( ) : List
리턴 List

LoadFromDataStore() 공개 정적인 메소드

Loads settings from data storage
public static LoadFromDataStore ( ExtensionType extensionType, string extensionId ) : object
extensionType ExtensionType /// Extension Type ///
extensionId string /// Extension ID ///
리턴 object

LoadPingServices() 공개 정적인 메소드

Loads the ping services.
public static LoadPingServices ( ) : StringCollection
리턴 System.Collections.Specialized.StringCollection

LoadSettings() 공개 정적인 메소드

Loads the settings from the provider and returns them in a StringDictionary for the BlogSettings class to use.
public static LoadSettings ( ) : StringDictionary
리턴 System.Collections.Specialized.StringDictionary

LoadStopWords() 공개 정적인 메소드

Loads the stop words from the data store.
public static LoadStopWords ( ) : StringCollection
리턴 System.Collections.Specialized.StringCollection

RemoveFromDataStore() 공개 정적인 메소드

Removes object from data store
public static RemoveFromDataStore ( ExtensionType extensionType, string extensionId ) : void
extensionType ExtensionType /// Extension Type ///
extensionId string /// Extension Id ///
리턴 void

SavePingServices() 공개 정적인 메소드

Saves the ping services.
public static SavePingServices ( StringCollection services ) : void
services System.Collections.Specialized.StringCollection /// The services. ///
리턴 void

SaveQuickNote() 공개 정적인 메소드

public static SaveQuickNote ( QuickNote note ) : void
note QuickNote
리턴 void

SaveQuickSetting() 공개 정적인 메소드

public static SaveQuickSetting ( QuickSetting setting ) : void
setting QuickSetting
리턴 void

SaveRights() 공개 정적인 메소드

Saves all of the current BlogEngine rights to the provider.
public static SaveRights ( ) : void
리턴 void

SaveSettings() 공개 정적인 메소드

Save the settings to the current provider.
public static SaveSettings ( StringDictionary settings ) : void
settings System.Collections.Specialized.StringDictionary /// The settings. ///
리턴 void

SaveToDataStore() 공개 정적인 메소드

Saves settings to data store
public static SaveToDataStore ( ExtensionType extensionType, string extensionId, object settings ) : void
extensionType ExtensionType /// Extension Type ///
extensionId string /// Extensio ID ///
settings object /// Settings object ///
리턴 void

SelectBlog() 공개 정적인 메소드

Returns a Blog based on the specified id.
public static SelectBlog ( System.Guid id ) : Blog
id System.Guid The Blog id.
리턴 Blog

SelectBlogRoll() 공개 정적인 메소드

Returns a BlogRoll based on the specified id.
public static SelectBlogRoll ( System.Guid id ) : BlogRollItem
id System.Guid The BlogRoll id.
리턴 BlogRollItem

SelectCategory() 공개 정적인 메소드

Returns a Category based on the specified id.
public static SelectCategory ( System.Guid id ) : Category
id System.Guid The Category id.
리턴 Category

SelectPage() 공개 정적인 메소드

Returns a Page based on the specified id.
public static SelectPage ( System.Guid id ) : Page
id System.Guid The Page id.
리턴 Page

SelectPost() 공개 정적인 메소드

Returns a Post based on the specified id.
public static SelectPost ( System.Guid id ) : Post
id System.Guid The post id.
리턴 Post

SelectProfile() 공개 정적인 메소드

Returns a Page based on the specified id.
public static SelectProfile ( string id ) : AuthorProfile
id string The AuthorProfile id.
리턴 AuthorProfile

SelectReferrer() 공개 정적인 메소드

Returns a Referrer based on the specified id.
public static 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 static 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 exsiting Blog.
public static UpdateBlog ( Blog blog ) : void
blog Blog /// The blog. ///
리턴 void

UpdateBlogRoll() 공개 정적인 메소드

Updates an exsiting BlogRoll.
public static UpdateBlogRoll ( BlogRollItem blogRoll ) : void
blogRoll BlogRollItem /// The blog Roll. ///
리턴 void

UpdateCategory() 공개 정적인 메소드

Updates an exsiting Category.
public static UpdateCategory ( Category category ) : void
category Category /// The category. ///
리턴 void

UpdatePage() 공개 정적인 메소드

Updates an exsiting Page.
public static UpdatePage ( Page page ) : void
page Page /// The page to update. ///
리턴 void

UpdatePost() 공개 정적인 메소드

Updates an exsiting Post.
public static UpdatePost ( Post post ) : void
post Post /// The post to update. ///
리턴 void

UpdateProfile() 공개 정적인 메소드

Updates an exsiting Page.
public static UpdateProfile ( AuthorProfile profile ) : void
profile AuthorProfile /// The profile to update. ///
리턴 void

UpdateReferrer() 공개 정적인 메소드

Updates an existing Referrer.
public static UpdateReferrer ( Referrer referrer ) : void
referrer Referrer /// The referrer to update. ///
리턴 void

UploadFile() 공개 정적인 메소드

uploads a file to the provider container
public static UploadFile ( System FileStream, string FileName, FileSystem BaseDirectory ) : FileSystem.File
FileStream System the file stream of the file being uploaded
FileName string the file name
BaseDirectory FileSystem the directory object that is the owner
리턴 FileSystem.File

UploadFile() 공개 정적인 메소드

uploads a file to the provider container
public static UploadFile ( System FileStream, string FileName, FileSystem BaseDirectory, bool Overwrite ) : FileSystem.File
FileStream System the file stream of the file being uploaded
FileName string the file name
BaseDirectory FileSystem the directory object that is the owner
Overwrite bool boolean wether to overwrite the file if it exists.
리턴 FileSystem.File

UploadFile() 공개 정적인 메소드

uploads a file to the provider container
public static UploadFile ( byte FileBinary, string FileName, FileSystem BaseDirectory ) : FileSystem.File
FileBinary byte file contents as byte array
FileName string the file name
BaseDirectory FileSystem directory object that is the owner
리턴 FileSystem.File

UploadFile() 공개 정적인 메소드

uploads a file to the provider container
public static UploadFile ( byte FileBinary, string FileName, FileSystem BaseDirectory, bool Overwrite ) : FileSystem.File
FileBinary byte the contents of the file as a byte array
FileName string the file name
BaseDirectory FileSystem the directory object that is the owner
Overwrite bool boolean wether to overwrite the file if it exists.
리턴 FileSystem.File