Commit c8d0df67 authored by Artem Dobrynin (EPAM)'s avatar Artem Dobrynin (EPAM)
Browse files

GONRG-1547: Audit. Implement some audit events for Schema [publish]

* Added audit logger
* Added logging events in the `SchemaService`
parent b3c5ded6
......@@ -10,6 +10,7 @@ import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import lombok.RequiredArgsConstructor;
import org.apache.commons.lang3.StringUtils;
import org.json.JSONException;
import org.opengroup.osdu.core.common.logging.JaxRsDpsLog;
......@@ -36,7 +37,6 @@ import org.opengroup.osdu.schema.service.ISchemaService;
import org.opengroup.osdu.schema.service.ISourceService;
import org.opengroup.osdu.schema.util.SchemaResolver;
import org.opengroup.osdu.schema.util.SchemaUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service;
......@@ -50,40 +50,31 @@ import;
public class SchemaService implements ISchemaService {
private AuditLogger auditLogger;
private final AuditLogger auditLogger;
private ISchemaInfoStore schemaInfoStore;
private final ISchemaInfoStore schemaInfoStore;
private ISchemaStore schemaStore;
private final ISchemaStore schemaStore;
private IAuthorityService authorityService;
private final IAuthorityService authorityService;
private ISourceService sourceService;
private final ISourceService sourceService;
private IEntityTypeService entityTypeService;
private final IEntityTypeService entityTypeService;
private SchemaUtil schemaUtil;
private final SchemaUtil schemaUtil;
private SchemaResolver schemaResolver;
private final SchemaResolver schemaResolver;
private String sharedTenant;
JaxRsDpsLog log;
final JaxRsDpsLog log;
DpsHeaders headers;
final DpsHeaders headers;
* Method to get schema
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment