Tabnine Logo
QueryRootNode.accept
Code IndexAdd Tabnine to your IDE (free)

How to use
accept
method
in
org.apache.jackrabbit.spi.commons.query.QueryRootNode

Best Java code snippets using org.apache.jackrabbit.spi.commons.query.QueryRootNode.accept (Showing top 7 results out of 315)

origin: org.apache.jackrabbit/jackrabbit-core

/**
 * Starts the tree traversal and returns the lucene
 * {@link org.apache.lucene.search.Query}.
 *
 * @return the lucene <code>Query</code>.
 * @throws RepositoryException if an error occurs while building the lucene
 *                             query.
 */
private Query createLuceneQuery() throws RepositoryException {
  return (Query) root.accept(this, null);
}
origin: apache/jackrabbit

/**
 * Starts the tree traversal and returns the lucene
 * {@link org.apache.lucene.search.Query}.
 *
 * @return the lucene <code>Query</code>.
 * @throws RepositoryException if an error occurs while building the lucene
 *                             query.
 */
private Query createLuceneQuery() throws RepositoryException {
  return (Query) root.accept(this, null);
}
origin: apache/jackrabbit

private QueryFormat(QueryRootNode root, NameResolver resolver)
    throws RepositoryException {
  this.resolver = resolver;
  statement = root.accept(this, new StringBuffer()).toString();
  if (exceptions.size() > 0) {
    Exception e = (Exception) exceptions.get(0);
    throw new InvalidQueryException(e.getMessage(), e);
  }
}
origin: org.apache.jackrabbit/jackrabbit-spi-commons

private QueryFormat(QueryRootNode root, NameResolver resolver)
    throws RepositoryException {
  this.resolver = resolver;
  statement = root.accept(this, new StringBuffer()).toString();
  if (exceptions.size() > 0) {
    Exception e = (Exception) exceptions.get(0);
    throw new InvalidQueryException(e.getMessage(), e);
  }
}
origin: apache/jackrabbit

private QueryFormat(QueryRootNode root, NameResolver resolver)
    throws RepositoryException {
  this.resolver = resolver;
  statement = root.accept(this, new StringBuffer()).toString();
  if (exceptions.size() > 0) {
    Exception e = (Exception) exceptions.get(0);
    throw new InvalidQueryException(e.getMessage(), e);
  }
}
origin: org.apache.jackrabbit/jackrabbit-spi-commons

private QueryFormat(QueryRootNode root, NameResolver resolver)
    throws RepositoryException {
  this.resolver = resolver;
  statement = root.accept(this, new StringBuffer()).toString();
  if (exceptions.size() > 0) {
    Exception e = (Exception) exceptions.get(0);
    throw new InvalidQueryException(e.getMessage(), e);
  }
}
origin: net.sourceforge.openutils/openutils-mgnlcriteria

  @Override
  public Object accept(QueryNodeVisitor visitor, Object data) throws RepositoryException
  {
    // the lucene query without acl constraints
    Query luceneQuery = (Query) super.accept(visitor, data);
    if (!QueryExecutorHelper.isExecuting())
    {
      // not a criteria query: skip lucene decoration
      return luceneQuery;
    }
    try
    {
      // retrieves the session
      Field sessionField = LuceneQueryBuilder.class.getDeclaredField("session");
      sessionField.setAccessible(true);
      SessionImpl session = (SessionImpl) sessionField.get(visitor);
      // adds acl constraints
      AclQueryDecorator decorator = new AclQueryDecorator(session, AclSearchIndex.this);
      return decorator.applyAcl(luceneQuery);
    }
    catch (Throwable e)
    {
      throw new RepositoryException(e);
    }
  }
};
org.apache.jackrabbit.spi.commons.queryQueryRootNodeaccept

Popular methods of QueryRootNode

  • getOrderNode
    Returns the order node or null if no order is specified.
  • dump
  • getLocationNode
    Returns the PathQueryNode or null if this query does not have a location node.
  • getSelectProperties
    Returns an array of select properties.
  • needsSystemTree
  • <init>
    Creates a new QueryRootNode instance.
  • addSelectProperty
    Adds a new select property to the query.
  • setLocationNode
    Sets the location node.
  • setOrderNode
    Sets a new order node.

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now