Posts

Showing posts from March, 2026

D2-Ref

/**  * D2CollectionServicePlugin.java  *  * Service override — post-processes the collection list returned by  * D2CollectionService to filter collections by case_id of the selected document.  *  * Pattern: IDENTICAL to D2ContentServicePlugin.java from the D2 SDK.  * Dev Guide reference: pp.31-34 "Understanding Service Interface Overrides"  *                      "Post-Processing" and "Setting Up D2 Service Overrides"  *  * HOW IT WORKS:  *   1. D2CollectionService.getCollections() is called by D2 when the  *      "Add to Collection" picker opens in SmartView.  *   2. This plugin intercepts that call, calls super() to get the full list,  *      then post-processes: removes any collection whose name does NOT end  *      with the case_id value of the currently selected document.  *  ...