Configuration
A sample configuration in XML, JSON, and YAML format.
- XML
- JSON
- YAML
table.config.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration xmlns="http://www.axiomatics.com/table.config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="">
<connnection>
<url>jdbc:postgresql://localhost/postgres?user=postgres&password=password</url>
<driver>org.postgresql.Driver</driver>
</connnection>
<mapping isSingleValued="false">
<xacmlAttribute Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" AttributeId="role" DataType="http://www.w3.org/2001/XMLSchema#string"/>
<tableName>employee_details</tableName>
<columnName>employee_role</columnName>
<key allowMultiple="false">
<xacmlAttribute Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" AttributeId="name" DataType="http://www.w3.org/2001/XMLSchema#string"/>
<columnName>employee_name</columnName>
</key>
<uId>aa34ffde-45ae-47fc-8893-f8bc60c2f28f</uId>
</mapping>
</configuration>
JSON configuration files offer the option to use either ALFA or XACML for attribute definitions.
- XACML
- ALFA
table.config.json
{
"connection": {
"url": "jdbc:postgresql://localhost/postgres?user=postgres&password=password",
"driver": "org.postgresql.Driver"
},
"mappings": [
{
"isSingleValued": false,
"xacmlAttribute": {
"category": "urn:oasis:names:tc:xacml:1.0:subject-category:access-subject",
"attributeId": "role",
"datatype": "http://www.w3.org/2001/XMLSchema#string",
"issuer": null
},
"tableName": "employee_details",
"columnName": "employee_role",
"keys": [
{
"xacmlAttribute": {
"category": "urn:oasis:names:tc:xacml:1.0:subject-category:access-subject",
"attributeId": "name",
"datatype": "http://www.w3.org/2001/XMLSchema#string",
"issuer": null
},
"columnName": "employee_name",
"allowMultiple": false
}
],
"uId": "aa34ffde-45ae-47fc-8893-f8bc60c2f28f"
}
]
}
table.config.alfa.json
{
"connection": {
"url": "jdbc:postgresql://localhost/postgres?user=postgres&password=password",
"driver": "org.postgresql.Driver"
},
"mappings": [
{
"attributeName": "role",
"isSingleValued": false,
"tableName": "employee_details",
"columnName": "employee_role",
"keys": [
{
"attributeName": "name",
"columnName": "employee_name",
"allowMultiple": false
}
],
"uId": "aa34ffde-45ae-47fc-8893-f8bc60c2f28f"
}
]
}
YAML configuration files offer the option to use either ALFA or XACML for attribute definitions.
- XACML
- ALFA
table.config.yaml
connection:
url: "jdbc:postgresql://localhost/postgres?user=postgres&password=password"
driver: "org.postgresql.Driver"
mappings:
- xacmlAttribute:
category: "urn:oasis:names:tc:xacml:1.0:subject-category:access-subject"
attributeId: "role"
datatype: "http://www.w3.org/2001/XMLSchema#string"
issuer: null
tableName: "employee_details"
columnName: "employee_role"
isSingleValued: false
keys:
- xacmlAttribute:
category: "urn:oasis:names:tc:xacml:1.0:subject-category:access-subject"
attributeId: "name"
datatype: "http://www.w3.org/2001/XMLSchema#string"
issuer: null
columnName: "employee_name"
allowMultiple: false
uId: "aa34ffde-45ae-47fc-8893-f8bc60c2f28f"
table.config.alfa.yaml
connection:
url: "jdbc:postgresql://localhost/postgres?user=postgres&password=password"
driver: "org.postgresql.Driver"
mappings:
- attributeName: "role"
isSingleValued: false
tableName: "employee_details"
columnName: "employee_role"
keys:
- attributeName: "name"
columnName: "employee_name"
allowMultiple: false
uId: "aa34ffde-45ae-47fc-8893-f8bc60c2f28f"