Jean-Francois Leveque

Preimplementation pour tests

...@@ -2,5 +2,8 @@ package org.legrog.entities; ...@@ -2,5 +2,8 @@ package org.legrog.entities;
2 2
3 import org.springframework.data.jpa.repository.JpaRepository; 3 import org.springframework.data.jpa.repository.JpaRepository;
4 4
5 +import java.util.List;
6 +
5 public interface PublisherRepository extends JpaRepository<Publisher, Integer> { 7 public interface PublisherRepository extends JpaRepository<Publisher, Integer> {
8 + List<Publisher> findByValidatedVersionIsNotNull();
6 } 9 }
......
...@@ -21,4 +21,6 @@ public interface PublisherSearchRepository { ...@@ -21,4 +21,6 @@ public interface PublisherSearchRepository {
21 * @return list of matching IndexedPublishers 21 * @return list of matching IndexedPublishers
22 */ 22 */
23 List<IndexedPublisher> search(String string) throws SearchingException; 23 List<IndexedPublisher> search(String string) throws SearchingException;
24 +
25 + public void reindex(List<IndexedPublisher> inxdexedPublishers);
24 } 26 }
......
...@@ -64,4 +64,9 @@ public class PublisherSearchRepositorySolrj implements PublisherSearchRepository ...@@ -64,4 +64,9 @@ public class PublisherSearchRepositorySolrj implements PublisherSearchRepository
64 return new ArrayList<>(); 64 return new ArrayList<>();
65 } 65 }
66 } 66 }
67 +
68 + @Override
69 + public void reindex(List<IndexedPublisher> inxdexedPublishers) {
70 +
71 + }
67 } 72 }
......