Exemplo n.º 1
0
 public boolean isExcluded(final Node node) {
   if (excludedProperties.contains(node.getPropertyPath())) {
     return true;
   }
   if (containsAny(node.getCategories(), excludedCategories)) {
     return true;
   }
   return false;
 }
Exemplo n.º 2
0
 public boolean isIncluded(final Node node) {
   if (node.isRootNode()) {
     return true;
   }
   if (includedCategories.isEmpty() && includedProperties.isEmpty()) {
     return true;
   } else if (containsAny(node.getCategories(), includedCategories)) {
     return true;
   } else if (includedProperties.contains(node.getPropertyPath())) {
     return true;
   }
   return false;
 }