lucee.Componentcbmongodb.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
db
bucket
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
- trueMethod Detail |
---|
Creates and stores a GridFS file
filePath
fileName
deleteFile
Finds a file by search criteria
criteria
Retreives a GridFS file by ObjectId
id
Finds an returns a single document with search criteria
criteria
Returns the iterative cursor of the files contained in the GridFS Bucket
criteria
filePath
Removes a GridFS file by criteria
criteria
Removes a GridFS file by id
id
appSettings
bucketName
dbInstance
GridInstance
jLoader
mongoClient
mongoUtil