Merge "InvalidRoleException-junits"
[portal.git] / portal-BE / src / main / java / org / onap / portal / service / sharedContext / FnSharedContextService.java
1 package org.onap.portal.service.sharedContext;
2
3 import org.onap.portal.domain.db.fn.FnSharedContext;
4 import org.springframework.beans.factory.annotation.Autowired;
5 import org.springframework.stereotype.Service;
6
7 import java.util.List;
8
9 @Service
10 public class FnSharedContextService {
11
12     private final FnSharedContextDao fnSharedContextDao;
13
14     @Autowired
15     public FnSharedContextService(FnSharedContextDao fnSharedContextDao) {
16         this.fnSharedContextDao = fnSharedContextDao;
17     }
18
19     public List<FnSharedContext> saveAll(List<FnSharedContext> sharedContexts) {
20         return fnSharedContextDao.saveAll(sharedContexts);
21     }
22 }