1
|
package eu.dnetlib.uoaadmintools.dao;
|
2
|
|
3
|
import eu.dnetlib.uoaadmintools.entities.Page;
|
4
|
|
5
|
import org.springframework.data.mongodb.repository.MongoRepository;
|
6
|
|
7
|
import java.util.List;
|
8
|
|
9
|
public interface MongoDBPageDAO extends PageDAO, MongoRepository<Page, String> {
|
10
|
List<Page> findAll();
|
11
|
List<Page> findByConnect(boolean connect);
|
12
|
List<Page> findByCommunities(boolean communities);
|
13
|
List<Page> findByOpenaire(boolean openaire);
|
14
|
Page findById(String Id);
|
15
|
|
16
|
Page save(Page page);
|
17
|
|
18
|
void deleteAll();
|
19
|
|
20
|
void delete(String id);
|
21
|
}
|