Merge "Dao object moved from dao packege to package by component in service folder"
[portal.git] / portal-BE / src / main / java / org / onap / portal / service / auditLog / FnAuditLogService.java
diff --git a/portal-BE/src/main/java/org/onap/portal/service/auditLog/FnAuditLogService.java b/portal-BE/src/main/java/org/onap/portal/service/auditLog/FnAuditLogService.java
new file mode 100644 (file)
index 0000000..ef51aab
--- /dev/null
@@ -0,0 +1,22 @@
+package org.onap.portal.service.auditLog;
+
+import org.onap.portal.domain.db.fn.FnAuditLog;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class FnAuditLogService {
+
+    private final FnAuditLogDao fnAuditLogDao;
+
+    @Autowired
+    public FnAuditLogService(FnAuditLogDao fnAuditLogDao) {
+        this.fnAuditLogDao = fnAuditLogDao;
+    }
+
+    public List<FnAuditLog> saveAll(List<FnAuditLog> auditLogs) {
+        return fnAuditLogDao.saveAll(auditLogs);
+    }
+}