1
|
package eu.dnetlib.uoaadmintools.dao.MongoDBDAOs;
|
2
|
|
3
|
import eu.dnetlib.uoaadmintools.dao.NotificationsDAO;
|
4
|
import eu.dnetlib.uoaadmintools.entities.Notifications;
|
5
|
import org.springframework.data.mongodb.repository.MongoRepository;
|
6
|
|
7
|
import java.util.List;
|
8
|
|
9
|
/**
|
10
|
* Created by argirok on 6/7/2018.
|
11
|
*/
|
12
|
public interface MongoDBNotificationsDAO extends NotificationsDAO, MongoRepository<Notifications, String> {
|
13
|
List<Notifications> findAll();
|
14
|
|
15
|
Notifications findById(String Id);
|
16
|
|
17
|
Notifications findByManagerEmailAndPortalPid(String managerEmail, String portalPid);
|
18
|
List<Notifications> findByPortalPid(String portalPid);
|
19
|
|
20
|
Notifications save(Notifications entity);
|
21
|
|
22
|
void deleteAll();
|
23
|
|
24
|
void delete(String id);
|
25
|
}
|
26
|
|
27
|
|