The new trash management functions in the remote API need to be documented. I've written a quick first draft below, hopefully that will help.
Under Remote Methods > Spaces > Management
- ContentSummaries getTrashContents(String token, String spaceKey, int offset, int count) - get the contents of the trash for the given space, starting at 'offset' and returning at most 'count' items.
- boolean purgeFromTrash(String token, String spaceKey, long contentId) - remove some content from the trash in the given space, deleting it permanently
- boolean emptyTrash(String token, String spaceKey) - remove all content from the trash in the given space, deleting them permanently
Under Data Objects:
ContentSummaries
Key |
Type |
Value |
totalAvailable |
int |
The total number of content available to be retrieved |
offset |
int |
the index of the first content retrieved |
content |
Vector of ContentSummary |
list of the retrieved content |
ContentSummary
Key |
Type |
Value |
id |
String |
the id of the content |
type |
String |
The type of content (e.g. "page", "comment", "blog") |
space |
String |
the key of the space to which the content belongs |
status |
String |
the current status of the content (e.g. "current", "deleted") |
title |
String |
the title of the content |
created |
Date |
timestamp page was created |
creator |
String |
username of the creator |
modified |
Date |
timestamp content was modified |
modifier |
String |
username of content's last modifier |