Liking cljdoc? Tell your friends :D

cral.api.core.versions


create-version-renditionclj

(create-version-rendition ticket node-id version-id body & [opts])

An asynchronous request to create a rendition for version of file node-id~ andversion-id`. The rendition is specified by name id in the request body:

{
  "id": "doclib"
}

Multiple names may be specified as a comma separated list or using a list format:

[
  {
    "id": "doclib"
  },
  {
   "id": "avatar"
  }
]

More info here.

An asynchronous request to create a rendition for version of file `node-id~ and `version-id`.
The rendition is specified by name **id** in the request body:
```json
{
  "id": "doclib"
}
```
Multiple names may be specified as a comma separated list or using a list format:
```json
[
  {
    "id": "doclib"
  },
  {
   "id": "avatar"
  }
]
```
More info [here](https://api-explorer.alfresco.com/api-explorer/?urls.primaryName=Core%20API#/versions/createVersionRendition).
sourceraw docstring

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

get-version-rendition-contentclj

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

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

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

get-version-rendition-infoclj

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

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

Gets the rendition information for `rendition-id` of version of file `node-id` and `version-id`\.
More info [here](https://api-explorer.alfresco.com/api-explorer/?urls.primaryName=Core%20API#/versions/getVersionRendition).
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

list-version-renditionsclj

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

Gets a list of the rendition information for each rendition of the version of file node-id and version-id, including the rendition id. Each rendition returned has a status: CREATED means it is available to view or download, NOT_CREATED means the rendition can be requested. You can use the where parameter in query-params to filter the returned renditions by status. For example, the following where clause will return just the CREATED renditions:

(status='CREATED')

More info here.

Gets a list of the rendition information for each rendition of the version of file `node-id` and `version-id`,
including the rendition id.
Each rendition returned has a **status**: CREATED means it is available to view or download, NOT_CREATED means the
rendition can be requested.
You can use the **where** parameter in `query-params` to filter the returned renditions by status. For example, the
following where clause will return just the CREATED renditions:
```json
(status='CREATED')
```
More info [here](https://api-explorer.alfresco.com/api-explorer/?urls.primaryName=Core%20API#/versions/listVersionRenditions).
sourceraw docstring

revert-versionclj

(revert-version ticket node-id version-id body)
(revert-version ticket node-id version-id body query-params & [opts])

Attempts to revert the version identified by version-id and node-id to the live node. If the node is successfully reverted then the content and metadata for that versioned node will be promoted to the live node and a new version will appear in the version history.
More info here.

Attempts to revert the version identified by `version-id` and `node-id` to the live node.
If the node is successfully reverted then the content and metadata for that versioned node will be promoted to the
live node and a new version will appear in the version history.\
More info [here](https://api-explorer.alfresco.com/api-explorer/?urls.primaryName=Core%20API#/versions/revertVersion).
sourceraw docstring

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

× close