O'Reilly logo

Alfresco 3 Business Solutions by Martin Bergljung

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Design patterns

When new content models are designed there are a few patterns that come back over and over again. A couple of them are described here.

Domain document root type

This is one of the most used patterns in document management solutions as the main use of the CMS repository is to manage and classify documents.

Problem

We want to be able to classify generic files that cannot be classified under any specific subtype. We want to be able to search through all documents in the enterprise via a root type. We want a way to add generic properties for all subtypes, usually non-UI related properties.

Solution

Implement a generic base type that all other document types extend.

Diagram

The following figure shows an example of an inheritance hierarchy ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required