AccountSearchRepository.java 515 Bytes
package org.legrog.entities;

import java.util.List;

/**
 * Search interface for IndexedAccount
 */
public interface AccountSearchRepository {
    /**
     *
     * @param string String searched in indexed Accounts
     * @return Accounts that match the string
     */
    List<IndexedAccount> search(String string) throws SearchingException;

    /**
     *
     * @param indexedAccounts IndexedAccounts to reindex
     */
    public void reindex(List<IndexedAccount> indexedAccounts) throws IndexingException;
}