C# Класс Sitecore.Modules.WeBlog.MetaBlogApi

Наследование: CookComputing.XmlRpc.XmlRpcService
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
MetaBlogApi ( ) : System
MetaBlogApi ( IBlogManager blogManager, ICategoryManager categoryManager, IEntryManager entryManager ) : System

Защищенные методы

Метод Описание
Authenticate ( string username, string password ) : void

Authenticate user

CheckUserCreateRights ( string path ) : void

Ensure the context user has create rights to the item given by path.

If the item in the path doesn't exist, the ancestors will be checked until an item is found to exist.

CheckUserRights ( string blogid ) : void

Ensure the user has adequate rights to the blog.

GetBlog ( string blogId ) : BlogHomeItem

Gets the blog given by the provided ID

GetCategoriesAsString ( System.Item postItem, CookComputing.XmlRpc.XmlRpcStruct rpcstruct ) : string

Gets the categories as string.

GetContentDatabase ( ) : Database

Gets the database where content is authored

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

Метод Описание
CheckUserRights ( string blogid, string username ) : void
GetCategoriesAsString ( ID BlogID, CookComputing.XmlRpc.XmlRpcStruct rpcstruct ) : string
GetCategoriesAsString ( string postid, CookComputing.XmlRpc.XmlRpcStruct rpcstruct ) : string
SetItemData ( System.Item item, CookComputing.XmlRpc.XmlRpcStruct rpcstruct ) : void

Sets the item data from an XML RPC struct

deletePost ( string appKey, string postid, string userName, string password, bool publish ) : bool
editPost ( string postid, string username, string password, CookComputing.XmlRpc.XmlRpcStruct rpcstruct, bool publish ) : bool
getCategories ( string blogid, string username, string password ) : CookComputing.XmlRpc.XmlRpcStruct[]
getPost ( string postid, string username, string password ) : CookComputing.XmlRpc.XmlRpcStruct
getRecentPosts ( string blogid, string username, string password, int numberOfPosts ) : CookComputing.XmlRpc.XmlRpcStruct[]
getTemplate ( string appKey, string blogid, string username, string password, string templateType ) : string
getUsersBlogs ( string appKey, string username, string password ) : CookComputing.XmlRpc.XmlRpcStruct[]
newMediaObject ( string blogid, string username, string password, CookComputing.XmlRpc.XmlRpcStruct rpcstruct ) : CookComputing.XmlRpc.XmlRpcStruct
newPost ( string blogid, string username, string password, CookComputing.XmlRpc.XmlRpcStruct rpcstruct, bool publish ) : string
pingback ( string sourceUri, string targetUri ) : void

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

Authenticate() защищенный Метод

Authenticate user
protected Authenticate ( string username, string password ) : void
username string UserName
password string Password
Результат void

CheckUserCreateRights() защищенный Метод

Ensure the context user has create rights to the item given by path.
If the item in the path doesn't exist, the ancestors will be checked until an item is found to exist.
protected CheckUserCreateRights ( string path ) : void
path string The path of the item to check the rights on.
Результат void

CheckUserRights() защищенный Метод

Ensure the user has adequate rights to the blog.
protected CheckUserRights ( string blogid ) : void
blogid string The ID of the blog to check the rights of.
Результат void

GetBlog() защищенный Метод

Gets the blog given by the provided ID
protected GetBlog ( string blogId ) : BlogHomeItem
blogId string The ID of the blog to get
Результат Sitecore.Modules.WeBlog.Data.Items.BlogHomeItem

GetCategoriesAsString() защищенный Метод

Gets the categories as string.
protected GetCategoriesAsString ( System.Item postItem, CookComputing.XmlRpc.XmlRpcStruct rpcstruct ) : string
postItem System.Item
rpcstruct CookComputing.XmlRpc.XmlRpcStruct The rpcstruct.
Результат string

GetContentDatabase() защищенный Метод

Gets the database where content is authored
protected GetContentDatabase ( ) : Database
Результат Database

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

public MetaBlogApi ( ) : System
Результат System

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

public MetaBlogApi ( IBlogManager blogManager, ICategoryManager categoryManager, IEntryManager entryManager ) : System
blogManager IBlogManager
categoryManager ICategoryManager
entryManager IEntryManager
Результат System