Overview
TheVenziaDatalinkService is the primary Angular service for opening and managing datalink dialogs in Alfresco Content App. It handles dialog initialization and error notifications.
Import
Injectable
Constructor
Angular Material dialog service for opening modal dialogs
ADF notification service for displaying error messages
Methods
dataLinkDoc
Opens the datalink management dialog for a given node.The Alfresco node to manage datalinks for. Must have an entry with properties.
Behavior
- Valid Node: Opens
DatalinkDialogComponentwith the node ID - Invalid Node: Shows error notification “DATALINK.MESSAGES.ERRORS.NO_PROPERTIES”
- Dialog Configuration:
- Width: 730px
- Panel class: ‘aca-permissions-dialog-panel’
- Data:
{ nodeId: node.entry.id }
Example
Implementation Details
Usage from ACA Extensions
This service is typically invoked from ACA extension actions:Error Handling
The service validates that:- Node exists (
node?.entry) - Node has properties (
node?.entry.properties)
DATALINK.MESSAGES.ERRORS.NO_PROPERTIES.
Dialog Configuration
The dialog opened by this service:- Uses Angular Material’s
MatDialog - Applies custom panel class for styling
- Passes the node ID as dialog data
- Has a fixed width of 730px for consistent UX
Dependencies
@angular/core: Angular framework@angular/material/dialog: Material dialog component@alfresco/adf-core: ADF notification service@alfresco/js-api: Alfresco JavaScript API types
See Also
- Datalink Dialog Component - Dialog component opened by this service
- VenziaDatalinkApiService - Service for loading datalink configurations
- Edit Datalink Guide - User guide for the datalink dialog
