1 17 package org.alfresco.web.config; 18 19 import org.alfresco.config.evaluator.Evaluator; 20 import org.alfresco.web.bean.repository.Node; 21 22 27 public class PathEvaluator implements Evaluator 28 { 29 34 public boolean applies(Object obj, String condition) 35 { 36 boolean result = false; 37 38 40 if (obj instanceof Node) 41 { 42 String path = (String )((Node)obj).getPath(); 43 if (path != null) 44 { 45 result = path.equalsIgnoreCase(condition); 46 } 47 } 48 49 return result; 50 } 51 52 } 53 | Popular Tags |