Skip to main content

The VirtualFolderClass service exposes all the operations available around the VirtualFolderClass type components.

Retrieving virtual folder classes

The examples below show how to retrieve all virtual folder classes.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
curl -X GET "<CORE_HOST>/rest/virtualfolderclass" \
-H "token: <TOKEN>"

Virtual folder class creation

The examples below show how to create ACLs using the operation of create.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
curl -X POST "<CORE_HOST>/rest/virtualfolderclass" \
-H "token: <TOKEN>" \
-H "Content-Type: application/json" \
-d '[{
"searches": [
{
"category": "DOCUMENT",
"request": {
"selectClause": {
"fields": [
"CanalEntree",
"ServiceDestinataire",
"TypeCourrier"
]
},
"filterClauses": [
{
"type": "com.flower.docs.domain.search.AndClause",
"criteria": [
{
"name": "classid",
"operator": "EQUALS_TO",
"type": "STRING",
"values": [
"CourrierEntrant"
]
}
]
}
],
"orderClauses": [
{
"name": "DateCourrier",
"type": "TIMESTAMP",
"ascending": false
}
],
"start": 0,
"max": 0,
"aggregation": {
"type": "com.flower.docs.domain.search.FieldAggregation",
"field": "DateCourrier"
}
},
"displayNames": [
{
"language": "EN"
},
{
"language": "FR"
}
],
"id": "searchCourrierEntrant"
}
],
"id": "TestVF",
"data": {
"owner": "fadmin",
"creationDate": "2023-08-28 10:41:52.340 +0200",
"lastUpdateDate": "2023-08-28 10:43:49.169 +0200",
"ACL": "acl-distribution-tab"
},
"displayNames": [
{
"value": "TestVF",
"language": "EN"
},
{
"value": "TestVF",
"language": "FR"
}
],
"descriptions": [
{
"language": "EN"
},
{
"language": "FR"
}
],
"RetentionDuration": {
"value": 0,
"unit": "MONTH"
},
"category": "VIRTUAL_FOLDER",
"active": false
}]'

Virtual folder class modification

This operation updates the data of a virtual folder class: tags and search

info

This service operates on a cancel and replace basis, so all tag values must be supplied by the service at the time of update. It is therefore advisable to retrieve the virtual folder class, make the modifications and call the update service.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
# <IDS>: comma-separated list of virtual folder class identifiers to be updated
curl -X POST "<CORE_HOST>/rest/virtualfolderclass/<IDS>" \
-H "token: <TOKEN>" \
-H "Content-Type: application/json" \
-d '[{
"searches": [
{
"category": "DOCUMENT",
"request": {
"selectClause": {
"fields": [
"CanalEntree",
"ServiceDestinataire",
"TypeCourrier",
"ClientId"
]
},
"filterClauses": [
{
"type": "com.flower.docs.domain.search.AndClause",
"criteria": [
{
"name": "classid",
"operator": "EQUALS_TO",
"type": "STRING",
"values": [
"CourrierEntrant"
]
}
]
}
],
"orderClauses": [
{
"name": "DateCourrier",
"type": "TIMESTAMP",
"ascending": false
}
],
"start": 0,
"max": 0,
"aggregation": {
"type": "com.flower.docs.domain.search.FieldAggregation",
"field": "DateCourrier"
}
},
"displayNames": [
{
"language": "EN"
},
{
"language": "FR"
}
],
"id": "searchCourrierEntrant"
}
],
"id": "TestVF",
"data": {
"owner": "fadmin",
"creationDate": "2023-08-28 10:41:52.340 +0200",
"lastUpdateDate": "2023-08-28 10:43:49.169 +0200",
"ACL": "acl-distribution-tab"
},
"displayNames": [
{
"value": "TestVF",
"language": "EN"
},
{
"value": "TestVF",
"language": "FR"
}
],
"descriptions": [
{
"language": "EN"
},
{
"language": "FR"
}
],
"RetentionDuration": {
"value": 0,
"unit": "MONTH"
},
"category": "VIRTUAL_FOLDER",
"active": false
}]'

Virtual folder class search

The example below shows how to retrieve a virtual folder class from a list of identifiers.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
# <IDS>: comma-separated list of virtual folder class identifiers to be retrieved
curl -X GET "<CORE_HOST>/rest/virtualfolderclass/<IDS>" \
-H "token: <TOKEN>"

Virtual folder class deletion

This operation deletes a list of virtual folder classes from a list of identifiers.

# <CORE_HOST>: FlowerDocs Core base URL
# <TOKEN>: authentication token
# <IDS>: comma-separated list of virtual folder class identifiers to be deleted
curl -X DELETE "<CORE_HOST>/rest/virtualfolderclass/<IDS>" \
-H "token: <TOKEN>"