@ExperimentalApi public class ContentVersionResource extends Object
| Constructor and Description |
|---|
ContentVersionResource(ContentVersionService contentVersionService) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteContentHistory(ContentId contentId,
int versionNumber)
Delete a historical version.
|
PageResponse<Version> |
getContentHistory(ContentId contentId,
int start,
int limit,
String expand,
javax.ws.rs.core.UriInfo uriInfo)
Get list of content versions in version descending order.
|
Version |
getContentVersion(ContentId contentId,
int versionNumber,
String expand)
Get a version of the content with option to expand on content and its sub fields, by default it expands content on version.
|
Version |
restoreContentHistory(ContentId contentId,
RestData restData,
String expand)
Restore a historical version to be a new current version.
|
public ContentVersionResource(ContentVersionService contentVersionService)
public PageResponse<Version> getContentHistory(ContentId contentId, int start, int limit, String expand, @Context javax.ws.rs.core.UriInfo uriInfo)
contentId - contentId of the CURRENT content entity, NOT the historical ones. As this is the only contentId visible to user.start - limit - expand - uriInfo - public Version getContentVersion(ContentId contentId, int versionNumber, String expand)
contentId - versionNumber - expand - public void deleteContentHistory(ContentId contentId, int versionNumber)
contentId - versionNumber - version number starts from 1 up to current version.public Version restoreContentHistory(ContentId contentId, RestData restData, String expand)
contentId - restData - wrapper object wrappers detailed parameters for this operation.expand - Expansion on newly create current versionCopyright © 2003–2020 Atlassian. All rights reserved.