/** * Get the tree at the current path. * * @return the current tree, or null */ public Tree currentTree() { String path = currentPath(); if (path == null) { return null; } return getTree(path); }
/** * Get the tree at the current path. * * @return the current tree, or null */ public Tree currentTree() { String path = currentPath(); if (path == null) { return null; } return getTree(path); }
/** * Get the tree at the current path. * * @return the current tree, or null */ public Tree currentTree() { String path = currentPath(); if (path == null) { return null; } return getTree(path); }
@Override public boolean evaluate() { // disable evaluation if a fulltext index is used, // and because we don't know how to process native // conditions if (!(selector.getIndex() instanceof FulltextQueryIndex)) { log.warn("No full-text index was found that can process the condition " + toString()); return false; } // verify the path is readable PropertyValue p = pathExpression.currentValue(); String path = p.getValue(Type.STRING); if (selector.getTree(path) == null) { return false; } if (propertyName != null) { if (selector.currentProperty(propertyName) == null) { // property not found return false; } } // we assume the index only returns the requested entries return true; }
@Override public boolean evaluate() { // disable evaluation if a fulltext index is used, // and because we don't know how to process native // conditions if (!(selector.getIndex() instanceof FulltextQueryIndex)) { log.warn("No full-text index was found that can process the condition " + toString()); return false; } // verify the path is readable PropertyValue p = pathExpression.currentValue(); String path = p.getValue(Type.STRING); if (selector.getTree(path) == null) { return false; } if (propertyName != null) { if (selector.currentProperty(propertyName) == null) { // property not found return false; } } // we assume the index only returns the requested entries return true; }
@Override public boolean evaluate() { // disable evaluation if a fulltext index is used, // and because we don't know how to process native // conditions if (!(selector.getIndex() instanceof FulltextQueryIndex)) { log.warn("No full-text index was found that can process the condition " + toString()); return false; } // verify the path is readable PropertyValue p = pathExpression.currentValue(); String path = p.getValue(Type.STRING); if (selector.getTree(path) == null) { return false; } if (propertyName != null) { if (selector.currentProperty(propertyName) == null) { // property not found return false; } } // we assume the index only returns the requested entries return true; }
private boolean evaluateTypeMatch() { Tree tree = getTree(currentRow.getPath()); if (tree == null || !tree.exists()) { return false; } PropertyState primary = tree.getProperty(JCR_PRIMARYTYPE); if (primary != null && primary.getType() == NAME) { String name = primary.getValue(NAME); if (primaryTypes.contains(name)) { return true; } } PropertyState mixins = tree.getProperty(JCR_MIXINTYPES); if (mixins != null && mixins.getType() == NAMES) { for (String name : mixins.getValue(NAMES)) { if (mixinTypes.contains(name)) { return true; } } } // no matches found return false; }
private boolean evaluateTypeMatch() { Tree tree = getTree(currentRow.getPath()); if (tree == null || !tree.exists()) { return false; } PropertyState primary = tree.getProperty(JCR_PRIMARYTYPE); if (primary != null && primary.getType() == NAME) { String name = primary.getValue(NAME); if (primaryTypes.contains(name)) { return true; } } PropertyState mixins = tree.getProperty(JCR_MIXINTYPES); if (mixins != null && mixins.getType() == NAMES) { for (String name : mixins.getValue(NAMES)) { if (mixinTypes.contains(name)) { return true; } } } // no matches found return false; }
private boolean evaluateTypeMatch() { Tree tree = getTree(currentRow.getPath()); if (tree == null || !tree.exists()) { return false; } PropertyState primary = tree.getProperty(JCR_PRIMARYTYPE); if (primary != null && primary.getType() == NAME) { String name = primary.getValue(NAME); if (primaryTypes.contains(name)) { return true; } } PropertyState mixins = tree.getProperty(JCR_MIXINTYPES); if (mixins != null && mixins.getType() == NAMES) { for (String name : mixins.getValue(NAMES)) { if (mixinTypes.contains(name)) { return true; } } } // no matches found return false; }
Tree tree = getTree(currentRow.getPath()); if (tree == null || !tree.exists()) { continue;
Tree tree = getTree(currentRow.getPath()); if (tree == null || !tree.exists()) { continue;
Tree tree = getTree(currentRow.getPath()); if (tree == null || !tree.exists()) { continue;
Tree tree = selector.getTree(path); if (tree == null || !tree.exists()) { return false;
Tree tree = selector.getTree(path); if (tree == null || !tree.exists()) { return false;
Tree tree = selector.getTree(path); if (tree == null || !tree.exists()) { return false;