| Package | Description |
|---|---|
| com.atlassian.confluence.api.model.validation | |
| com.atlassian.confluence.api.service.content | |
| com.atlassian.confluence.api.service.exceptions |
| Modifier and Type | Method and Description |
|---|---|
ServiceException |
ValidationResult.throwIfInvalid(java.lang.String msg)
converts this validation result into an Exception and throws it
|
| Modifier and Type | Method and Description |
|---|---|
ServiceException |
ValidationResult.throwIfInvalid(java.lang.String msg)
converts this validation result into an Exception and throws it
|
| Modifier and Type | Method and Description |
|---|---|
PageResponse<Content> |
AttachmentService.addAttachments(ContentId containerId,
java.util.Collection<AttachmentUpload> uploads)
Add one or more attachments to a piece of
Content. |
PageResponse<Label> |
ContentLabelService.addLabels(ContentId contentId,
java.lang.Iterable<Label> labels)
Adds the given labels to the specified content
|
ContentBody |
ContentBodyConversionService.convert(ContentBody body,
ContentRepresentation representation)
Convert a ContentBody value into another format, performing validation during the conversion.
|
ContentBody |
ContentBodyConversionService.convertBody(Content content,
ContentRepresentation representation)
Convert the single ContentBody value in a
Content body map into another format, performing
validation during the conversion. |
Content |
ContentService.create(Content newContent)
Create a piece of content.
|
void |
AttachmentService.delete(Content attachment)
Removes an Attachment from the system.
|
void |
ContentService.delete(Content content)
Removes an item of Content from the system.
|
com.atlassian.fugue.Option<Content> |
AttachmentService.findByContainerAndFilename(ContentId containerId,
java.lang.String filename,
Expansion... expansions)
Locates a single Attachment given the id of its container Content and its file name.
|
com.atlassian.fugue.Option<Macro> |
ContentService.findMacroByHash(ContentId contentId,
java.lang.String versionId,
java.lang.String hash,
Expansion... expansions)
Retrieve details about a macro matching the page, version and macro hash.
|
PageResponse<Content> |
AttachmentService.getAttachments(ContentId containerId,
PageRequest pageRequest,
AttachmentFilter filter,
Expansion... expansions)
Get a page of attachments under the
Content with the specified id. |
Content |
AttachmentService.update(Content attachment)
Updates the non-data parts of an Attachment
Content instance. |
Content |
ContentService.update(Content content)
Updates a piece of content.
|
Content |
AttachmentService.updateData(ContentId attachmentId,
AttachmentUpload upload)
Updates the data part of an Attachment
Content instance. |
ValidationResult |
ContentService.Validator.validateCreate(Content newContent)
Validate that a piece of content can be included, including permission checks.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BadRequestException
Thrown when the data in the incoming request is incomplete or otherwise invalid.
|
class |
ConflictException
Thrown when an UPDATE request is made with a stale version number.
|
class |
InternalServerException
A ServiceException wrapper for a general runtime exception.
|
class |
NotFoundException
Thrown when things that are expected to be found are NOT found.
|
class |
PermissionException
Raised when a user attempts to perform an action they do not have permission for.
|
Copyright © 2003-2014 Atlassian. All Rights Reserved.