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
Показать файл Открыть проект

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

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