Appendix

JSON Forms Configuration DEPRECATED

Terminology JSON

This Json configuration is deprecated. Use Yaml configuration instead.

  [
    {
      "Id": "",
      "Evaluator": "",
      "Forms": [
        {
          "FieldVisibility": [
            {
              "Id": "",
              "Mode": ["Create","View","Edit"],
              "Show": true|false,
              "Force": true|false
            }
          ],
          "sets":
          [
            {
              "Id": "",
              "Appearance" : "",
              "Label" : "",
              "Label-id" : "",
              "Template" : "",
              "Fields":
              [
                {
                  "Id": "",
                  "Template" : "",
                  "Parameters" : {
                      "param" : "value"
                  },
                }
              ],
              subsets: []
            }
          ]
        }
      ]
    }
  ]
Forms Configuration of a Type JSON

This Json configuration is deprecated. Use Yaml configuration instead.

    {
    "Id": "xenit:mytype",
    "Evaluator": "node-type",
        "Forms": [
            {
                "FieldVisibility": [
                    {
                        "Id": "cm:name"
                    },
                    {
                        "Id": "cm:categories",
                        "Mode": ["View", "Edit"]
                    }
                ],
                "sets": [
                {
                        "Id" : "title",
                        "Fields" : [
                        {
                                "Id" : "cm:name"
                        }]
                    },
                    {
                        "Id" : "auditable"
                    },
                    {
                        "Id" : "auto"
                    }
                ]
            }
        ]
    }
By Type vs by Aspect JSON

This Json configuration is deprecated. Use Yaml configuration instead.

    [{
        "Id": "cm:titled",
        "Evaluator": "aspect",
        "Forms": [
        {
            "FieldVisibility": [
            {
                "Id": "cm:title",
                "Mode": ["View","Edit"]
            }]
        }]
    }, {
        "Id": "cm:folder",
        "Evaluator": "node-type",
        "Forms": [
        {
            "FieldVisibility": [
            {
                "Id": "cm:title",
                "Mode": ["View"]
            }]
        }]
    }]
Order of Metadata Fields Type JSON

This Json configuration is deprecated. Use Yaml configuration instead.

    {
        "Id": "xenit:mytype",
        "Evaluator": "node-type",
        "Forms": [
            {
                "FieldVisibility": [
                    {
                        "Id": "cm:content",
                        "Show": false
                    },
                    {
                        "Id": "cm:source",
                        "Show": false
                    },
                    {
                        "Id": "cm:destination",
                        "Show": false
                    }
                ],
                "sets": [
                    {
                        "Id": "basic",
                        "Fields": [
                            {
                                "Id": "cm:name"
                            },
                            {
                                "Id": "type"
                            }
                        ]
                    },
                    {
                        "Id": "aspecttitled"
                    },
                    {
                        "Id": "auto"
                    }
                ]
            }
        ]
    }
Order of Metadata Fields Aspect A JSON

This Json configuration is deprecated. Use Yaml configuration instead.

    {
        "Id": "cm:titled",
        "Evaluator": "aspect",
        "Forms": [
            {
                "FieldVisibility": [
                    {
                        "Id": "cm:title",
                        "Show": false
                    },
                    {
                        "Id": "cm:description",
                        "Show": false
                    }
                ],
                "Sets" : [
                    {
                        "Id" : "aspecttitled",
                        "Fields" : [
                            {
                                "Id" : "cm:title"
                            },
                            {
                                "Id" : "cm:description"
                            }
                        ]
                    }
                ]
            }
        ]
    }
Order of Metadata Fields Aspect B JSON

This Json configuration is deprecated. Use Yaml configuration instead.

    [{
        "Id" : "cm:titled",
        "Evaluator" : "aspect",
        "Forms" : [
            {
                "FieldVisibility" : [],
                "sets" : [
                    {
                        "Id" : "title",
                        "Fields" : [
                            {
                            "Id": "cm:title"
                            },
                            {
                                "Id" : "cm:description"
                            }
                        ]
                    }
                ]
            }
        ]
    },
    {
        "Id" : "cm:author",
        "Evaluator" : "aspect",
        "Forms" : [
            {
                "FieldVisibility" : [],
                "sets" : [
                    {
                        "Id" : "title",
                        "Fields" : [
                            {
                                "Id" : "cm:author"
                            }
                        ]
                    }
                ]
            }
        ]
    }]
Configuration of the aspect-picker JSON

This Json configuration is deprecated. Use Yaml configuration instead.

    {
        "Id": "cm:versionable",
        "Evaluator": "aspect",
        "Forms": [
            {
                "FieldVisibility": [
                    {
                        "Id": "cm:title"
                    }
                ],
                "sets": [
                {
                        "Id" : "aspect-picker-set",
                        "Fields" : [
                        {
                            "Id" : "aspect-picker",
                            "Mode": ["Edit", "Create"],
                            "Force": true,
                            "Parameters" : {
                                "aspect.1" : "cm:titled"
                            }
                        }]
                    }]
            }]
    }
Label Colors JSON

This Json configuration is deprecated. Use Yaml configuration instead.

    [{
        "Id" : "default-node",
        "Evaluator" : "string-compare",
        "Forms" : [
        {
            "sets" : [
            {
                "Id" : "",
                "Template" : "gui.controlfactory.fieldset.group",
                "Parameters" :
                {
                    "centered" : "true",
                    "collapsible" : "false",
                    "start-collapsed" : "false"
                },
                "Label" : "Info",
                "Fields" :
                [
                    {
                        "Id" : "cm:name",
                        "Control" : {
                            "Parameters" : {
                                "label-color" : "DarkOrange"
                            }
                        }
                    },
                    {
                        "Id" : "type",
                        "Control" : {
                            "Parameters" : {
                                "label-color" : "DarkOrange"
                            }
                        }
                    }
                ]
            }]
        }]
    }]
