Member Definition
Member Definition Object
The Member Definition Object defines either a property or relation definition on an entity definition.
Property Definitions
There are eight types of property definitions: Boolean, Decimal, Integer, Long, String, DateTime, File Reference and Json. Each contains the following properties:
Name |
Type |
Description |
---|---|---|
|
String |
The type of property. Can be one of the following: "Boolean", "Decimal", "Integer", "Long", "String", "DateTime", "FileReference" or "Json". |
|
String |
The name of the property. |
|
Labels |
The labels of this property. |
|
Boolean |
True if this property is searchable. |
|
Boolean |
True if this property must have a value during validation. |
|
Boolean |
True if this property has multiple values. |
|
Boolean |
True if this property has multiple languages. |
|
Boolean |
True if this property is used to describe the entity. Only one properties in an entity definition can be set to true. |
For property definitions of type "String", two more properties are available:
Name |
Type |
Description |
---|---|---|
|
Boolean |
True if this string property supports line breaks. |
|
String |
A string containing a regular expression that the property value must match. |
Relation Definitions
Relation definitions contain the following properties:
Name |
Type |
Description |
---|---|---|
|
String |
Contains "Relation" to define this member definition as a relation definition. |
|
String |
The name of the relation. |
|
Labels |
The labels of the relation. |
|
String |
Contains either "Parent" or "Child" to describe if this is the parent or child side of the relation. |
|
Boolean |
True if this property supports searching. |
|
String |
Contains either "OneToOne" or "OneToMany" to describe the cardinality of this relation. |
|
Boolean |
True if at least one child is required for this relation to be valid. |
|
Boolean |
True if at least one parent is required for this relation to be valid. |
|
Link |
A link to the entity definition for the related entities. |
|
Boolean |
True if this relation participates in resolving permissions. |
Example
See Entity Definition Object for an example representation