Interface MetadataMapper
public interface MetadataMapper
MapStruct mapper responsible for converting
AppInfo domain data into the OpenAPI About* models used
by the metadata API.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfr.metabocloud.about.openapi.model.AboutDocumentationtoDocumentation(AppInfo source) Maps documentation‑related metadata fromAppInfointo theAboutDocumentationsection of the metadata response.fr.metabocloud.about.openapi.model.AboutMainMaps application general information fromAppInfointo theAboutMainsection of the metadata response.fr.metabocloud.about.openapi.model.AboutOwnershipAccessibilitytoOwnershipAccessibility(AppInfo source) Maps ownership and accessibility metadata fromAppInfointo theAboutOwnershipAccessibilitysection of the metadata response.fr.metabocloud.about.openapi.model.AboutVersionMaps version‑related metadata fromAppInfointo theAboutVersionsection of the metadata response.
-
Field Details
-
MAPPER
-
-
Method Details
-
toMain
Maps application general information fromAppInfointo theAboutMainsection of the metadata response.- Parameters:
source- The application information data object- Returns:
- A populated
AboutMaininstance describing the main metadata
-
toDocumentation
Maps documentation‑related metadata fromAppInfointo theAboutDocumentationsection of the metadata response.- Parameters:
source- The application information data object- Returns:
- A populated
AboutDocumentationinstance describing the main metadata
-
toVersion
Maps version‑related metadata fromAppInfointo theAboutVersionsection of the metadata response.- Parameters:
source- The application information data object- Returns:
- A populated
AboutVersioninstance describing the main metadata
-
toOwnershipAccessibility
fr.metabocloud.about.openapi.model.AboutOwnershipAccessibility toOwnershipAccessibility(AppInfo source) Maps ownership and accessibility metadata fromAppInfointo theAboutOwnershipAccessibilitysection of the metadata response.- Parameters:
source- The application information data object- Returns:
- A populated
AboutOwnershipAccessibilityinstance describing the main metadata
-