Page Properties | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||
Resources & Remarks
Modification History
|
...
Tenant-specific (or app-specific) properties and object types should be defined in a tenant (or app) schema, whereas the properties and object types defined in the global schema are available for all tenants and apps.
Schema Outline
A schema contains property definitions and object type definitions in XML format in the following mandatory order. It is possible to skip parts but not to change their order.
- Label (as of 2023 Autumn)
- Property definitions
- Object Type definitions:
- Document type definitions
- Folder type definitions
- Secondary object type definitions
The label
is an optional string field to specify a project-specific schema versioning information. Its string value is limited to 128 characters.
Code Block | ||||
---|---|---|---|---|
| ||||
<schema xmlns="http://optimal-systems.org/ns/dmscloud/schema/v5.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://optimal-systems.org/ns/dmscloud/schema/v5.0/ dmsCloud-schema.xsd"> <propertyStringDefinition> <id>from</id> <propertyType>string</propertyType> <cardinality>single</cardinality> <required>true</required> </propertyStringDefinition> <propertyStringDefinition> <id>to</id> <propertyType>string</propertyType> <cardinality>multi</cardinality> <required>true</required> </propertyStringDefinition> <propertyStringDefinition> <id>subject</id> <propertyType>string</propertyType> <cardinality>single</cardinality> <required>true</required> <defaultValue>hello</defaultValue> <maxLength>20</maxLength> <minLength>4</minLength> </propertyStringDefinition> <propertyDateTimeDefinition> <id>received</id> <propertyType>datetime</propertyType> <cardinality>single</cardinality> <required>true</required> </propertyDateTimeDefinition> <typeDocumentDefinition> <id>email</id> <baseId>system:document</baseId> <propertyReference>from</propertyReference> <propertyReference>to</propertyReference> <propertyReference>received</propertyReference> <contentStreamAllowed>required</contentStreamAllowed> </typeDocumentDefinition> </schema> |
...
Retrieval | Validation | Update | |
---|---|---|---|
global schema | GET /api/system/schema | POST /api/system/schema/validate | POST /api/system/schema |
app schema | GET /api/system/apps/{app}/schema | POST /api/system/apps/{app}/schema/validate | POST /api/system/apps/{app}/schema |
tenant schema of any tenant | GET /api/system/tenants/{tenant}/schema | POST /api/system/tenants/{tenant}/schema/validate | POST /api/system/tenants/{tenant}/schema |
tenant schema of the own tenant | POST /api/admin/schema/validate | POST /api/admin/schema |
Anchor | ||||
---|---|---|---|---|
|
Naming Conventions for Property and Object Type IDs
...
Note | ||
---|---|---|
| ||
As of 2023 Spring, the predefined object type |
Custom document object type definitions have the following specific attributes:
...
As of 2023 Spring, the predefined object type system:document
automatically has a floating reference on all SOTs that are available in the applied tenant schema. Nevertheless, the rules for the contentStreamAllowed
attribute for the the individual SOTs have to be considered before they are assigned to an object.
The property groups of static referenced secondary object types are automatically available in all instances of the object type. Floating secondary object types can be handled in a flexible way during the import (POST /api/dms/objects endpoint) or at runtime for already existing instances of an object type with an update (POST /api/dms/objects/{objectId} / PATCH /api/dms/objects/{objectId}). The keywords "add":,
"value":
or "remove":
can be used in the "system:secondaryObjecttypeIds":
property area of the metadata.json filecan.
...
Attribute | Type | Required | Description |
---|---|---|---|
| Enum | no | Can substantiate the For the final document, content will be For the final document, content will be Conflict situation leading to invalid documents: any combination of at least once
If |
...
Info | |||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||
Read on
|
...