Template for cloud-ready DMS extensions
Product line
Standard
|Expert
Operating mode
CLOUD ABO
|ON-PREMISES
Modules
Services & CRM
Budget & Phases
Purchases
Resource Planning
Business Intelligence
With Vertec 6.3 cloud-ready DMS interfaces were introduced. These DMS extensions are of the type “DMS”. An example, which is supplied and maintained by us is the SharePoint Online DMS interface.
There is a sample template that shows what you need to implement to create a workable DMS extension.
DmsExampleExtension.py
in the Extensions folder in your Vertec installation directory.DmsExampleExtension.DmsExampleExtension
Specify.A DMS extension can also be used in addition to a normal file system. This is done via a prefix, which you can define yourself – the paths are then e.g. of the format Dropbox:\meine Dateien\...
.
It is not possible to use several DMS extensions or several document libraries in parallel. One installed DMS extension is supported, which connects to a document library.
A path prefix can be defined (e.g. MyPrefix:
). For this prefix there is a corresponding DMS extension, which handles the file operations of the corresponding paths.
If a prefix changes or if there is no extension for it, an error is thrown during the corresponding operations.
The following steps must be taken to implement a new prefix:
MyNewPrefix:
MyNewPrefix:\...
in VertecIn Vertec, you can start with this prefix to specify the file location:
MyNewPrefix:\customers\DemoInc\invoice337.pdf
Vertec does not attempt to validate the path itself. As soon as it starts with a prefix, all file handling is handled by the corresponding DMS extension.
A valid prefix:
:
and a backslash \
class DmsExampleExtension(VertecExtension):
A Vertec DMS extension must define the following class methods (vertecFilePath is always a path of the form SharePoint:\dir1\dir2\file.txt
or MyDmsExt:\dir3\dir4\someOtherFile.docx
):
Should return True
or False
, depending on whether the specified directory exists.
Should create the specified directory. If not possible, throw an exception with an error message. This method should also create the parent directories.
No return value.
Should open the specified directory in a useful variant, e.g. in a browser view.
No return value.
Should return True
or False
, depending on whether the specified document exists.
Should open the specified document in a useful variant, e.g. in a browser view.
No return value.
Vertec has created an in-memory file to be saved in the DMS.
No return value.