|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.rest.client.AbstractRemoteService<ContentService>
com.atlassian.confluence.rest.client.RemoteContentServiceImpl
public class RemoteContentServiceImpl
ContentService implementation that communicates with Confluence remotely.
| Nested Class Summary | |
|---|---|
class |
RemoteContentServiceImpl.RemoteContentFinderImpl
|
| Nested classes/interfaces inherited from interface com.atlassian.confluence.rest.client.RemoteContentService |
|---|
RemoteContentService.RemoteContentFetcher, RemoteContentService.RemoteContentFinder, RemoteContentService.RemoteParameterContentFinder, RemoteContentService.RemoteSingleContentFetcher |
| Constructor Summary | |
|---|---|
RemoteContentServiceImpl(AuthenticatedWebResourceProvider provider,
com.google.common.util.concurrent.ListeningExecutorService executor)
|
|
| Method Summary | |
|---|---|
com.atlassian.util.concurrent.Promise<Content> |
create(Content newContent)
Create a piece of content. |
com.atlassian.util.concurrent.Promise<java.lang.Void> |
delete(Content content)
Removes an item of Content from the system. |
RemoteContentService.RemoteContentFinder |
find(Expansion... expansions)
Create a content finder to retrieve content from the remote server |
com.atlassian.util.concurrent.Promise<PageResponse<Content>> |
getChildren(Content parent,
PageRequest pageRequest,
Expansion... expansions)
Retrieve the children of an item of Content. |
com.sun.jersey.api.client.WebResource |
newContentWebResource()
|
com.atlassian.util.concurrent.Promise<Content> |
update(Content content)
Updates a piece of content. |
| Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService |
|---|
addExpansions, addPageRequest, addPageRequestParams, deleteFuture, getFutureGenericCollection, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newRestWebResource, postFuture, postFuture, postFuture, postFutureToPageResponse, putFuture |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteContentServiceImpl(AuthenticatedWebResourceProvider provider,
com.google.common.util.concurrent.ListeningExecutorService executor)
| Method Detail |
|---|
public RemoteContentService.RemoteContentFinder find(Expansion... expansions)
RemoteContentService
find in interface RemoteContentService
public com.atlassian.util.concurrent.Promise<Content> create(Content newContent)
throws ServiceException
RemoteContentService
Valid ContentRepresentations for the ContentBody can be found in the documentation on the
ContentBodyConversionService.
create in interface RemoteContentServicenewContent - the content to create
ServiceException - if the content cannot be created
public com.atlassian.util.concurrent.Promise<Content> update(Content content)
throws ServiceException
RemoteContentService
Valid ContentRepresentations for the ContentBody can be found in the documentation on the
ContentBodyConversionService.
update in interface RemoteContentServicecontent - the updated Content with metadata about the change
ServiceException
public com.atlassian.util.concurrent.Promise<java.lang.Void> delete(Content content)
throws ServiceException
RemoteContentService
delete in interface RemoteContentServicecontent - if of the content to remove
ServiceException - if the content cannot be found, or cannot be deleted
public com.atlassian.util.concurrent.Promise<PageResponse<Content>> getChildren(Content parent,
PageRequest pageRequest,
Expansion... expansions)
RemoteContentService
Children will be Content items of the same type as the parent.
The pageRequest limit is restricted to a maximum page size.
getChildren in interface RemoteContentServiceparent - - the content to retrieve the children forpageRequest - - a pageRequest indicating how much content to retrieve.
public com.sun.jersey.api.client.WebResource newContentWebResource()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||