|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.api.impl.service.content.ContentServiceImpl
public class ContentServiceImpl
Server implementation of the ContentService
. Contrast with the RemoteContentService.
Nested Class Summary | |
---|---|
class |
ContentServiceImpl.ValidatorImpl
|
Nested classes/interfaces inherited from interface com.atlassian.confluence.api.service.content.ContentService |
---|
ContentService.ContentFetcher, ContentService.ContentFinder, ContentService.ParameterContentFinder, ContentService.SingleContentFetcher, ContentService.Validator |
Constructor Summary | |
---|---|
ContentServiceImpl(PageManagerInternal pageManager,
CommentManagerInternal commentManager,
PermissionManager permissionManager,
ContentFactory contentFactory,
SpaceManager spaceManager,
PageService pageService,
BlogPostService blogPostService,
CommentService commentService,
ContentBodyConversionService contentBodyConversionService,
AttachmentService attachmentService,
ContentFinderFactory contentFinderFactory)
|
Method Summary | |
---|---|
Content |
buildContent(ContentEntityObject entity,
Expansion... expansions)
|
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. |
void |
setPermissionManager(PermissionManager permissionManager)
|
Content |
update(Content updatedContent)
Updates a piece of content. |
ContentServiceImpl.ValidatorImpl |
validator()
Get the validator view of the ContentService. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentServiceImpl(PageManagerInternal pageManager, CommentManagerInternal commentManager, PermissionManager permissionManager, ContentFactory contentFactory, SpaceManager spaceManager, PageService pageService, BlogPostService blogPostService, CommentService commentService, ContentBodyConversionService contentBodyConversionService, AttachmentService attachmentService, ContentFinderFactory contentFinderFactory)
Method Detail |
---|
public ContentService.ContentFinder find(Expansion... expansions)
ContentService
contentService.find()
.withSpace("DEV")
.withType(ContentType.BLOG_POST)
.fetchMany(new SimplePageRequest(0,50);
find
in interface ContentService
public Content create(Content newContent) throws ServiceException
ContentService
Valid ContentRepresentation
s for the ContentBody
can be found in the documentation on the
ContentBodyConversionService
.
create
in interface ContentService
newContent
- the content to create
ServiceException
- if the content cannot be createdpublic Content update(Content updatedContent) throws ServiceException
ContentService
Valid ContentRepresentation
s for the ContentBody
can be found in the documentation on the
ContentBodyConversionService
.
update
in interface ContentService
updatedContent
- the updated Content
ServiceException
public void delete(Content content) throws ServiceException
ContentService
delete
in interface ContentService
content
- the content to remove
ServiceException
- if the content cannot be found, or cannot be deletedpublic ContentServiceImpl.ValidatorImpl validator()
ContentService
validator
in interface ContentService
public Content buildContent(ContentEntityObject entity, Expansion... expansions)
public void setPermissionManager(PermissionManager permissionManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |