|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.rest.client.AbstractRemoteService<ContentTrashService> com.atlassian.confluence.rest.client.impl.RemoteContentTrashServiceImpl
public class RemoteContentTrashServiceImpl
ContentTrashService
implementation that communicates with Confluence remotely.
Constructor Summary | |
---|---|
RemoteContentTrashServiceImpl(AuthenticatedWebResourceProvider provider,
com.google.common.util.concurrent.ListeningExecutorService executor)
|
Method Summary | |
---|---|
com.atlassian.util.concurrent.Promise<Void> |
purge(Content content)
Permanently delete a piece of content. |
com.atlassian.util.concurrent.Promise<Content> |
restore(Content content)
Restore a trashed piece of content. |
com.atlassian.util.concurrent.Promise<Void> |
trash(Content content)
Trash a piece of content. |
Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService |
---|
addExpansions, addPageRequest, addPageRequestParams, deleteFuture, deleteFuture, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, 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 RemoteContentTrashServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
Method Detail |
---|
public com.atlassian.util.concurrent.Promise<Void> trash(Content content)
RemoteContentTrashService
The RemoteContentTrashService.purge(Content)
method can be used for content that doesn't support trashing.
Currently, only content with types ContentType.PAGE
and ContentType.BLOG_POST
support trashing.
trash
in interface RemoteContentTrashService
content
- the content to be trashed
public com.atlassian.util.concurrent.Promise<Content> restore(Content content)
RemoteContentTrashService
restore
in interface RemoteContentTrashService
content
- the content to be restored
public com.atlassian.util.concurrent.Promise<Void> purge(Content content)
RemoteContentTrashService
There are two main cases:
purge
in interface RemoteContentTrashService
content
- the content to be purged
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |