@Repository(value="ItfGridFsRepository") @ConditionalOnBean(value=ItfGridFsConfiguration.class) public class ItfGridFsRepository extends Object
| Constructor and Description |
|---|
ItfGridFsRepository(org.springframework.data.mongodb.gridfs.GridFsTemplate gridFsTemplate) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Map<String,Object> metadataParams,
String fileName)
TODO: Add JavaDoc.
|
com.mongodb.client.gridfs.model.GridFSFile |
findById(org.bson.types.ObjectId objectId) |
com.mongodb.client.gridfs.GridFSFindIterable |
findByMetadata(Map<String,Object> metadataParams) |
org.springframework.data.mongodb.gridfs.GridFsResource |
getResource(com.mongodb.client.gridfs.model.GridFSFile gridFsFile) |
org.bson.types.ObjectId |
store(Map<String,Object> metadataParams,
String fileName,
InputStream fileInputStream) |
@Autowired public ItfGridFsRepository(org.springframework.data.mongodb.gridfs.GridFsTemplate gridFsTemplate)
public com.mongodb.client.gridfs.GridFSFindIterable findByMetadata(Map<String,Object> metadataParams)
public com.mongodb.client.gridfs.model.GridFSFile findById(org.bson.types.ObjectId objectId)
public org.bson.types.ObjectId store(Map<String,Object> metadataParams, String fileName, InputStream fileInputStream)
public org.springframework.data.mongodb.gridfs.GridFsResource getResource(com.mongodb.client.gridfs.model.GridFSFile gridFsFile)
Copyright © 2025. All rights reserved.