Manage your documents on your DMS from Drupal using CMIS API module
- 03 Sep 2020
In a majority of cases, document (and on a bigger picture, media) management is done on Drupal directly. Especially now that there are the Media and Media Library modules in Core, media management in Drupal has received a lot of improvements during the last years.
But sometimes, you need to be able to connect to a DMS (document management system) for one or several of the following reasons:
- The tool is already in place into your customer’s information system architecture.
- This allows you to delegate access control management on documents to this external tool. And therefore keep your Drupal website “simple”.
- DMS, by their specialization/name/designation, have more advanced features than Drupal on documents:
The project driving our contribution on the module was to develop an intranet for storing documents and delivery forms on an Alfresco DMS, using Drupal as a simplified user interface to interact with the documents in the DMS.
What is CMIS?
“CMIS (Content Management Interoperability Services) is an open standard that allows different content management systems to interoperate over the Internet.“
CMIS query example:
As you may have guessed, the CMIS API module has been used as it provides the link between Drupal and Alfresco (or any CMIS compliant system).
Drupal 7 and before (hypothesis)
There is an ecosystem of CMIS modules already present on Drupal.org, here is an overview of its:
- CMIS Alfresco (D6)
- Deprecated in favor of the CMIS API module.
- CMIS API (D7)
- Initially an initiative (maybe partnership?) between Acquia and Alfresco because a lot of people involved indicate working at Alfresco on their drupal.org profile.
- CMIS Views (D7)
Now we will focus on CMIS API as it is the one providing a generic implementation and tools for other modules.
There were 2 Drupal 8 branches on the CMIS API module :
- Port of the Drupal 7 version but non-optimal usage of object oriented code provided by Drupal 8 (no service, object non easy of use (DX), …)
- 8.x-2.x-dev (our contribution started from this branch)
- Use a new version of the dkd/php-cmis-client library (Guzzle 6 compatible)
- Codebase stabilization (Drupal Coding Standard, deprecations removal)
- Add new features
We focused on the 8.x-2.x branch and among fixing coding standards, removing deprecated code, fixing some bugs, we added new features. And now we will see the features of the module.
The first thing to do with the CMIS module is to configure a connection to the DMS.
We added the “CMIS folder ID” setting to get a file browser already opened from this folder (new).
Sub module: CMIS Alfresco Auth User (new)
When the user logs in using Drupal login form, the username and password are also sent to an Alfresco endpoint to authenticate on Alfresco too and retrieve an authentication “ticket”.
This allows you to use different users for the CMIS connection without having to define a CMIS connection for each user.
The main feature of the module is to provide a file browser allowing users to view, upload or delete folders and documents.
Now the access control if the user can upload or delete a file / create or delete a folder, is no more using a Drupal permission but checking permission in the DMS directly (new).
CMIS query page
A page to make CMIS queries directly without UI limitation.
There is a CMIS field type that allows you to select a CMIS document or folder. This information can be displayed using two field formatters:
- Link to the CMIS document
- File browser starting on the selected folder (new)
The module currently provides some nice features that may answer a lot of needs. But the current codebase is difficult to work with, so adding new features is hard, or impossible.
Therefore to ensure the module will be and stay healthy, we may be doing the following steps which are a mix of refactoring and features addition:
- Rethink codebase’s architecture:
- Implement services
- Add a connections factory service
- Routes: to have proper non-ajax support if needed and better organized routes
- Rethink how the display is done to ease the theming and overrides
- Audit the UI strings
- Translating strings in French highlighted that even in English some UI strings are not correct
- Refactor authentication part
- Support Nuxeo, etc.
- Implement sort and pager on the file browser
- Depends on the PHP CMIS Client library
- Media integration
- Import a CMIS document as a Media entity so it can be used as any “standard” image for example
- Implement automated tests
- The setup will be hard to do
And thanks to our customer’s project needing improvements on the CMIS API module to have permits us to contribute back.
Now the Drupal 8 version of the CMIS API module is back on track and by releasing the 8.x-2.0-alpha1 version, we hope that this will help raise the Drupal 8 module’s usage and gather momentum.
PS: On Tuesday, September 1st, Florent Torregrosa held a meetup on various topics such as Entity Share V3, CMIS and File Extractor. You can find his article here [FR] and the presentation slides here [EN]
Comments on "Manage your documents on your DMS from Drupal using CMIS API module"
- By FH
- 04 Sep 2020 at 11h24
Experts blog? buahahaha
Your meta tags suck! ;)
- By vtzYjoRsJ
- 04 Sep 2020 at 18h07
- By HLrPwJxqXzERyk
- 04 Sep 2020 at 18h07
- By BDXsxGqr
- 04 Sep 2020 at 19h17
- By JNMUeaqOu
- 04 Sep 2020 at 19h17
- By KtPNRGCSU
- 04 Sep 2020 at 20h27
- By PBvtawKu
- 04 Sep 2020 at 20h27
- By PSKXGWtEaFRiUvj
- 04 Sep 2020 at 21h22
- By mWvQloOp
- 04 Sep 2020 at 21h22
- By Tristan
- 11 Sep 2020 at 6h28
I’ll right away seize your rss as I can’t to find your email
subscription hyperlink or newsletter service. Do you’ve any?
Please allow me understand in order that I may just subscribe.
Thanks. These are actually enormous ideas
in on the topic of blogging. You have touched some nice things here.
Any way keep up wrinting. It is perfect time to make some plans for the
future and it is time to be happy. I have learn this publish and if I could I desire to recommend you few
attention-grabbing issues or advice. Perhaps you could write subsequent articles regarding this article.
I wish to read more things about it! http://alexa.com/
- By Nestor
- 20 Sep 2020 at 19h31
106521 jeanne la star des amatrices [URL=https://ugm-ac-dot-yamm-track.appspot.com/Redirect?ukey=1h6lrZGJoytrZsP27wPPVHeOciwqqH8Krhv0z5BCyEp8-800450540&key=YAMMID-89063719&link=https%3a%2f%2fzionschool.info%2fnude%2f185754-save-as-chubby-thick.php]https://ugm-ac-dot-yamm-track.appspot.com/Redirect?ukey=1h6lrZGJoytrZsP27wPPVHeOciwqqH8Krhv0z5BCyEp8-800450540&key=YAMMID-89063719&link=https%3a%2f%2fzionschool.info%2fnude%2f185754-save-as-chubby-thick.php[/URL]
75362 alina henessy i been [URL=https://alferia.ru/goto.php?url=https://zionschool.info/]https://alferia.ru/goto.php?url=https://zionschool.info/[/URL]
122052 pump streaming or on demand empirest [URL=https://ogorod.mirtesen.ru/url?e=simple_click&blog_post_id=43520160556&url=https%3a%2f%2fzionschool.info%2fjapanese%2f166122-evilangel-nacho-vidal-lia-japanesebeauties.php]https://ogorod.mirtesen.ru/url?e=simple_click&blog_post_id=43520160556&url=https%3a%2f%2fzionschool.info%2fjapanese%2f166122-evilangel-nacho-vidal-lia-japanesebeauties.php[/URL]
129096 big cock for women [URL=http://camp-light.com/__media__/js/netsoltrademark.php?d=zionschool.info/]http://camp-light.com/__media__/js/netsoltrademark.php?d=zionschool.info/[/URL]
131765 fetish assorted lingerie [URL=http://ppnuynnjwo.unblog.fr/?wptouch_switch=desktop&redirect=https%3a%2f%2fzionschool.info%2fblonde%2f162754-blonde-with-delicious-small-breasts.php]http://ppnuynnjwo.unblog.fr/?wptouch_switch=desktop&redirect=https%3a%2f%2fzionschool.info%2fblonde%2f162754-blonde-with-delicious-small-breasts.php[/URL]
44473 blonde bombshell britney amber shows off [URL=http://warewellnessblog.org/__media__/js/netsoltrademark.php?d=zionschool.info/]http://warewellnessblog.org/__media__/js/netsoltrademark.php?d=zionschool.info/[/URL]
182081 amazing horney housewife [URL=http://www.pets4life.org/__media__/js/netsoltrademark.php?d=zionschool.info/]http://www.pets4life.org/__media__/js/netsoltrademark.php?d=zionschool.info/[/URL]
11136 euro sienna day fucking in bathroom [URL=http://villaineslesrochers.unblog.fr/?wptouch_switch=desktop&redirect=https://zionschool.info/]http://villaineslesrochers.unblog.fr/?wptouch_switch=desktop&redirect=https://zionschool.info/[/URL]
197639 femjoy kitty luxury [URL=http://adult-rank.lovelovelinks.com/cout.cgi?id=035&url=https://zionschool.info/]http://adult-rank.lovelovelinks.com/cout.cgi?id=035&url=https://zionschool.info/[/URL]
120803 lucie series location vien [URL=http://chessville.com/__media__/js/netsoltrademark.php?d=zionschool.info/anal/97268-june-anal-sex.php]http://chessville.com/__media__/js/netsoltrademark.php?d=zionschool.info/anal/97268-june-anal-sex.php[/URL]
165413 sultry brunette latina milf babe eva [URL=https://mercatinoracing.it/adserver/www/delivery/ck.php?oaparams=2__bannerid%3D1__zoneid%3D1__cb%3D0c68599c4f__oadest%3Dhttps%3a%2f%2fzionschool.info%2fmodels%2f147057-candice-model-blonde.php]https://mercatinoracing.it/adserver/www/delivery/ck.php?oaparams=2__bannerid%3D1__zoneid%3D1__cb%3D0c68599c4f__oadest%3Dhttps%3a%2f%2fzionschool.info%2fmodels%2f147057-candice-model-blonde.php[/URL]
131550 mila marx bangs guy who was [URL=http://brandkey.com/__media__/js/netsoltrademark.php?d=zionschool.info/]http://brandkey.com/__media__/js/netsoltrademark.php?d=zionschool.info/[/URL]
127191 tiger benson asianpussy [URL=https://stephaniebe.co.za/?wptouch_switch=desktop&redirect=https://zionschool.info/]https://stephaniebe.co.za/?wptouch_switch=desktop&redirect=https://zionschool.info/[/URL]
182117 samples of internal cumshot [URL=http://northernfloor.com/net30/netLinksRedirect.asp?ID=1411&url=https%3a%2f%2fzionschool.info%2ffucking%2f67747-tiana-rose-fucking-black-widow.php]http://northernfloor.com/net30/netLinksRedirect.asp?ID=1411&url=https%3a%2f%2fzionschool.info%2ffucking%2f67747-tiana-rose-fucking-black-widow.php[/URL]
133468 minas fotografico di marcelusxxx [URL=http://mistycove.org/ViewSwitcher/SwitchView?mobile=True&returnUrl=https://zionschool.info/]http://mistycove.org/ViewSwitcher/SwitchView?mobile=True&returnUrl=https://zionschool.info/[/URL]