| Package | Description | 
|---|---|
| com.atlassian.confluence.api.service.content | |
| com.atlassian.confluence.api.service.exceptions | 
| Modifier and Type | Method and Description | 
|---|---|
| Content | ContentService. create(Content newContent)Create a piece of content. | 
| void | ContentService. delete(Content content)Removes an item of Content from the system. | 
| com.atlassian.fugue.Option<Macro> | ContentService. findMacro(java.lang.String contentId,
         java.lang.String versionId,
         java.lang.String hash,
         Expansion... expansions)Retrieve details about a macro matching the page, version and macro hash. | 
| Content | ContentService. update(Content content)Updates a piece of content. | 
| ValidationResult | ContentService. 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.