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 / basicAuthAccount / EpBasicAuthAccountService.java
diff --git a/portal-BE/src/main/java/org/onap/portal/service/basicAuthAccount/EpBasicAuthAccountService.java b/portal-BE/src/main/java/org/onap/portal/service/basicAuthAccount/EpBasicAuthAccountService.java
new file mode 100644 (file)
index 0000000..3b23e91
--- /dev/null
@@ -0,0 +1,20 @@
+package org.onap.portal.service.basicAuthAccount;
+
+import org.onap.portal.domain.db.ep.EpBasicAuthAccount;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class EpBasicAuthAccountService {
+
+    private final EpBasicAuthAccountDao epBasicAuthAccountDao;
+
+    @Autowired
+    public EpBasicAuthAccountService(EpBasicAuthAccountDao epBasicAuthAccountDao) {
+        this.epBasicAuthAccountDao = epBasicAuthAccountDao;
+    }
+
+    public EpBasicAuthAccount save(EpBasicAuthAccount epBasicAuthAccount) {
+        return epBasicAuthAccountDao.save(epBasicAuthAccount);
+    }
+}