Introduction
Venzia Datalinks uses a JSON-based configuration system to define external data sources and their integration with Alfresco Content Services. Each datalink connects a REST API endpoint to an Alfresco content model aspect, enabling documents to be linked with external entities.Configuration Components
A complete Venzia Datalinks implementation consists of three key components:Datalink JSON Files
Define data source connections, REST endpoints, and column mappings
Content Models
Alfresco XML models that define aspects and properties for linked data
REST Connectors
HTTP client configuration including authentication and API integration
File Locations
Datalink JSON Configuration
Datalink definition files are stored in the deployment directory:In Docker deployments, these files are typically mounted at
/usr/local/tomcat/datalink/ or configured via the datalink.path system property.Content Model XML
Alfresco content models are deployed as AMP module resources:Configuration Workflow
Define Content Model
Create Alfresco aspects in your custom content model XML file. Each aspect represents an external entity type (employee, department, etc.).
Create Datalink JSON
Define the datalink configuration file that maps the aspect to a REST API endpoint and specifies column definitions.
Configure REST Connector
Set up the REST API connection details including URL, authentication, and search parameters.
Configuration Validation
Venzia Datalinks validates configuration files on startup:- JSON Schema: All datalink JSON files must conform to the expected schema
- Aspect Reference: The
aspectNamemust exist in the deployed content model - Primary Key: At least one column must be marked as
primaryKey: true - REST Endpoint: The connector URL must be accessible and return valid JSON
Example: Employee Datalink
Here’s how the three components work together for an employee datalink:1. Content Model Aspect
2. Datalink JSON Configuration
3. Document Linkage
When a user applies thedlnk:employee aspect to a document, the Venzia Datalinks widget appears, allowing them to search and link employees from the external REST API.
System Properties
Configure Venzia Datalinks behavior using Alfresco global properties:Directory path containing datalink JSON configuration files
Enable or disable the Venzia Datalinks module globally
Cache time-to-live in seconds for REST API responses
Next Steps
Datalink JSON Schema
Complete reference for all JSON configuration options
REST Connector Setup
Configure authentication and API integration
