C# 클래스 XWiki.Clients.XWikiXMLRPCClient

Interacts with a XWiki server via XML-RPC
The client side xml-rpc is done using a XMlRPC.net(CookComputing)generated proxy.
상속: IXWikiClient
파일 보기 프로젝트 열기: xwiki-contrib/xwiki-office

공개 메소드들

메소드 설명
AddAttachment ( string docName, string filePath ) : bool

Adds a file as an attachment to a wiki page.

AddAttachment ( string space, string page, string filePath ) : bool

Adds a file as an attachment to a wiki page.

AddAttachmentAsync ( string docName, string filePath ) : void

Adds a file to a wiki page as an attachment. The data transfer is asynchronuous.

AddAttachmentAsync ( string space, string page, string filePath ) : void

Adds a file to a wiki page as an attachment. The data transfer is asynchronuous.

AddObject ( string docName, string className, System fieldsValues ) : int

Adds and XWiki opbject to a XWiki document.

GetAttachmentContent ( string pageName, string fileName ) : byte[]

Gets the binary data of the attached file.

GetAttachmentURL ( string docFullName, string attachmentName ) : string

Gets the download url of an attachment.

GetConfiguredSyntaxes ( ) : List

Gets the availbale syntaxes for the server's renderer.

GetDefaultServerSyntax ( ) : String

Gets the default wiki syntax of the server.

GetDocumentAttachmentList ( string docFullName ) : List

Gets the names of the attached files of a wiki page.

GetObject ( String pageId, String className, int id ) : XWikiObject

Gets an object from a page.

GetObjects ( String pageId ) : XWiki.XmlRpc.XWikiObjectSummary[]

Gets the objects from a page.

GetPageHistory ( String pageId ) : XWiki.XmlRpc.PageHistorySummary[]

Retrieves the history of a wiki page.

GetPagesNames ( string spaceName ) : List

Gets the pages names of a wiki space.

GetRenderedPageContent ( string pageFullName ) : string

Gets the rendered content of the specified page.

GetRenderedPageContent ( string space, string page ) : string

Gets the rendered content of a page.

GetSpacesNames ( ) : List

Gets the spaces of a wiki.

GetURL ( string documentFullName ) : string

Gets the url of a wiki page for the view action.

Login ( string username, string password ) : bool

Authenticates the user to the server.

RemoveObject ( String pageId, String className, int id ) : void

Removes an object from a page.

SavePageHTML ( string docName, string content, string syntax ) : bool

Sets the html content of a page and then saves the page.

UpdateObject ( string pageFullName, string className, int objectIndex, System fieldsValues ) : String
UpdateObject ( string pageFullName, string className, System fieldsValues ) : void

Updates a xwiki object.

비공개 메소드들

메소드 설명
AttachFile ( object attachmentInfo ) : void

Attaches a file to a page on the server.

GetAppContext ( ) : String

Gets the app context from the server URL

Login ( ) : void
XWikiXMLRPCClient ( String serverUrl, String username, String password ) : System

XML-RPC implementation of IXWikiCLient. Provides access to the main features of XWiki using the XML-RPC API.

메소드 상세

AddAttachment() 공개 메소드

Adds a file as an attachment to a wiki page.
public AddAttachment ( string docName, string filePath ) : bool
docName string Wiki page name - SpaceName.PageName
filePath string The path to the uploaded file.
리턴 bool

AddAttachment() 공개 메소드

Adds a file as an attachment to a wiki page.
public AddAttachment ( string space, string page, string filePath ) : bool
space string The name of the space.
page string the name of the page.
filePath string The path to the uploaded file.
리턴 bool

AddAttachmentAsync() 공개 메소드

Adds a file to a wiki page as an attachment. The data transfer is asynchronuous.
public AddAttachmentAsync ( string docName, string filePath ) : void
docName string Wiki page name - SpaceName.PageName
filePath string The path to the uploaded file.
리턴 void

AddAttachmentAsync() 공개 메소드

Adds a file to a wiki page as an attachment. The data transfer is asynchronuous.
public AddAttachmentAsync ( string space, string page, string filePath ) : void
space string The name of the space.
page string The name of the space.
filePath string The path to the uploaded file.
리턴 void

AddObject() 공개 메소드

