Add junction entities and ACL for CAICollection, CAdvowareAkten, and CPulsTeam
- Introduced new junction entities: CAICollectionCDokumente, CAdvowareAktenCDokumente, and CPulsTeamZuordnung. - Implemented respective controllers and services for handling CRUD operations. - Added metadata definitions for new entities, including fields, links, and indexes. - Created language files for English and German translations for the new entities. - Developed a script to set ACL permissions for the new junction entities across existing roles. - Updated existing entity definitions to include new relationships and fields related to Advoware and AI Collections.
This commit is contained in:
23
custom/Espo/Custom/Controllers/CAICollectionCDokumente.php
Normal file
23
custom/Espo/Custom/Controllers/CAICollectionCDokumente.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace Espo\Custom\Controllers;
|
||||
|
||||
use Espo\Core\Controllers\Record;
|
||||
|
||||
/**
|
||||
* Junction Controller: CAICollection ↔ CDokumente
|
||||
*
|
||||
* Provides REST API access to the junction table with additionalColumns:
|
||||
* - xaifileid: XAI external file ID
|
||||
* - syncStatus: Sync state tracking
|
||||
*/
|
||||
class CAICollectionCDokumente extends Record
|
||||
{
|
||||
// Inherits all CRUD operations from Record controller
|
||||
//
|
||||
// Available endpoints:
|
||||
// GET /api/v1/CAICollectionCDokumente
|
||||
// GET /api/v1/CAICollectionCDokumente/{id}
|
||||
// POST /api/v1/CAICollectionCDokumente
|
||||
// PUT /api/v1/CAICollectionCDokumente/{id}
|
||||
// DELETE /api/v1/CAICollectionCDokumente/{id}
|
||||
}
|
||||
23
custom/Espo/Custom/Controllers/CAdvowareAktenCDokumente.php
Normal file
23
custom/Espo/Custom/Controllers/CAdvowareAktenCDokumente.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace Espo\Custom\Controllers;
|
||||
|
||||
use Espo\Core\Controllers\Record;
|
||||
|
||||
/**
|
||||
* Junction Controller: CAdvowareAkten ↔ CDokumente
|
||||
*
|
||||
* Provides REST API access to the junction table with additionalColumns:
|
||||
* - hnr: Advoware HNR reference
|
||||
* - syncStatus: Sync state tracking
|
||||
*/
|
||||
class CAdvowareAktenCDokumente extends Record
|
||||
{
|
||||
// Inherits all CRUD operations from Record controller
|
||||
//
|
||||
// Available endpoints:
|
||||
// GET /api/v1/CAdvowareAktenCDokumente
|
||||
// GET /api/v1/CAdvowareAktenCDokumente/{id}
|
||||
// POST /api/v1/CAdvowareAktenCDokumente
|
||||
// PUT /api/v1/CAdvowareAktenCDokumente/{id}
|
||||
// DELETE /api/v1/CAdvowareAktenCDokumente/{id}
|
||||
}
|
||||
Reference in New Issue
Block a user