| Modifier and Type | Method and Description | 
|---|---|
| ServiceException | SimpleValidationResult. convertToServiceException(java.lang.String errorMsg) | 
| ServiceException | SimpleValidationResult. throwIfInvalid(java.lang.String msg) | 
| ServiceException | ValidationResult. throwIfInvalid(java.lang.String msg)converts this validation result into an Exception and throws it | 
| Modifier and Type | Method and Description | 
|---|---|
| ServiceException | SimpleValidationResult. throwIfInvalid(java.lang.String msg) | 
| 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. | 
| JsonContentProperty | ContentPropertyService. create(JsonContentProperty newProperty)Create a content property. | 
| 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 a piece of Content from the system. | 
| void | ContentPropertyService. delete(JsonContentProperty property)Removes a content property from the system. | 
| LongTaskSubmission | SpaceService. delete(Space spaceToDelete)Delete the given space. | 
| PageResponse<Content> | ContentService.ContentFetcher. fetchMany(ContentType type,
         PageRequest request) | 
| java.util.Map<ContentType,PageResponse<Content>> | ContentService.ContentFetcher. fetchMappedByContentType(PageRequest request) | 
| Content | AttachmentService. update(Content attachment)Updates the non-data parts of an Attachment  Contentinstance. | 
| Content | ContentService. update(Content content)Updates a piece of content. | 
| JsonContentProperty | ContentPropertyService. update(JsonContentProperty property)Updates a content property. | 
| Space | SpaceService. update(Space space)Updates a space. | 
| 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. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | NotImplementedServiceExceptionIndicates that a particular service is not yet implemented, maps to a 501 error | 
Copyright © 2003-2014 Atlassian. All Rights Reserved.