|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ExperimentalApi public interface ContentService
Provides methods for creating, reading, updating and deleting Confluence Content
objects such as
Pages, BlogPosts and Comments.
Nested Class Summary | |
---|---|
static interface |
ContentService.ContentFetcher
A content fetcher that also allows fetching many, this exists as a separate interface to allow the type system to only offer fetchMany methods when appropriate. |
static interface |
ContentService.ContentFinder
A finder for locating content |
static interface |
ContentService.ParameterContentFinder
A content finder allowing various parameters to be set to restrict the fetched content. |
static interface |
ContentService.SingleContentFetcher
|
static interface |
ContentService.Validator
Provides methods for validating the create, update and delete methods. |
Method Summary | |
---|---|
Content |
create(Content newContent)
Create a piece of content. |
void |
delete(Content content)
Removes a piece of Content from the system. |
ContentService.ContentFinder |
find(Expansion... expansions)
Create a ContentFinder for locating content, the expansions will be applied to each piece of content that matches the finder. |
Content |
update(Content content)
Updates a piece of content. |
ContentService.Validator |
validator()
Get the validator view of the ContentService. |
Method Detail |
---|
ContentService.ContentFinder find(Expansion... expansions)
contentService.find()
.withSpace("DEV")
.withType(ContentType.BLOG_POST)
.fetchMany(new SimplePageRequest(0,50);
expansions
-
Content create(Content newContent) throws ServiceException
Valid ContentRepresentation
s for the ContentBody
can be found in the documentation on the
ContentBodyConversionService
.
newContent
- the content to create
ServiceException
- if the content cannot be createdContent update(Content content) throws ServiceException
Valid ContentRepresentation
s for the ContentBody
can be found in the documentation on the
ContentBodyConversionService
.
content
- the updated Content
ServiceException
void delete(Content content) throws ServiceException
content
- the content to remove
ServiceException
- if the content cannot be found, or cannot be deletedContentService.Validator validator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |