public class ConfluenceResource extends Object
Constructor and Description |
---|
ConfluenceResource(ConfluenceRemoteServiceStrategyFactory confluenceRemoteServiceStrategyFactory,
com.atlassian.applinks.api.ApplicationLinkService applicationLinkService,
JiraBaseUrls jiraBaseUrls,
I18nHelper i18nBean) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getApplicationLinks() |
javax.ws.rs.core.Response |
getSiteSearch(String query,
String spaceKey,
Long startAt,
Integer maxResults,
String appId)
Returns all matching content from a remote Confluence instance.
|
javax.ws.rs.core.Response |
getSpaces(String query,
Long startAt,
Integer maxResults,
String appId)
Returns all spaces from a remote Confluence instance.
|
@Autowired public ConfluenceResource(ConfluenceRemoteServiceStrategyFactory confluenceRemoteServiceStrategyFactory, com.atlassian.applinks.api.ApplicationLinkService applicationLinkService, JiraBaseUrls jiraBaseUrls, I18nHelper i18nBean)
public javax.ws.rs.core.Response getSpaces(String query, Long startAt, Integer maxResults, String appId)
query
- a string of text to search for in Confluence Space titles and descriptions.appId
- the applink id for the remote Confluence instance.startAt
- the page offset, if not specified then defaults to 0.maxResults
- how many results on the page should be included. Defaults to CONF_DEFAULT_MAX
.public javax.ws.rs.core.Response getSiteSearch(String query, String spaceKey, Long startAt, Integer maxResults, String appId)
query
- a string of text to search for anywhere in a piece of Confluence content.spaceKey
- if provided, will restrict the search to a single Space in Confluence.appId
- the applink id for the remote Confluence instance.startAt
- the page offset, if not specified then defaults to 0.maxResults
- how many results on the page should be included. Defaults to CONF_DEFAULT_MAX
.public javax.ws.rs.core.Response getApplicationLinks()
Copyright © 2002-2019 Atlassian. All Rights Reserved.