C# 클래스 Sitecore.Modules.WeBlog.MetaBlogApi

상속: CookComputing.XmlRpc.XmlRpcService
파일 보기 프로젝트 열기: WeTeam/WeBlog 1 사용 예제들

공개 메소드들

메소드 설명
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