Date Picker JSON

This Json configuration is deprecated. Use Yaml configuration instead.

    [{
        "Id": "default-node",
        "Evaluator": "string-compare",
        "Forms": [{
            "sets": [{
                "Id": "example-set",
                "Fields": [{
                    "Id": "fred:exampleDate",
                    "Parameters": {
                        "override-default-value": "today"
                    }
                }]
            }]
        }]
    }]
People Picker JSON

This Json configuration is deprecated. Use Yaml configuration instead.

    [{
        "Id" : "people-picker-example",
        "Evaluator" : "aspect",
        "Forms" : [
        {
            "sets" : [
            {
                "Id" : "example-set",
                "Fields" : [
                {
                    "Id": "fred:examplePeople",
                    "Template" : "gui.controlfactory.property.authority",
                    "Parameters" :
                    {
                        "authority" : "group"
                    }
                }]
            }]
        }]
    }]
Size and Mimetype JSON

This Json configuration is deprecated. Use Yaml configuration instead.

    [{
        "Id": "default-node",
        "Evaluator": "string-compare",
        "Forms": [{
            "sets": [{
                "Id": "example-content-props-set",
                "Fields": [{
                        "Id": "sizeProperty",
                        "label": "Size Prop",
                        "Template": "gui.controlfactory.property.size",
                        "Parameters": {
                            "type": "property",
                            "qname": "cm:content"
                        }
                    },
                    {
                        "Id": "mimeTypeProperty",
                        "label": "Mimetype Prop",
                        "Template": "gui.controlfactory.property.mimetype",
                        "Parameters": {
                            "type": "property",
                            "qname": "cm:content"
                        }
                    }
                ]
            }]
        }]
    }]
Configuration of autocomplete dropdown based on source file Query JSON

This Json configuration is deprecated. Use Yaml configuration instead.

    [
        {
            "Id": "repo.resources",
            "Evaluator": "string-compare",
            "Forms": [
                {
                    "sets": [
                        {
                            "Id": "guid",
                            "Fields": [
                                {
                                    "Id": "lookup",
                                    "Control": {
                                        "Parameters": {
                                            "endpoint": "{url:base}/service/resource/csv/translate?id={0}&format=json&alf_ticket={auth:ticket}",
                                            "resource-key": "guid",
                                            "resource-value": "label",
                                            "resource-error": "error"
                                        }
                                    }
                                },
                                {
                                    "Id": "query",
                                    "Control": {
                                        "Parameters": {
                                            "endpoint": "{url:base}/service/resource/csv/search?property={parameter:qname}&query={0}&format=json&alf_ticket={auth:ticket}",
                                            "resource-key": "guid",
                                            "resource-value": "label",
                                            "resource-error": "error"
                                        }
                                    }
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
Configuration of autocomplete dropdown based on source file Form Configuration JSON

This Json configuration is deprecated. Use Yaml configuration instead.

    [
        {
            "Id" : "sample:myAspect",
            "Evaluator" : "aspect",
            "Forms" : [
                {
                    "sets" : [
                        {
                            "Id" : "dropdown-set",
                            "Label" : "Dropdown Data",
                            "Fields" : [
                                {
                                    "Id" : "sample:myProperty",
                                    "Template" : "gui.controlfactory.property.dropdown",
                                    "Label" : "My property value",
                                    "Parameters" :
                                    {
                                        "type" : "property",
                                        "qname" : "sample:myProperty",
                                        "resolver" : "repo.resources.guid",
                                        "max-display-result" : 10,
                                        "min-input-length" : 1
                                    }
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
Column List Configuration JSON

This Json configuration is deprecated. Use Yaml configuration instead.

    {
        "Id": "default-column-list",
        "Evaluator": "string-compare",
        "Forms": [
            {
                "sets": [
                    {
                        "Id": "System",
                        "Label": "System Properties",
                        "Appearance": "section",
                        "Fields": [
                            {
                                "Id": "Format"
                            },
                            {
                                "Id": "Location"
                            },
                            {
                                "Id": "Info"
                            }
                        ],
                        "subsets": [
                            {
                                "Id": "WorkingCopy",
                                "Appearance": "submenu",
                                "Fields": [
                                    {
                                        "Id": "cm:workingCopyOwner"
                                    }]
                            }]
                    }]
            }]
    }
Column Set Configuration JSON

This Json configuration is deprecated. Use Yaml configuration instead.

    {
        "Id": "default-column-sets",
        "Evaluator": "string-compare",
        "Forms": [{
            "sets": [{
                    "Id": "AuditSet",
                    "Label": "Who / When",
                    "Fields": [{
                            "Id": "cm:author"
                        },
                        {
                            "Id": "cm:modified"
                        }
                    ]
                },
                {
                    "Id": "ByApsectsSets",
                    "Label": "By Aspects",
                    "subsets": [{
                        "Id": "AuditableAspect",
                        "Label": "Auditable",
                        "Fields": [{
                                "Id": "cm:creator"
                            },
                            {
                                "Id": "cm:created"
                            },
                            {
                                "Id": "cm:modifier"
                            },
                            {
                                "Id": "cm:modified"
                            }
                        ]
                    }]
                }
            ]
        }]
    }