src/__fixtures__/json/api/schemas/validationRule.json

Summary

Maintainability
Test Coverage
{
    "klass": "org.hisp.dhis.validation.ValidationRule",
    "shareable": true,
    "translatable": true,
    "relativeApiEndpoint": "/validationRules",
    "metadata": true,
    "identifiableObject": true,
    "plural": "validationRules",
    "displayName": "Validation Rule",
    "collectionName": "validationRules",
    "implicitPrivateAuthority": false,
    "apiEndpoint": "http://localhost:8080/dhis/api/validationRules",
    "nameableObject": false,
    "embeddedObject": false,
    "defaultPrivate": false,
    "name": "validationRule",
    "namespace": "http://dhis2.org/schema/dxf/2.0",
    "href": "http://localhost:8080/dhis/api/schemas/validationRule",
    "singular": "validationRule",
    "persisted": true,
    "order": 1390,
    "references": [
        "org.hisp.dhis.validation.ValidationRuleGroup",
        "org.hisp.dhis.validation.notification.ValidationNotificationTemplate",
        "org.hisp.dhis.user.User"
    ],
    "authorities": [
        {
            "type": "CREATE_PUBLIC",
            "authorities": ["F_VALIDATIONRULE_PUBLIC_ADD"]
        },
        {
            "type": "CREATE_PRIVATE",
            "authorities": ["F_VALIDATIONRULE_PRIVATE_ADD"]
        },
        { "type": "DELETE", "authorities": ["F_VALIDATIONRULE_DELETE"] }
    ],
    "properties": [
        {
            "relativeApiEndpoint": "/validationRuleGroups",
            "fieldName": "groups",
            "simple": false,
            "required": false,
            "writable": true,
            "collectionName": "validationRuleGroups",
            "min": 0.0,
            "nameableObject": false,
            "klass": "java.util.Set",
            "propertyType": "COLLECTION",
            "oneToOne": false,
            "attribute": false,
            "href": "http://localhost:8080/dhis/api/schemas/validationRuleGroup",
            "owner": false,
            "readable": true,
            "ordered": false,
            "identifiableObject": true,
            "max": 1.7976931348623157e308,
            "cascade": "none",
            "manyToMany": true,
            "collection": true,
            "owningRole": "org.hisp.dhis.validation.ValidationRuleGroup.members",
            "itemPropertyType": "REFERENCE",
            "collectionWrapping": true,
            "itemKlass": "org.hisp.dhis.validation.ValidationRuleGroup",
            "inverseRole": "org.hisp.dhis.validation.ValidationRule.groups",
            "apiEndpoint": "http://localhost:8080/dhis/api/validationRuleGroups",
            "embeddedObject": false,
            "unique": false,
            "name": "validationRuleGroup",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false
        },
        {
            "fieldName": "code",
            "description": "The unique code for this Object.",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0.0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "IDENTIFIER",
            "oneToOne": false,
            "attribute": true,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 50.0,
            "manyToMany": false,
            "length": 50,
            "collection": false,
            "embeddedObject": false,
            "unique": true,
            "name": "code",
            "persisted": true,
            "manyToOne": false
        },
        {
            "fieldName": "access",
            "simple": false,
            "required": false,
            "writable": true,
            "min": 0.0,
            "nameableObject": false,
            "klass": "org.hisp.dhis.security.acl.Access",
            "propertyType": "COMPLEX",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 1.7976931348623157e308,
            "manyToMany": false,
            "collection": false,
            "embeddedObject": false,
            "unique": false,
            "name": "access",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "manyToOne": false
        },
        {
            "fieldName": "importance",
            "simple": true,
            "required": false,
            "writable": true,
            "nameableObject": false,
            "klass": "org.hisp.dhis.validation.Importance",
            "propertyType": "CONSTANT",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "manyToMany": false,
            "length": 50,
            "collection": false,
            "embeddedObject": false,
            "unique": false,
            "name": "importance",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": ["HIGH", "MEDIUM", "LOW"]
        },
        {
            "fieldName": "displayName",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0.0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 2.147483647e9,
            "manyToMany": false,
            "collection": false,
            "embeddedObject": false,
            "unique": false,
            "name": "displayName",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "manyToOne": false
        },
        {
            "fieldName": "publicAccess",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 8.0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 8.0,
            "manyToMany": false,
            "length": 8,
            "collection": false,
            "embeddedObject": false,
            "unique": false,
            "name": "publicAccess",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false
        },
        {
            "fieldName": "description",
            "translationKey": "DESCRIPTION",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 2.0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 2.147483647e9,
            "manyToMany": false,
            "length": 2147483647,
            "collection": false,
            "embeddedObject": false,
            "unique": false,
            "name": "description",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false
        },
        {
            "fieldName": "operator",
            "simple": true,
            "required": true,
            "writable": true,
            "nameableObject": false,
            "klass": "org.hisp.dhis.expression.Operator",
            "propertyType": "CONSTANT",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "embeddedObject": false,
            "unique": false,
            "name": "operator",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": [
                "equal_to",
                "not_equal_to",
                "greater_than",
                "greater_than_or_equal_to",
                "less_than",
                "less_than_or_equal_to",
                "compulsory_pair",
                "exclusive_pair"
            ]
        },
        {
            "fieldName": "organisationUnitLevels",
            "simple": true,
            "required": false,
            "writable": true,
            "collectionName": "organisationUnitLevels",
            "min": 0.0,
            "nameableObject": false,
            "klass": "java.util.Set",
            "propertyType": "COLLECTION",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 1.7976931348623157e308,
            "cascade": "none",
            "manyToMany": false,
            "collection": true,
            "owningRole": "org.hisp.dhis.validation.ValidationRule.organisationUnitLevels",
            "itemPropertyType": "INTEGER",
            "collectionWrapping": true,
            "itemKlass": "java.lang.Integer",
            "embeddedObject": false,
            "unique": false,
            "name": "organisationUnitLevels",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false
        },
        {
            "fieldName": "externalAccess",
            "simple": true,
            "required": false,
            "writable": true,
            "nameableObject": false,
            "klass": "java.lang.Boolean",
            "propertyType": "BOOLEAN",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "manyToMany": false,
            "collection": false,
            "embeddedObject": false,
            "unique": false,
            "name": "externalAccess",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "manyToOne": false
        },
        {
            "fieldName": "lastUpdated",
            "description": "The date this object was last updated.",
            "simple": true,
            "required": false,
            "writable": true,
            "nameableObject": false,
            "klass": "java.util.Date",
            "propertyType": "DATE",
            "oneToOne": false,
            "attribute": true,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "embeddedObject": false,
            "unique": false,
            "name": "lastUpdated",
            "persisted": true,
            "manyToOne": false
        },
        {
            "fieldName": "leftSide",
            "simple": false,
            "required": true,
            "writable": true,
            "min": 0.0,
            "nameableObject": false,
            "klass": "org.hisp.dhis.expression.Expression",
            "propertyType": "COMPLEX",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 255.0,
            "cascade": "all",
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "owningRole": "org.hisp.dhis.validation.ValidationRule.leftSide",
            "embeddedObject": false,
            "unique": false,
            "name": "leftSide",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": true
        },
        {
            "relativeApiEndpoint": "/validationNotificationTemplates",
            "fieldName": "notificationTemplates",
            "simple": false,
            "required": false,
            "writable": true,
            "collectionName": "notificationTemplates",
            "min": 0.0,
            "nameableObject": false,
            "klass": "java.util.Set",
            "propertyType": "COLLECTION",
            "oneToOne": false,
            "attribute": false,
            "href": "http://localhost:8080/dhis/api/schemas/validationNotificationTemplate",
            "owner": false,
            "readable": true,
            "ordered": false,
            "identifiableObject": true,
            "max": 1.7976931348623157e308,
            "cascade": "none",
            "manyToMany": true,
            "collection": true,
            "owningRole": "org.hisp.dhis.validation.notification.ValidationNotificationTemplate.validationRules",
            "itemPropertyType": "REFERENCE",
            "collectionWrapping": true,
            "itemKlass": "org.hisp.dhis.validation.notification.ValidationNotificationTemplate",
            "inverseRole": "org.hisp.dhis.validation.ValidationRule.notificationTemplates",
            "apiEndpoint": "http://localhost:8080/dhis/api/validationNotificationTemplates",
            "embeddedObject": false,
            "unique": false,
            "name": "notificationTemplates",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false
        },
        {
            "fieldName": "translations",
            "simple": false,
            "required": false,
            "writable": true,
            "collectionName": "translations",
            "min": 0.0,
            "nameableObject": false,
            "klass": "java.util.Set",
            "propertyType": "COLLECTION",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 1.7976931348623157e308,
            "cascade": "all-delete-orphan",
            "manyToMany": true,
            "collection": true,
            "owningRole": "org.hisp.dhis.validation.ValidationRule.translations",
            "itemPropertyType": "COMPLEX",
            "collectionWrapping": true,
            "itemKlass": "org.hisp.dhis.translation.ObjectTranslation",
            "embeddedObject": false,
            "unique": false,
            "name": "translation",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false
        },
        {
            "fieldName": "uid",
            "description": "The Unique Identifier for this Object.",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 11.0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "IDENTIFIER",
            "oneToOne": false,
            "attribute": true,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 11.0,
            "manyToMany": false,
            "length": 11,
            "collection": false,
            "embeddedObject": false,
            "unique": true,
            "name": "id",
            "persisted": true,
            "manyToOne": false
        },
        {
            "fieldName": "href",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0.0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "URL",
            "oneToOne": false,
            "attribute": true,
            "owner": false,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 1.7976931348623157e308,
            "manyToMany": false,
            "collection": false,
            "embeddedObject": false,
            "unique": false,
            "name": "href",
            "persisted": false,
            "manyToOne": false
        },
        {
            "relativeApiEndpoint": "/users",
            "fieldName": "lastUpdatedBy",
            "simple": false,
            "required": false,
            "writable": true,
            "nameableObject": false,
            "klass": "org.hisp.dhis.user.User",
            "propertyType": "REFERENCE",
            "oneToOne": false,
            "attribute": false,
            "href": "http://localhost:8080/dhis/api/schemas/user",
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": true,
            "cascade": "none",
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "owningRole": "org.hisp.dhis.validation.ValidationRule.lastUpdatedBy",
            "apiEndpoint": "http://localhost:8080/dhis/api/users",
            "embeddedObject": false,
            "unique": false,
            "name": "lastUpdatedBy",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": true
        },
        {
            "fieldName": "userGroupAccesses",
            "simple": false,
            "required": false,
            "writable": true,
            "collectionName": "userGroupAccesses",
            "min": 0.0,
            "nameableObject": false,
            "klass": "java.util.Set",
            "propertyType": "COLLECTION",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 1.7976931348623157e308,
            "cascade": "all-delete-orphan",
            "manyToMany": true,
            "collection": true,
            "owningRole": "org.hisp.dhis.validation.ValidationRule.userGroupAccesses",
            "itemPropertyType": "COMPLEX",
            "collectionWrapping": true,
            "itemKlass": "org.hisp.dhis.user.UserGroupAccess",
            "embeddedObject": true,
            "unique": false,
            "name": "userGroupAccess",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false
        },
        {
            "fieldName": "created",
            "description": "The date this object was created.",
            "simple": true,
            "required": false,
            "writable": true,
            "nameableObject": false,
            "klass": "java.util.Date",
            "propertyType": "DATE",
            "oneToOne": false,
            "attribute": true,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "embeddedObject": false,
            "unique": false,
            "name": "created",
            "persisted": true,
            "manyToOne": false
        },
        {
            "fieldName": "attributeValues",
            "simple": false,
            "required": false,
            "writable": true,
            "collectionName": "attributeValues",
            "min": 0.0,
            "nameableObject": false,
            "klass": "java.util.Set",
            "propertyType": "COLLECTION",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 1.7976931348623157e308,
            "manyToMany": false,
            "collection": true,
            "itemPropertyType": "COMPLEX",
            "collectionWrapping": true,
            "itemKlass": "org.hisp.dhis.attribute.AttributeValue",
            "embeddedObject": false,
            "unique": false,
            "name": "attributeValue",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "manyToOne": false
        },
        {
            "fieldName": "rightSide",
            "simple": false,
            "required": true,
            "writable": true,
            "min": 0.0,
            "nameableObject": false,
            "klass": "org.hisp.dhis.expression.Expression",
            "propertyType": "COMPLEX",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 255.0,
            "cascade": "all",
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "owningRole": "org.hisp.dhis.validation.ValidationRule.rightSide",
            "embeddedObject": false,
            "unique": false,
            "name": "rightSide",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": true
        },
        {
            "fieldName": "periodType",
            "simple": true,
            "required": true,
            "writable": true,
            "min": 0.0,
            "nameableObject": false,
            "klass": "org.hisp.dhis.period.PeriodType",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 255.0,
            "cascade": "none",
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "owningRole": "org.hisp.dhis.validation.ValidationRule.periodType",
            "embeddedObject": false,
            "unique": false,
            "name": "periodType",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": true
        },
        {
            "fieldName": "instruction",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0.0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 2.147483647e9,
            "manyToMany": false,
            "length": 2147483647,
            "collection": false,
            "embeddedObject": false,
            "unique": false,
            "name": "instruction",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false
        },
        {
            "fieldName": "userAccesses",
            "simple": false,
            "required": false,
            "writable": true,
            "collectionName": "userAccesses",
            "min": 0.0,
            "nameableObject": false,
            "klass": "java.util.Set",
            "propertyType": "COLLECTION",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 1.7976931348623157e308,
            "cascade": "all-delete-orphan",
            "manyToMany": true,
            "collection": true,
            "owningRole": "org.hisp.dhis.validation.ValidationRule.userAccesses",
            "itemPropertyType": "COMPLEX",
            "collectionWrapping": true,
            "itemKlass": "org.hisp.dhis.user.UserAccess",
            "embeddedObject": true,
            "unique": false,
            "name": "userAccess",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false
        },
        {
            "fieldName": "name",
            "translationKey": "NAME",
            "description": "The name of this Object. Required and unique.",
            "simple": true,
            "required": true,
            "writable": true,
            "min": 1.0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": true,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 2.147483647e9,
            "manyToMany": false,
            "length": 230,
            "collection": false,
            "embeddedObject": false,
            "unique": true,
            "name": "name",
            "persisted": true,
            "manyToOne": false
        },
        {
            "fieldName": "skipFormValidation",
            "simple": true,
            "required": false,
            "writable": true,
            "nameableObject": false,
            "klass": "java.lang.Boolean",
            "propertyType": "BOOLEAN",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "embeddedObject": false,
            "unique": false,
            "name": "skipFormValidation",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false
        },
        {
            "relativeApiEndpoint": "/users",
            "fieldName": "user",
            "simple": false,
            "required": false,
            "writable": true,
            "nameableObject": false,
            "klass": "org.hisp.dhis.user.User",
            "propertyType": "REFERENCE",
            "oneToOne": false,
            "attribute": false,
            "href": "http://localhost:8080/dhis/api/schemas/user",
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": true,
            "cascade": "none",
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "owningRole": "org.hisp.dhis.validation.ValidationRule.user",
            "apiEndpoint": "http://localhost:8080/dhis/api/users",
            "embeddedObject": false,
            "unique": false,
            "name": "user",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": true
        }
    ]
}