public class ConfluenceAccessTool extends Object
Constructor and Description |
---|
ConfluenceAccessTool(String url,
String user,
String password,
String proxy)
Initializes a new connection with the given connection information.
|
Modifier and Type | Method and Description |
---|---|
void |
createPage(String title,
String htmlContent,
String space,
Long parentPageID)
Creates a new page in the given space.
|
void |
destroy()
closes the connection.
|
List<Long> |
getPageIDByTitle(String title,
String space)
Queries all pages wioth the given title in the given space.
|
public ConfluenceAccessTool(String url, String user, String password, String proxy)
url
- the url of confluenceuser
- the usernamepassword
- the passwordproxy
- the proxy to use for building the connectionpublic void destroy()
public List<Long> getPageIDByTitle(String title, String space)
title
- the title of the pages to look forspace
- the key of the spacepublic void createPage(String title, String htmlContent, String space, Long parentPageID)
title
- the title of the new pagehtmlContent
- the html content of the new pagespace
- the key of the space where the new page shall be placedparentPageID
- the id of the parent page, under which the new page should be
inserted as child. If parentPageID is null, the new page will
be placed at the spaces root.Copyright © 2004-2018. All Rights Reserved.