package com.iqser.red.service.persistence.v1.internal.api.controller;

import org.springframework.web.bind.annotation.RestController;

import com.iqser.red.service.persistence.management.v1.processor.service.ComponentLogService;
import com.iqser.red.service.persistence.service.v1.api.internal.resources.InternalComponentResource;
import com.iqser.red.service.persistence.service.v1.api.shared.model.analysislog.componentlog.ComponentLog;

import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.experimental.FieldDefaults;

@RestController
@RequiredArgsConstructor
@FieldDefaults(makeFinal = true, level = AccessLevel.PRIVATE)
public class InternalComponentController implements InternalComponentResource {

    ComponentLogService componentLogService;


    @Override
    public ComponentLog getComponentLog(String dossierId, String fileId) {

        return componentLogService.getComponentLog(dossierId, fileId);

    }

}
