4SuiteServer storage driver for MetaKit RDF back-end
Copyright 2002 Fourthought Inc, USA.
- class MetaKitDriver
Store information in a MetaKit Database
Concurrent access may be supported by setting MODE_RW=2
in MetaKit RDF driver.
- __init__(self, dbName)
- createFile(self, path, typ, content)
When creating a resource, store the content
- deleteFile(self, path, typ)
Delete an object
- fetchFile(self, path, typ)
- hasFile(self, path, typ)
return True if the resource exists
return the MetaKit view containing contents data
- updateFile(self, path, typ, content)
Update only the content about this resource
Begin a new transaction.
Every driver must support this interface.
The properties keyword arguments are passed from the config file
(or where ever) to the driver. The Begin file is responsible
for doing what ever is needed to validate these arguements
- Destroy(properties, tryOnly=0)
Completly destroy the repo
See if this repo exists.
1 - Everything is present
0 - Some things are there
-1 - Nothing is there.
Initialize a new copy of the repo.
This is not the same as a 4ss_manager init.
This is very raw. The adapter will take care
of calling our other interfaces (createContainer,
createUser, etc) with all of the information
about the rest of the 'init' stuff to do
Post-import hook to initialize module's runtime variables that are not
required at import time, but will be needed before the module-level
functions are called.
Perform any maintenance on the db