MongoDB extension - Compatible with Cosmos DB
Plugin ID
The plugin ID for MongoDB is fr.cantor.c4i.MongoDBDelivery
Properties
Property key | Description | Mandatory | Default value |
---|---|---|---|
debug | true to display debug log | No | false |
host | Host of the MongoDB database | Yes | |
port | Port of the MongoDB database | Yes | |
dbName | The name of the database | Yes | |
username | The username to connect to the database | No | |
password | The password to connect to the database in standalone mode only | No | |
authenticationDatabase | The name of the database where the user is defined | No | |
configAssetId | The ID of the asset containing the YAML mappings | Yes | |
prefixCollectionNamesWithContextId | true or false to indicate whether or not to prefix the collection names with the context IDs | Yes | |
batchSize | The maximum number of elements to send in a single query | Yes | |
deleteElementsNotMatchingFilters | true or false to indicate if elements not matching filters should be deleted from the database | Yes | |
emptyDatabaseBeforeImport | true will reset the tables before inserting data. Only use for full IEP | Yes | |
enableSsl | true enables TLS/SSL connection. Mandatory to connect to Cosmos DB | Yes | |
requestTimer | Timer in ms between two requests. -1 to ignore | No | -1 |
cacheConfig | The ID of the asset containing the JCS configuration | No |
Configuration Example
extensions.[0].pluginId=fr.cantor.c4i.MongoDBDelivery
extensions.[0].host=localhost
extensions.[0].port=27017
extensions.[0].dbName=step
extensions.[0].username=c4i
extensions.[0].authenticationDatabase=admin
extensions.[0].configAssetId=C4I-Configuration
extensions.[0].prefixCollectionNamesWithContextId=true
extensions.[0].batchSize=100
extensions.[0].deleteElementsNotMatchingFilters=false
extensions.[0].emptyDatabaseBeforeImport=false
extensions.[0].enableSsl=false
extensions.[0].requestTimer=-1
pluginId=fr.cantor.c4i.MongoDBDelivery
host=localhost
port=27017
dbName=step
username=c4i
password=secure_password
authenticationDatabase=admin
configAssetId=/Path/to/C4I/Configuration.yml
prefixCollectionNamesWithContextId=true
batchSize=100
deleteElementsNotMatchingFilters=false
emptyDatabaseBeforeImport=false
enableSsl=false
licenseAssetId=/Path/to/C4I/License.cat
requestTimer=-1
cacheConfig=/Path/to/JCS/Config.ccf