Liking cljdoc? Tell your friends :D

cral.api.core.versions


delete-versionclj

(delete-version ticket node-id version-id & [opts])

Delete the version identified by version-id and node-id. If the version is successfully deleted then the content and metadata for that versioned node will be deleted and will no longer appear in the version history. This operation cannot be undone. If the most recent version is deleted the live node will revert to the next most recent version. We currently do not allow the last version to be deleted. If you wish to clear the history then you can remove the cm:versionable aspect (via nodes/update-node) which will also disable versioning. In this case, you can re-enable versioning by adding back the cm:versionable aspect or using the version params (major-version and comment) on a subsequent file content update.
More info here.

Delete the version identified by `version-id` and `node-id`.
If the version is successfully deleted then the content and metadata for that versioned node will be deleted and will no longer appear in the version history. This operation cannot be undone.
If the most recent version is deleted the live node will revert to the next most recent version.
We currently do not allow the last version to be deleted. If you wish to clear the history then you can remove the **cm:versionable** aspect (via [[nodes/update-node]]) which will also disable versioning.
In this case, you can re-enable versioning by adding back the **cm:versionable** aspect or using the version params (major-version and comment) on a subsequent file content update.\
More info [here](https://api-explorer.alfresco.com/api-explorer/?urls.primaryName=Core%20API#/versions/deleteVersion).
sourceraw docstring

get-version-contentclj

(get-version-content ticket node-id version-id)
(get-version-content ticket node-id version-id query-params & [opts])

Gets the version content for version-id of file node node-id.
More info here.

Gets the version content for `version-id` of file node `node-id`.\
More info [here](https://api-explorer.alfresco.com/api-explorer/?urls.primaryName=Core%20API#/versions/getVersionContent).
sourceraw docstring

get-version-informationclj

(get-version-information ticket node-id version-id & [opts])

Gets the version information for version-id of file node node-id.
More info here.

Gets the version information for `version-id` of file node `node-id`.\
More info [here](https://api-explorer.alfresco.com/api-explorer/?urls.primaryName=Core%20API#/versions/getVersion).
sourceraw docstring

list-version-historyclj

(list-version-history ticket node-id)
(list-version-history ticket node-id query-params & [opts])

Gets the version history as an ordered list of versions for the specified node-id. The list is ordered in descending modified order. So the most recent version is first and the original version is last in the list.
More info here.

Gets the version history as an ordered list of versions for the specified `node-id`.
The list is ordered in descending modified order. So the most recent version is first and the original version is last in the list.\
More info [here](https://api-explorer.alfresco.com/api-explorer/?urls.primaryName=Core%20API#/versions/listVersionHistory).
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close