| 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  Contentbody map into another format, performing
 validation during the conversion. | 
| Content | ContentService. create(Content newContent)Create a piece of content. | 
| Space | SpaceService. create(Space newSpace,
      boolean isPrivate)Create a new space. | 
| 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  Contentwith the specified id. | 
| Content | AttachmentService. update(Content attachment)Updates the non-data parts of an Attachment  Contentinstance. | 
| Content | ContentService. update(Content content)Updates a piece of content. | 
| Content | AttachmentService. updateData(ContentId attachmentId,
          AttachmentUpload upload)Updates the data part of an Attachment  Contentinstance. | 
| 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  | BadRequestExceptionThrown when the data in the incoming request is incomplete or otherwise invalid. | 
| class  | ConflictExceptionThrown when an UPDATE request is made with a stale version number. | 
| class  | InternalServerExceptionA ServiceException wrapper for a general runtime exception. | 
| class  | NotFoundExceptionThrown when things that are expected to be found are NOT found. | 
| class  | PermissionExceptionRaised when a user attempts to perform an action they do not have permission for. | 
Copyright © 2003-2014 Atlassian. All Rights Reserved.