PublisherSearchRepository.java
825 Bytes
package org.legrog.entities;
import java.util.List;
/**
* Indexing/Search interface for IndexedPublisher
*/
public interface PublisherSearchRepository {
/**
* Indexes an IndexedPublisher
*
* @param indexedPublisher IndexedPublisher to be indexed
* @return IndexedPublisher
*/
IndexedPublisher save(IndexedPublisher indexedPublisher) throws IndexingException;
/**
* Searches for IndexedPublishers
*
* @param string String looked for in IndexedPublishers
* @return list of matching IndexedPublishers
*/
List<IndexedPublisher> search(String string) throws SearchingException;
/**
*
* @param inxdexedPublishers IndexedPublishers to reindex
*/
public void reindex(List<IndexedPublisher> inxdexedPublishers) throws IndexingException;
}