Package | Description |
---|---|
com.atlassian.confluence.api.impl.service.content | |
com.atlassian.confluence.api.impl.service.content.factory | |
com.atlassian.confluence.api.model.content | |
com.atlassian.confluence.api.model.content.template | |
com.atlassian.confluence.api.service.content | |
com.atlassian.confluence.api.service.exceptions | |
com.atlassian.confluence.core | |
com.atlassian.confluence.it.api | |
com.atlassian.confluence.it.rpc.delegates | |
com.atlassian.confluence.plugins.restapi.resources | |
com.atlassian.confluence.rest.client |
This package contains the code which communicates with Confluence via REST API.
|
Modifier and Type | Method and Description |
---|---|
ContentBody |
ContentBodyConversionServiceImpl.convert(ContentBody body,
ContentRepresentation toFormat) |
ContentBody |
ContentBodyConversionServiceImpl.convert(ContentBody contentBody,
ContentRepresentation toFormat,
Expansion... expansions) |
com.atlassian.fugue.Pair<String,Reference<WebResourceDependencies>> |
ContentBodyConversionManagerImpl.convert(ContentRepresentation fromFormat,
String value,
ContentRepresentation toFormat,
ContentEntityObject ceo,
Expansion... expansions) |
com.atlassian.fugue.Pair<String,Reference<WebResourceDependencies>> |
ContentBodyConversionManager.convert(ContentRepresentation from,
String value,
ContentRepresentation to,
ContentEntityObject ceo,
Expansion... expansions)
Computes the converted value of the ContentBody and the required web resources that may be needed to render the converted value.
|
ContentBody |
ContentBodyConversionServiceImpl.convertBody(Content content,
ContentRepresentation toFormat) |
ContentBody |
ContentBodyConversionServiceImpl.convertBody(Content content,
ContentRepresentation toFormat,
Expansion... expansions) |
com.atlassian.fugue.Option<ContentBody> |
ContentBodyConversionServiceImpl.getBodyToConvert(Content content,
ContentRepresentation toFormat) |
Modifier and Type | Field and Description |
---|---|
static ContentRepresentation |
SpaceFactory.DEFAULT_DESCRIPTION_REPRESENTATION |
Modifier and Type | Method and Description |
---|---|
Map<ContentRepresentation,ContentBody> |
ContentBodyFactory.makeContentBodies(ContentEntityObject ceo,
BodyContent bodyContent,
Expansions expansions,
ContentFactory contentFactory) |
Modifier and Type | Method and Description |
---|---|
ContentBody |
ContentBodyFactory.build(ContentEntityObject ceo,
BodyContent bodyContent,
ContentRepresentation representation) |
Modifier and Type | Field and Description |
---|---|
static ContentRepresentation |
ContentRepresentation.ANONYMOUS_EXPORT_VIEW
HTML representation for viewing, but with absolute urls, instead of relative urls in the markup, and macros are rendered as though
it is viewed by an anonymous user.
|
static ContentRepresentation |
ContentRepresentation.EDITOR
Representation suitable for use in the rich text editor
|
static ContentRepresentation |
ContentRepresentation.EXPORT_VIEW
HTML representation for viewing, but with absolute urls, instead of relative urls in the markup.
|
static ContentRepresentation |
ContentRepresentation.PLAIN
Raw database format as plain text with no XHTML or WIKI markup.
|
static ContentRepresentation |
ContentRepresentation.RAW
Raw "database" format.
|
protected ContentRepresentation |
FormattedBody.BaseFormattedBodyBuilder.representation |
static ContentRepresentation |
ContentRepresentation.STORAGE
Raw database format, for content that stores data in our XML storage format
|
static ContentRepresentation |
ContentRepresentation.STYLED_VIEW
A rendered view that includes inline styles in a <style> element, wrapped in an entire <html> structure.
|
static ContentRepresentation |
ContentRepresentation.VIEW
HTML representation for viewing in a web page
|
static ContentRepresentation |
ContentRepresentation.WIKI
Legacy WIKI representation
|
Modifier and Type | Field and Description |
---|---|
static Iterable<ContentRepresentation> |
ContentRepresentation.INPUT_CONVERSION_TO_STORAGE_ORDER
An ordered enumeration of ContentRepresentations that can be converted to STORAGE format.
|
Modifier and Type | Method and Description |
---|---|
ContentRepresentation |
FormattedBody.getRepresentation() |
static ContentRepresentation |
ContentRepresentation.valueOf(String representation) |
Modifier and Type | Method and Description |
---|---|
Map<ContentRepresentation,ContentBody> |
Content.getBody() |
Map<ContentRepresentation,FormattedBody> |
Space.getDescription() |
Map<ContentRepresentation,Reference<FormattedBody>> |
Space.getDescriptionRefs()
Deprecated.
Since 5.5.1 Use
Space.getDescription() . |
Modifier and Type | Method and Description |
---|---|
Content.ContentBuilder |
Content.ContentBuilder.body(String value,
ContentRepresentation format) |
Space.SpaceBuilder |
Space.SpaceBuilder.description(ContentRepresentation representation,
FormattedBody formattedBody) |
Space.SpaceBuilder |
Space.SpaceBuilder.description(ContentRepresentation representation,
Reference<FormattedBody> formattedBody)
Deprecated.
|
Space.SpaceBuilder |
Space.SpaceBuilder.description(ContentRepresentation representation,
String value) |
static ContentBody |
ContentBody.emptyBody(ContentRepresentation representation,
Reference<Content> contentReference) |
T |
FormattedBody.BaseFormattedBodyBuilder.representation(ContentRepresentation representation) |
Modifier and Type | Method and Description |
---|---|
Content.ContentBuilder |
Content.ContentBuilder.body(Map<ContentRepresentation,ContentBody> body) |
Space.SpaceBuilder |
Space.SpaceBuilder.description(Map<ContentRepresentation,FormattedBody> description) |
Constructor and Description |
---|
ContentBody(ContentRepresentation representation,
String value) |
ContentBody(ContentRepresentation representation,
String value,
Content content)
Deprecated.
since 5.9 , use
ContentBody.contentBodyBuilder() |
ContentBody(ContentRepresentation representation,
String value,
ContentId contentId)
Deprecated.
since 5.9 , use
ContentBody.contentBodyBuilder() |
ContentBody(ContentRepresentation representation,
String value,
Reference<Content> contentReference)
Deprecated.
since 5.9 , use
ContentBody.contentBodyBuilder() |
ContentBody(ContentRepresentation representation,
String value,
Reference<Content> contentReference,
Reference<WebResourceDependencies> webresource)
Deprecated.
since 5.9 , use
ContentBody.contentBodyBuilder() |
FormattedBody(ContentRepresentation representation,
String value) |
Modifier and Type | Method and Description |
---|---|
Map<ContentRepresentation,ContentBody> |
ContentTemplate.getBody() |
Modifier and Type | Method and Description |
---|---|
ContentTemplate.ContentTemplateBuilder |
ContentTemplate.ContentTemplateBuilder.body(Map<ContentRepresentation,ContentBody> body) |
Modifier and Type | Method and Description |
---|---|
ContentBody |
ContentBodyConversionService.convert(ContentBody body,
ContentRepresentation representation)
Same as calling
ContentBodyConversionService.convert(ContentBody, ContentRepresentation, Expansion...) with an empty expansion. |
ContentBody |
ContentBodyConversionService.convert(ContentBody body,
ContentRepresentation representation,
Expansion... expansions)
Convert a ContentBody value into another format, performing validation during the conversion.
|
ContentBody |
ContentBodyConversionService.convertBody(Content content,
ContentRepresentation representation)
Same as calling
ContentBodyConversionService.convertBody(Content, ContentRepresentation, Expansion...) with an empty expansion. |
ContentBody |
ContentBodyConversionService.convertBody(Content content,
ContentRepresentation representation,
Expansion... expansions)
Convert the single ContentBody value in a
Content body map into another format, performing
validation during the conversion. |
com.atlassian.fugue.Option<ContentBody> |
ContentBodyConversionService.getBodyToConvert(Content content,
ContentRepresentation toFormat)
Deprecated.
|
default Optional<ContentBody> |
ContentBodyConversionService.selectBodyForRepresentation(Content content,
ContentRepresentation toFormat)
Given a
Content object for which the body could be converted to a given ContentRepresentation ,
returns the ContentBody that would be used for the conversion. |
Modifier and Type | Method and Description |
---|---|
Iterable<ContentRepresentation> |
InvalidRepresentationException.getPermittedRepresentations() |
Constructor and Description |
---|
InvalidRepresentationException(ContentRepresentation unacceptableRepresentation,
ContentRepresentation[] permittedRepresentations) |
InvalidRepresentationException(ContentRepresentation unacceptableRepresentation,
ContentRepresentation[] permittedRepresentations) |
InvalidRepresentationException(ContentRepresentation representation,
Iterable<ContentRepresentation> contentRepresentations) |
Constructor and Description |
---|
InvalidRepresentationException(ContentRepresentation representation,
Iterable<ContentRepresentation> contentRepresentations) |
Modifier and Type | Method and Description |
---|---|
ContentRepresentation |
BodyType.toContentRepresentation() |
Modifier and Type | Method and Description |
---|---|
static Content |
ApiEntityConverter.convertItBlogPostToApiContent(BlogPost blogPost,
ContentRepresentation format) |
static Content |
ApiEntityConverter.convertItCommentToApiContent(Comment comment,
ContentRepresentation format) |
static Content |
ApiEntityConverter.convertItPageToApiContent(Page page,
ContentRepresentation format)
Converts an acceptance-test Page object into an API Content instance, where the body of the Content is in the
passed
ContentRepresentation format. |
Modifier and Type | Field and Description |
---|---|
static ContentRepresentation |
ContentRpc.DEFAULT_REPRESENTATION |
Modifier and Type | Method and Description |
---|---|
BlogPost |
ContentRpc.createBlogPost(BlogPost blogPost,
ContentRepresentation format) |
Comment |
ContentRpc.createComment(Comment comment,
ContentRepresentation format) |
Page |
ContentRpc.createPage(Page page,
ContentRepresentation format) |
BlogPost |
ContentRpc.updateBlogPost(BlogPost blogPost,
boolean minorEdit,
String versionComment,
ContentRepresentation format) |
Comment |
ContentRpc.updateComment(Comment comment,
ContentRepresentation format) |
Page |
ContentRpc.updatePage(Page page,
boolean minorEdit,
String versionComment,
ContentRepresentation format) |
Modifier and Type | Method and Description |
---|---|
ContentBody |
ContentBodyResource.convert(ContentBody body,
ContentRepresentation toRepresentation,
String expand)
Converts between content body representations.
|
Modifier and Type | Method and Description |
---|---|
com.atlassian.util.concurrent.Promise<ContentBody> |
RemoteContentBodyConversionService.convert(ContentBody body,
ContentRepresentation representation)
Deprecated.
since 7.0.1. Use
RemoteContentBodyConversionService.convertCompletionStage(ContentBody, ContentRepresentation) instead. |
com.atlassian.util.concurrent.Promise<ContentBody> |
RemoteContentBodyConversionServiceImpl.convert(ContentBody body,
ContentRepresentation representation)
Deprecated.
since 7.0.1. Use
RemoteContentBodyConversionServiceImpl.convertCompletionStage(ContentBody, ContentRepresentation) instead. |
com.atlassian.util.concurrent.Promise<ContentBody> |
RemoteContentBodyConversionService.convert(ContentBody body,
ContentRepresentation representation,
Expansion... expansions)
Deprecated.
|
com.atlassian.util.concurrent.Promise<ContentBody> |
RemoteContentBodyConversionServiceImpl.convert(ContentBody body,
ContentRepresentation representation,
Expansion... expansions)
Deprecated.
|
CompletionStage<ContentBody> |
RemoteContentBodyConversionService.convertCompletionStage(ContentBody body,
ContentRepresentation representation)
Convert a ContentBody value into another format, performing validation during the conversion.
|
CompletionStage<ContentBody> |
RemoteContentBodyConversionServiceImpl.convertCompletionStage(ContentBody body,
ContentRepresentation representation) |
CompletionStage<ContentBody> |
RemoteContentBodyConversionService.convertCompletionStage(ContentBody body,
ContentRepresentation representation,
Expansion... expansions)
Convert a ContentBody value into another format, performing validation during the conversion.
|
CompletionStage<ContentBody> |
RemoteContentBodyConversionServiceImpl.convertCompletionStage(ContentBody body,
ContentRepresentation representation,
Expansion... expansions) |
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences