com.rbmhtechnology.vind.utils.mam.MetadataProvider Maven / Gradle / Ivy
package com.rbmhtechnology.vind.utils.mam;
import com.rbmhtechnology.vind.api.Document;
import com.rbmhtechnology.vind.model.DocumentFactory;
import java.io.IOException;
import java.util.Collection;
/**
* @author Thomas Kurz ([email protected])
* @since 06.07.16.
*/
public interface MetadataProvider {
Document getDocument(Document document, DocumentFactory factory) throws IOException;
Collection getDocuments(Collection documents, DocumentFactory factory) throws IOException;
Document getDocumentById(String id, DocumentFactory factory) throws IOException;
Collection getDocumentsByIds(Collection ids, DocumentFactory factory) throws IOException;
T getObject(String id, Class t) throws IOException;
Collection getObjects(Collection ids, Class t) throws IOException;
T getObject(T o) throws IOException;
Collection getObjects(Collection os) throws IOException;
}