src/__fixtures__/json/api/schemas/legendSet.json
{
"klass": "org.hisp.dhis.legend.LegendSet",
"shareable": true,
"translatable": true,
"relativeApiEndpoint": "/legendSets",
"metadata": true,
"identifiableObject": true,
"plural": "legendSets",
"displayName": "Legend Sets",
"collectionName": "legendSets",
"implicitPrivateAuthority": false,
"apiEndpoint": "http://localhost:8080/dhis/api/legendSets",
"nameableObject": false,
"embeddedObject": false,
"defaultPrivate": false,
"name": "legendSet",
"namespace": "http://dhis2.org/schema/dxf/2.0",
"href": "http://localhost:8080/dhis/api/schemas/legendSet",
"singular": "legendSet",
"persisted": true,
"order": 1080,
"references": ["org.hisp.dhis.user.User", "org.hisp.dhis.legend.Legend"],
"authorities": [
{
"type": "CREATE_PUBLIC",
"authorities": ["F_LEGEND_SET_PUBLIC_ADD", "F_GIS_ADMIN"]
},
{
"type": "CREATE_PRIVATE",
"authorities": ["F_LEGEND_SET_PRIVATE_ADD", "F_GIS_ADMIN"]
},
{
"type": "DELETE",
"authorities": ["F_LEGEND_SET_DELETE", "F_GIS_ADMIN"]
}
],
"properties": [
{
"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": "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.legend.LegendSet.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": "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": "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": "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": "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": true,
"readable": true,
"ordered": false,
"identifiableObject": false,
"max": 1.7976931348623157e308,
"cascade": "all-delete-orphan",
"manyToMany": true,
"collection": true,
"owningRole": "org.hisp.dhis.legend.LegendSet.attributeValues",
"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": 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": "symbolizer",
"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": 255.0,
"manyToMany": false,
"length": 255,
"collection": false,
"embeddedObject": false,
"unique": false,
"name": "symbolizer",
"namespace": "http://dhis2.org/schema/dxf/2.0",
"persisted": true,
"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": "legends",
"simple": false,
"required": false,
"writable": true,
"collectionName": "legends",
"min": 0.0,
"nameableObject": false,
"klass": "java.util.Set",
"propertyType": "COLLECTION",
"oneToOne": false,
"attribute": false,
"href": "http://localhost:8080/dhis/api/schemas/legend",
"owner": true,
"readable": true,
"ordered": false,
"identifiableObject": true,
"max": 1.7976931348623157e308,
"cascade": "all-delete-orphan",
"manyToMany": false,
"collection": true,
"owningRole": "org.hisp.dhis.legend.LegendSet.legends",
"itemPropertyType": "REFERENCE",
"collectionWrapping": true,
"itemKlass": "org.hisp.dhis.legend.Legend",
"embeddedObject": true,
"unique": false,
"name": "legend",
"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.legend.LegendSet.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": "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.legend.LegendSet.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": "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
},
{
"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
},
{
"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.legend.LegendSet.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
}
]
}