Manage your documents on your DMS from Drupal using CMIS API module

  • 240
  • 15
  • 03 Sep 2020

Context

 

The requirement

 

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:
    • Versioning,
    • Metadata,
    • Edition,
    • Etc.

 

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:

CMIS query examples

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).

 

Module’s history

 
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.

 
Drupal 8

 

There were 2 Drupal 8 branches on the CMIS API module :

  • 8.x-1.x-dev
    • 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.

 

Current features

 
CMIS connection

 

The first thing to do with the CMIS module is to configure a connection to the DMS.

 

CMIS Connection

 

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”.

Authentification ticket 1

Authentification ticket 2

Authentification ticket 3

 

This allows you to use different users for the CMIS connection without having to define a CMIS connection for each user.

 
File browser

 

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 Browser

CMIS query page

 

A page to make CMIS queries directly without UI limitation.

 

Request CMIS

Field formatters:

 

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)

 

Meeting

 


Next steps

 

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

Conclusion

Thanks to Ian Norton for granting us access to the CMIS API module.

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! ;)

oBCcXvOhlxeAitZk

fFJsBATS

tSxPbHClLGAhMp

spjoLRVbYBSFHI

xliySVqKsfFj

gkyerRAtoPd

zQkEnhYIjq

ylMBJvAfINErXW

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/

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]

[url=http://mewkid.net/when-is-xuxlya/]Amoxicillin 500mg[/url] <a href="http://mewkid.net/when-is-xuxlya/">Amoxicillin</a> ruk.xrbc.blog.smile.eu.ytb.gl http://mewkid.net/when-is-xuxlya/

http://onlinecasinouse.com/# free slots [url=http://onlinecasinouse.com/# ]gold fish casino slots [/url] <a href="http://onlinecasinouse.com/# ">vegas casino slots </a>

GFRTbYLsoDSe

WBwLgKpjNm

Leave a comment

* Required fields

Comments are subject to validation.

The collection of the requested information is necessary for the processing of your application by SMILE, controller. This collected information may be used for prospecting purposes. You have a right to access, rectify, oppose and delete data concerning you. To exercise them, simply contact us by email at the following address marketing@smile.fr or by post to the attention of SMILE - 20 rue des Jardins 92600 Asnieres sur Seine. We invite you to read our data protection policy.

Open source training

Durée : 2 jours
Lieu : Paris