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.

GET {{core}}/rest/virtualfolderclass HTTP/1.1

-- URL parameters --
core: FlowerDocs Core host

-- Headers --
token: {{token}}
Content-Type: application/json

Virtual folder class creation

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

POST {{core}}/rest/virtualfolderclass HTTP/1.1

-- URL parameters --
core: FlowerDocs Core host

-- Headers --
token: {{token}}
Content-Type: application/json

-- Body (json) --
[{
"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.

POST {{core}}/rest/virtualfolderclass/{ids} HTTP/1.1

-- URL parameters --
core: FlowerDocs Core host
ids: comma-separated list of virtual folder class identifiers to be updated

-- Headers --

token: {{token}}
Content-Type: application/json

-- Body (json) --
[{
"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.

GET {{core}}/rest/virtualfolderclass/{ids} HTTP/1.1

-- URL parameters --
core: FlowerDocs Core host
ids: comma-separated list of virtual folder class identifiers to be retrieved

-- Headers --
token: {{token}}
Content-Type: application/json

Virtual folder class deletion

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

DELETE {{core}}/rest/virtualfolderclass/{ids} HTTP/1.1

-- URL parameters --
core: FlowerDocs Core host
ids: comma-separated list of virtual folder class identifiers to be deleted

-- Headers --
token: {{token}}
Content-Type: application/json