Package org.restheart.mongodb.db
Interface GridFsRepository
-
- All Known Implementing Classes:
GridFsDAO
public interface GridFsRepository- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OperationResultcreateFile(Database db, String dbName, String bucketName, org.bson.BsonDocument metadata, Path filePath)voiddeleteChunksCollection(Database db, String dbName, String bucketName)OperationResultdeleteFile(Database db, String dbName, String bucketName, org.bson.BsonValue fileId, String requestEtag, boolean checkEtag)OperationResultupsertFile(Database db, String dbName, String bucketName, org.bson.BsonDocument metadata, Path filePath, org.bson.BsonValue fileId, String requestEtag, boolean checkEtag)
-
-
-
Method Detail
-
createFile
OperationResult createFile(Database db, String dbName, String bucketName, org.bson.BsonDocument metadata, Path filePath) throws IOException, com.mongodb.DuplicateKeyException
- Parameters:
db-dbName-bucketName-metadata-filePath-- Returns:
- Throws:
IOExceptioncom.mongodb.DuplicateKeyException
-
upsertFile
OperationResult upsertFile(Database db, String dbName, String bucketName, org.bson.BsonDocument metadata, Path filePath, org.bson.BsonValue fileId, String requestEtag, boolean checkEtag) throws IOException
- Parameters:
db-dbName-bucketName-metadata-filePath-fileId-requestEtag-checkEtag-- Returns:
- Throws:
IOException
-
deleteFile
OperationResult deleteFile(Database db, String dbName, String bucketName, org.bson.BsonValue fileId, String requestEtag, boolean checkEtag)
- Parameters:
db-dbName-bucketName-fileId-requestEtag-checkEtag-- Returns:
-
-