Proxy Registration Service
Component Detail
Service Layer
medium complexity
mobilebackend
3
Dependencies
1
Dependents
3
Entities
0
Integrations
Description
Orchestrates the full lifecycle of a single proxy activity registration. Enforces coordinator role authorization, coordinates duplicate checking, writes the attributed activity record with separate registered_by and attributed_to fields, and emits results back to the UI via BLoC events.
proxy-registration-service
Responsibilities
- Verify the acting user holds a coordinator or higher role
- Invoke duplicate detection before committing any record
- Persist activity with registered_by (coordinator) and attributed_to (peer mentor) fields
- Emit success, duplicate-conflict, and error events to the BLoC
Interfaces
submitProxyActivity(ProxyActivityRequest request)
checkAuthorization(String userId)
handleDuplicateConflict(DuplicateConflict conflict)
overrideAndSubmit(ProxyActivityRequest request)
getProxyActivitiesForMentor(String mentorId)
Relationships
Dependencies (3)
Components this component depends on
Related Data Entities (3)
Data entities managed by this component