1
|
package eu.dnetlib.uoaadmintools.dao.MongoDBDAOs;
|
2
|
|
3
|
import eu.dnetlib.uoaadmintools.dao.LayoutDAO;
|
4
|
import eu.dnetlib.uoaadmintools.entities.Layout;
|
5
|
import org.springframework.data.mongodb.repository.MongoRepository;
|
6
|
|
7
|
import java.util.List;
|
8
|
|
9
|
public interface MongoDBLayoutDAO extends LayoutDAO, MongoRepository<Layout, String> {
|
10
|
|
11
|
List<Layout> findAll();
|
12
|
|
13
|
Layout findById(String Id);
|
14
|
|
15
|
Layout findByPortalPid(String portalPid);
|
16
|
|
17
|
Layout save(Layout layout);
|
18
|
|
19
|
void deleteAll();
|
20
|
|
21
|
void delete(String id);
|
22
|
}
|