Adds and XWiki opbject to a XWiki document.
public AddObject ( string docName, string className, System fieldsValues ) : int
docName string The name of the XWiki Document.
className string
fieldsValues System The values of the object's properties.
리턴 int

GetAttachmentContent() 공개 메소드

Gets the binary data of the attached file.
public GetAttachmentContent ( string pageName, string fileName ) : byte[]
pageName string Wiki page name - SpaceName.PageName
fileName string Attached file name
리턴 byte[]

GetAttachmentURL() 공개 메소드

Gets the download url of an attachment.
public GetAttachmentURL ( string docFullName, string attachmentName ) : string
docFullName string Wiki page name - SpaceName.PageName
attachmentName string
리턴 string

GetConfiguredSyntaxes() 공개 메소드

Gets the availbale syntaxes for the server's renderer.
public GetConfiguredSyntaxes ( ) : List
리턴 List

GetDefaultServerSyntax() 공개 메소드

Gets the default wiki syntax of the server.
public GetDefaultServerSyntax ( ) : String
리턴 String

GetDocumentAttachmentList() 공개 메소드

Gets the names of the attached files of a wiki page.
public GetDocumentAttachmentList ( string docFullName ) : List
docFullName string The full name of the wiki page.
리턴 List

GetObject() 공개 메소드

Gets an object from a page.
public GetObject ( String pageId, String className, int id ) : XWikiObject
pageId String Page name - SpaceName.PageName.
className String XWiki class name.
id int Index number of the object.
리턴 XWiki.XmlRpc.XWikiObject

GetObjects() 공개 메소드

Gets the objects from a page.
public GetObjects ( String pageId ) : XWiki.XmlRpc.XWikiObjectSummary[]
pageId String Full page name - SpanceName.PageName
리턴 XWiki.XmlRpc.XWikiObjectSummary[]

GetPageHistory() 공개 메소드

Retrieves the history of a wiki page.
public GetPageHistory ( String pageId ) : XWiki.XmlRpc.PageHistorySummary[]
pageId String The fullname of the page.
리턴 XWiki.XmlRpc.PageHistorySummary[]

GetPagesNames() 공개 메소드

Gets the pages names of a wiki space.
public GetPagesNames ( string spaceName ) : List
spaceName string The name of the wiki space.
리턴 List

GetRenderedPageContent() 공개 메소드

Gets the rendered content of the specified page.
public GetRenderedPageContent ( string pageFullName ) : string
pageFullName string Wiki page name - SpaceName.PageName
리턴 string

GetRenderedPageContent() 공개 메소드

Gets the rendered content of a page.
public GetRenderedPageContent ( string space, string page ) : string
space string The name of the wiki space.
page string The short name of the page.
리턴 string

GetSpacesNames() 공개 메소드

Gets the spaces of a wiki.
public GetSpacesNames ( ) : List
리턴 List

GetURL() 공개 메소드

Gets the url of a wiki page for the view action.
public GetURL ( string documentFullName ) : string
documentFullName string The full name of the wiki page.
리턴 string

Login() 공개 메소드

Authenticates the user to the server.
public Login ( string username, string password ) : bool
username string
password string
리턴 bool

RemoveObject() 공개 메소드

Removes an object from a page.
public RemoveObject ( String pageId, String className, int id ) : void
pageId String Full page name - SpaceName.PageName.
className String XWiki class name.
id int Index number of the object.
리턴 void

SavePageHTML() 공개 메소드

Sets the html content of a page and then saves the page.
public SavePageHTML ( string docName, string content, string syntax ) : bool
docName string Wiki page name - SpaceName.PageName
content string The html source to be saved.
syntax string The syntax to which the source will be converted.
리턴 bool

UpdateObject() 공개 메소드

public UpdateObject ( string pageFullName, string className, int objectIndex, System fieldsValues ) : String
pageFullName string
className string
objectIndex int
fieldsValues System
리턴 String

UpdateObject() 공개 메소드

Updates a xwiki object.
public UpdateObject ( string pageFullName, string className, System fieldsValues ) : void
pageFullName string The full name of the page containing the object.
className string The class name of the object.
fieldsValues System Name-value pairs containig corespongin to the field names and values ov the object.
리턴 void