PeerMentorResumeService
Component Detail
Service Layer
medium complexity
backend
0
Dependencies
0
Dependents
3
Entities
0
Integrations
Description
Backend service that handles the full resumption lifecycle for a paused peer mentor. Validates certification status before allowing re-entry, transitions the mentor back to active in the assignment pool, and notifies the coordinator on success.
peer-mentor-resume-service
Sources & reasoning
The source doc describes pause as "midlertidig deaktivering" (temporary deactivation) at line 79, which presupposes a resume path. Resume is the mandatory lifecycle complement to pause-function and shares its Fase 2 phase, mapping to v1.0.
-
docs/source/likeperson.md · line 79-80Likepersoner skal kunne sette seg på pause (midlertidig deaktivering) uten å melde seg ut. Koordinator må varsles.
Responsibilities
- Verify mentor certification is current and valid before restoring availability
- Transition mentor status from paused to active in the database
- Restore mentor to eligible assignment pools
- Emit coordinator notification on successful resumption
- Reject resumption attempts that fail certification checks with a structured error
Interfaces
resumeMentor(mentorId: string): ResumeResult
validateCertification(mentorId: string): CertificationStatus
notifyCoordinator(mentorId: string, event: ResumeEvent): void
Related Data Entities (3)
Data entities managed by this component