Service Layer medium complexity mobilebackend
1
Dependencies
1
Dependents
9
Entities
0
Integrations

Description

Business logic service handling proxy activity registration. Manages the on-behalf-of workflow by injecting the proxy_user_id into activity records while logging the coordinator as the submitting user. Enforces organizational scope validation ensuring coordinators can only proxy-register for peer mentors within their local association.

Feature: Coordinator Proxy Reporting

proxy-registration-service

Responsibilities

  • Validate coordinator authorization and local association scope
  • Fetch eligible peer mentors within coordinator's scope
  • Submit activity with correct owner (peer mentor) and proxy submitter (coordinator) attribution
  • Enforce business rules for proxy registration (active mentor, valid scope)
  • Provide audit trail data distinguishing proxy from direct registrations

Interfaces

getEligiblePeerMentors(coordinatorId)
validateProxyScope(coordinatorId, mentorId)
submitProxyActivity(coordinatorId, mentorId, activityData)
getProxyRegistrationHistory(coordinatorId)
isProxyRegistration(activityId)
getProxySubmitter(activityId)

Relationships

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component