cancel
Showing results for 
Search instead for 
Did you mean: 

Overriding Assocations and/or properties

jmliege
Champ in-the-making
Champ in-the-making
Hello,

I wish to extend the cm:folder so that it can only contains a specialized type

In fact it means that
  * my:type extends cm:content.
  * my:folder extends cm:folder

I want to override the 'cm:contains' child-association to only accept
target class such as 'my:type'

Is it possible ?
Currently I get the following message (when trying to validate my model) :


Duplicate association definition cm:contains found in class hierarchy of my:folder

Any suggestions to do it, or simply it is not possible…
2 REPLIES 2

davidc
Star Contributor
Star Contributor
That's just not possible at the moment.

We could add something similar to the <property-override> allowing the type at the "to" end of the association to be specialised.   It's not on the plan, it hasn't been asked for yet, but you're welcome to raise a JIRA feature.

jmliege
Champ in-the-making
Champ in-the-making
So I've opened an issue in JIRA.

You can check it at the following url:
http://www.alfresco.org/jira/browse/AR-739

JMarc