lucee.Component
cbmongodb.Mongo.GridFS
Mongo GridFS Processes Mongo GridFS Transactions
| Property Summary | ||||
|---|---|---|---|---|
| type | property | default | serializable | required |
any
|
appSettings
Application Settings.
|
true
|
false
|
|
any
|
bucketName
|
true
|
false
|
|
any
|
dbInstance
Core GridFS connection properties.
|
true
|
false
|
|
any
|
GridInstance
|
true
|
false
|
|
any
|
jLoader
CBJavaloader.
|
true
|
false
|
|
any
|
mongoClient
The Mongo Client Instance.
|
true
|
false
|
|
any
|
mongoUtil
Mongo Utils.
|
true
|
false
|
|
| Constructor Summary | |
|---|---|
|
init([string db=''], [string bucket='fs'])
Initialize The GridFS Instance. |
|
| Method Summary | |
|---|---|
string
|
createFile(string filePath, [string fileName], boolean deleteFile='false')
Creates and stores a GridFS file. |
any
|
find(struct criteria)
Finds a file by search criteria. |
any
|
findById(any id)
Retreives a GridFS file by ObjectId. |
any
|
findOne(struct criteria)
Finds an returns a single document with search criteria. |
string
|
getAppSettings()
|
string
|
getBucketName()
|
string
|
getDbInstance()
|
any
|
getFileList(struct criteria='[runtime expression]')
Returns the iterative cursor of the files contained in the GridFS Bucket. |
string
|
getGridInstance()
|
string
|
getJLoader()
|
string
|
getMongoClient()
|
string
|
getMongoUtil()
|
private any
|
isReadableImage([any filePath])
|
any
|
onDIComplete()
|
any
|
remove(struct criteria)
Removes a GridFS file by criteria. |
any
|
removeById(any id)
Removes a GridFS file by id. |
any
|
setAppSettings(any appSettings)
|
any
|
setBucketName(any bucketName)
|
any
|
setDbInstance(any dbInstance)
|
any
|
setGridInstance(any GridInstance)
|
any
|
setJLoader(any jLoader)
|
any
|
setMongoClient(any mongoClient)
|
any
|
setMongoUtil(any mongoUtil)
|
| Methods inherited from class lucee.Component |
|---|
| None |
| Constructor Detail |
|---|
Initialize The GridFS Instance
dbbucket| Property Detail |
|---|
Application Settings
access - publicrequired - falsereturntype - anyinject - wirebox:propertiesserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueCore GridFS connection properties
access - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueCBJavaloader
access - publicrequired - falsereturntype - anyinject - id:loader@cbjavaloaderserializable - trueThe Mongo Client Instance
access - publicrequired - falsereturntype - anyinject - id:MongoClient@cbmongodbserializable - trueMongo Utils
access - publicrequired - falsereturntype - anyinject - id:MongoUtil@cbmongodbserializable - true| Method Detail |
|---|
Creates and stores a GridFS file
filePathfileNamedeleteFileFinds a file by search criteria
criteriaRetreives a GridFS file by ObjectId
idFinds an returns a single document with search criteria
criteriaReturns the iterative cursor of the files contained in the GridFS Bucket
criteriafilePathRemoves a GridFS file by criteria
criteriaRemoves a GridFS file by id
idappSettingsbucketNamedbInstanceGridInstancejLoadermongoClientmongoUtil