io.zulia.server.filestorage.DocumentStorage Maven / Gradle / Ivy
package io.zulia.server.filestorage;
import io.zulia.message.ZuliaBase.AssociatedDocument;
import io.zulia.message.ZuliaQuery.FetchType;
import org.bson.Document;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
public interface DocumentStorage {
void storeAssociatedDocument(AssociatedDocument docs) throws Exception;
List getAssociatedDocuments(String uniqueId, FetchType fetchType) throws Exception;
AssociatedDocument getAssociatedDocument(String uniqueId, String filename, FetchType fetchType) throws Exception;
void getAssociatedDocuments(OutputStream outputstream, Document filter) throws IOException;
void storeAssociatedDocument(String uniqueId, String fileName, InputStream is, long timestamp, Document metadataMap) throws Exception;
InputStream getAssociatedDocumentStream(String uniqueId, String filename);
List getAssociatedFilenames(String uniqueId) throws Exception;
void deleteAssociatedDocument(String uniqueId, String fileName);
void deleteAssociatedDocuments(String uniqueId);
void drop();
void deleteAllDocuments();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy