I have moved down to the DAO layer again, after noticing that the nodeDAO has a dictionary service for querying the custom models.
The result is: it works!
Dynamic spaces were quite easy to implement, when you know where you can tweak the system.
I have now folders that show all documents with a configurable given aspect.
That was accomplished by adding a custom content model and overwriting the following method in class NodeDAOImpl
protected void selectChildAssocsByChildTypes(Long parentNodeId,
Set<QName> childNodeTypeQNames,
ChildAssocRefQueryCallback resultsCallback) {
In order to use the new created class, I changed the spring configuration file /alfresco/WEB-INF/classes/alfresco/dao/dao-context.xml
and replaced the nodeDao property with my own implementation class.
Now I will go for dynamic folders for a certain property in an aspect to have a dynamic classification feature.
When I have finished that and I am sure that it will not have performance issues I will post how you can
use this nice feature, too 🙂
Kind regards,
Georg Fleischer