Input Resources

Java Shared library providing REST controllers, abstractions, and utilities for all ERP input implementations.

Purpose

Centralizes common functionality:

  • Eliminates code duplication across input implementations

  • Provides standardized REST endpoints for all entity types

  • Ensures consistency in request handling, validation, and publishing

  • Facilitates maintenance through single source of truth

Note: JAR library module - not executable on its own.

Architecture

Template pattern approach - abstract base classes extended by implementations:

flowchart TD
    subgraph Resources["Input Resources Library"]
        direction TB
        A[REST Controllers<br/>8 entity endpoints]
        B[AbstractDownloadResource<br/>ConfigurableDownloadResource]
        C[IntegrationWriter<br/>PublishService]
        D[GlobalExceptionHandler]
    end

    E[Folder Publisher]
    F[Kafka Publisher]
    G[Pub/Sub Publisher]

    Resources --> E
    Resources --> F
    Resources --> G

    style Resources fill:none,stroke:#666,stroke-width:3px
    style A fill:none,stroke:#666,stroke-width:3px
    style B fill:none,stroke:#666,stroke-width:3px
    style C fill:none,stroke:#666,stroke-width:3px
    style D fill:none,stroke:#666,stroke-width:3px
    style E fill:none,stroke:#666,stroke-width:3px
    style F fill:none,stroke:#666,stroke-width:3px
    style G fill:none,stroke:#666,stroke-width:3px