All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ibm.fhir.audit.mapper.Mapper Maven / Gradle / Ivy

There is a newer version: 4.11.1
Show newest version
/*
 * (C) Copyright IBM Corp. 2020
 *
 * SPDX-License-Identifier: Apache-2.0
 */
package com.ibm.fhir.audit.mapper;

import com.ibm.fhir.audit.beans.AuditLogEntry;
import com.ibm.fhir.config.PropertyGroup;

/**
 * Each implementing class is expected to be stateful.
 */
public interface Mapper {

    /**
     * initializes and loads the default values from the tenant configuration.
     * @param auditLogProperties
     * @return
     * @throws Exception
     */
    Mapper init(PropertyGroup auditLogProperties) throws Exception;

    /**
     * map the audit log entry to the intended format.
     * @param entry
     * @return
     * @throws Exception
     */
    Mapper map(AuditLogEntry entry) throws Exception;

    /**
     * serializes to the specific format in a string format.
     * @return
     * @throws Exception
     */
    String serialize() throws Exception;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy