# | Layer | Proposed Changes |
---|
1 | REST Layer | - openapi.yaml
- change /v1/data/ch/searches to /v1/ch/id-searches
- ncmp.yaml
- change queryCmHandles method to executeCmHandleIdSearch
- Use the CmHandleQueryRestParameters schema to both of them
- components.yaml
- merge Conditions schema to CmHandleQueryRestParameters schema
- delete Conditions schema
|
2 | Controller Layer | - NetworkCmProxyController
- Update controller methods to use the new schema
- Both component method call separated service method
- Rename queryCmHandles method to executeCmHandleIdSearch
|
3 | Service Layer | - NetworkCmProxyDataService
- Create new method for query cmHandles
- Keep queryCmHandles method and rename it to queryCmHandleIds
- Both method should be called calling separate methods in CpsAdminServiceCpsDataService
- Validation logic should be moved to an separated method and call it from both method
- CpsAdminServiceCpsDataService
- Update queryCmHandles method return type to Set<CmHandles>
- Use separate methods to CmHandlesId search (queryCmHandleIds)to just return a collection of CmHandleIds (extract from DataNode Objects)
- CpsAdminPersistenceService
- Update queryCmHandles method return type to Set<CmHandles>Use separate methods to CmHandlesId search (queryCmHandleIds)will always return complet DatNode object(s). No updates can be done
|
4 | Persistence Layer | - ModuleReferenceQuery
- Update queryCmHandles method return type to Set<CmHandles>
- Update queryCmHandles method to handle both filtering parameters
- Create to separete method for CmHandlesId searches with new filtering parameters (use the original queryCmHandles method code)
|