cancel
Showing results for 
Search instead for 
Did you mean: 

Evaluators

olin75
Champ in-the-making
Champ in-the-making
I was developing my own aspects using inheritance and in webclient evaluator i am missing something like aspect-instanceof. There is only aspect-name, which is not suitable for my needs.
I need to show some properties if there is some aspect or one that inherits.

Is this right place to discuss this? Should I raise JIRA issue? Implement it myself? Commit to repository? Or just silently wait?

Thanx.
1 REPLY 1

davidc
Star Contributor
Star Contributor
You could raise a JIRA issue, but it would be great if you could implement it yourself.

You can register a new evaluator in web-client-config.xml e.g.

 <evaluators>
         <evaluator id="aspect-name" class="org.alfresco.web.config.AspectEvaluator" />
        ….
</evaluators>

You can test for instance-of using the DictionaryService API.  The method isSubClass will do the trick - it works for both types and aspects.

To contribute stuff to Alfresco, follow the process described here http://www.alfresco.org/mediawiki/index.php/Source_Code.