Project

General

Profile

1
package eu.dnetlib.uoaadmintoolslibrary.dao.MongoDBDAOs;
2

    
3
import org.springframework.data.mongodb.repository.MongoRepository;
4

    
5
import java.util.List;
6

    
7
import eu.dnetlib.uoaadmintoolslibrary.dao.PageHelpContentDAO;
8
import eu.dnetlib.uoaadmintoolslibrary.entities.PageHelpContent;
9

    
10
public interface MongoDBPageHelpContentDAO extends PageHelpContentDAO, MongoRepository<PageHelpContent, String> {
11
    List<PageHelpContent> findAll();
12

    
13
    List<PageHelpContent> findByPortalAndPlacementAndIsActiveAndIsPriorToOrderByOrderAsc(String portalId, String position, boolean isActive, boolean isPriorTo);
14
    List<PageHelpContent> findByPortalAndPlacementAndIsActiveOrderByOrderAsc(String portalId, String position, boolean isActive);
15
    List<PageHelpContent> findByPortalAndPlacementAndIsPriorToOrderByOrderAsc(String portalId, String position, boolean isPriorTo);
16
    List<PageHelpContent> findByPortalAndIsActiveAndIsPriorToOrderByPlacementAscOrderAsc(String portalId, boolean isActive, boolean isPriorTo);
17
    List<PageHelpContent> findByPlacementAndIsActiveAndIsPriorToOrderByOrderAsc(String position, boolean isActive, boolean isPriorTo);
18
    List<PageHelpContent> findByPortalAndPlacementOrderByOrderAsc(String portalId, String postion);
19
    List<PageHelpContent> findByPortalAndIsActiveOrderByPlacementAscOrderAsc(String portalId, boolean isActive);
20
    List<PageHelpContent> findByPortalAndIsPriorToOrderByPlacementAscOrderAsc(String portalId, boolean isPriorTo);
21
    List<PageHelpContent> findByPlacementAndIsActiveOrderByOrderAsc(String position, boolean isActive);
22
    List<PageHelpContent> findByPlacementAndIsPriorToOrderByOrderAsc(String position, boolean isPriorTo);
23
    List<PageHelpContent> findByIsActiveAndIsPriorToOrderByPlacementAscOrderAsc(boolean isActive, boolean isPriorTo);
24
    List<PageHelpContent> findByPortalAndPageOrderByPlacementAscOrderAsc(String portalId, String page);
25
    List<PageHelpContent> findByPortalOrderByPlacementAscOrderAsc(String portalId);
26
    List<PageHelpContent> findByPlacementOrderByOrderAsc(String postion);
27
    List<PageHelpContent> findByIsActiveOrderByPlacementAscOrderAsc(boolean isActive);
28
    List<PageHelpContent> findByIsPriorToOrderByPlacementAscOrderAsc(boolean isPriorTo);
29
    List<PageHelpContent> findAllByOrderByPlacementAscOrderAsc();
30

    
31
    PageHelpContent findById(String Id);
32

    
33
    PageHelpContent findByIdOrderByOrder(String Id);
34

    
35
    PageHelpContent save(PageHelpContent pageHelpContent);
36

    
37
    void deleteAll();
38

    
39
    void delete(String id);
40
}
(5-5/6)