Public | Automated Build

Last pushed: 2 months ago
Short Description
Methode Image Set Mapper
Full Description

Methode Image Set Mapper

This is a web application which listens to the NativeCmsPublicationEvents Kafka topic for publishing events coming from Methode and process only the messages
containing an image. It extracts the image metadata, creates a set of images containing only the published image and writes it to the CmsPublicationEvents
topic.

Introduction

The service listens to the NativeCmsPublicationEvents Kafka topic and ingests the image messages coming from Methode.
The image messages coming from Methode have the header: Origin-System-Id: http://cmdb.ft.com/systems/methode-web-pub and the JSON payload has the
field "type":"Image". Other messages are discarded.

The difference between this and methode-image-model-mapper is that this service produces a message containing a list having one image member instead of
an image message.

Mapping

Methode XPATH to image set mapping

<table border="1">
<tr>
<th>UPP field</td>
<th>Methode Field - xpath</td>
</tr>
<tr>
<td>title</td>
<td>/meta/picture/web_information/caption</td>
</tr>
<tr>
<td>description</td>
<td>/meta/picture/web_information/alt_tag</td>
</tr>
<tr>
<td>pixelWidth</td>
<td>/props/imageInfo/width</td>
</tr>
<tr>
<td>pixelHeight</td>
<td>/props/imageInfo/height</td>
</tr>
<tr>
<td>mediaType</td>
<td>/props/imageInfo/fileType</td>
</tr>
</table>

Running locally

To compile, run tests and build jar

mvn clean verify 

To run locally, run:

java -jar target/methode-image-set-mapper.jar server methode-image-set-mapper.yaml

Healthchecks

http://localhost:16080/__health

Admin Endpoint

http://localhost:16081

Docker Pull Command
Owner
coco