Service Layer medium complexity mobile
0
Dependencies
0
Dependents
1
Entities
0
Integrations

Description

Fetches the organization-specific external resource link list from the backend API and coordinates caching for offline access. It abstracts the data source from the UI layer, handling network availability checks and cache invalidation logic. This service is the single point of truth for resource link data within the app.

Feature: External Resource Links

external-resource-service

Sources & reasoning

Line 160 of the priority matrix shows all five organizations want external resource links, classified as NICE with Fase 2 delivery. Phase 2 is the second delivery phase, mapping to v1.0 by ordinal normalization. Line 480 places this feature in the home-navigation area taxonomy. The NICE classification and Phase 2 column confirm it is planned but not launch-critical.

  • docs/source/likeperson.md ยท line 160
    Eksterne lenker til ressurser | โœ“ | โœ“ | โœ“ | โœ“ | โœ“ | NICE | 2
  • docs/source/likeperson.md ยท line 480
    home-navigation | Home & Navigation | Role-Specific Home Dashboard, App Settings & Preferences, External Resource Links

Responsibilities

  • Fetch the external resource link list from the backend API for the active organization
  • Cache the fetched link list locally for offline access
  • Serve cached data when the network is unavailable
  • Invalidate and refresh the cache when a newer version is available from the backend
  • Expose a unified interface to the UI layer regardless of data source

Interfaces

getResources(organizationId: string): Promise<ExternalResource[]>
refreshCache(organizationId: string): Promise<void>
isCacheValid(): boolean

Related Data Entities (1)

Data entities managed by this component