As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<config evaluator="aspect-name" condition="mon:aspect1" condition="mon:aspect2"> <property-sheet> … </property-sheet> </config>
<config evaluator="aspect-name" condition="mon:aspect1"> <property-sheet> … </property-sheet> </config>
<alfresco-config> <plug-ins> <evaluators> <evaluator id="node-type" class="org.alfresco.web.config.NodeTypeEvaluator" /> <evaluator id="aspect-name" class="org.alfresco.web.config.AspectEvaluator" /> </evaluators> <element-readers>
/** * Evaluator that determines whether a given object has a particular aspect applied * * @author gavinc */ public final class AspectEvaluator implements Evaluator { /** * Determines whether the given aspect is applied to the given object * * @see org.alfresco.config.evaluator.Evaluator#applies(java.lang.Object, java.lang.String) */ public boolean applies(Object obj, String condition) { boolean result = false; if (obj instanceof Node) { Set aspects = ((Node)obj).getAspects(); if (aspects != null) { QName spaceQName = Repository.resolveToQName(condition); result = aspects.contains(spaceQName); } } return result; } }