cancel
Showing results for 
Search instead for 
Did you mean: 

Aspects Support in OWD

chris_8226
Champ in-the-making
Champ in-the-making
I read that OWD supports Alfresco Aspects, but I don´t know
what the capabilities exposed for aspects are?
Is there a way to enable/disable OWD plugins based on aspects applied to an object for example?

Thanks
Chris
1 REPLY 1

deko
Star Contributor
Star Contributor
:!: Aspects are an Alfresco extension and not part of the CMIS standard.

Support of Alfresco Aspects in OWD is limited, as only mandatory Aspects and
corresponding properties are supported. Furthermore Aspects cannot be applied
during object creation or during editing of properties.

There is no OOTB way to enable/disable plugins for specific aspects or
properties. To achieve this handling you would have to overwrite the isEnabled
method of any plugin you want to enable/disable for properties only. You would
have to introduce a plugin parameter like for example <isEnabledProperties>
where you can add a list of properties, for which the plugin should be enabled.
In the isEnabled method you would then have to check for the properties of the
current object and compare them to this list to determine if the plugin shall
be enabled for the current object.