public interface TrashManager
Modifier and Type | Method and Description |
---|---|
void |
emptyTrash(Space space)
Purge all of the trash in a given space.
|
int |
getNumberOfItemsInTrash(Space spaceKeypace)
Retrieve the total number of items in the trash for a given space.
|
List<ContentEntityObject> |
getTrashContents(Space space,
int offset,
int count)
Retrieve a subset of the contents of the trash for a particular space.
|
boolean |
purge(String spaceKey,
long contentId)
Remove one item from the trash.
|
void emptyTrash(Space space)
space
- int getNumberOfItemsInTrash(Space spaceKeypace)
spaceKeypace@return
- the number of items in the trash for that spaceboolean purge(String spaceKey, long contentId)
spaceKey
- the space to purge the trash fromcontentId
- the id of the item to remove from the trash @return true if content was purged, false if no content was found with that IDIllegalStateException
- if the content is not in the trash, or is in the wrong spaceList<ContentEntityObject> getTrashContents(Space space, int offset, int count)
space
- offset
- the offset of the first item to retrieve (0-based)count
- the maximum number of items to retrieveCopyright © 2003–2020 Atlassian. All rights reserved.