Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2309FE41E for ; Fri, 30 Nov 2012 16:48:41 +0000 (UTC) Received: (qmail 72248 invoked by uid 500); 30 Nov 2012 16:48:40 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 71850 invoked by uid 500); 30 Nov 2012 16:48:39 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 71808 invoked by uid 99); 30 Nov 2012 16:48:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2012 16:48:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2012 16:48:34 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 5EFDA238890B for ; Fri, 30 Nov 2012 16:48:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r840210 - in /websites/production/cxf/content: cache/docs.pageCache docs/jax-rs-advanced-features.html Date: Fri, 30 Nov 2012 16:48:13 -0000 To: commits@cxf.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121130164813.5EFDA238890B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: buildbot Date: Fri Nov 30 16:48:12 2012 New Revision: 840210 Log: Production update by buildbot for cxf Modified: websites/production/cxf/content/cache/docs.pageCache websites/production/cxf/content/docs/jax-rs-advanced-features.html Modified: websites/production/cxf/content/cache/docs.pageCache ============================================================================== Binary files - no diff available. Modified: websites/production/cxf/content/docs/jax-rs-advanced-features.html ============================================================================== --- websites/production/cxf/content/docs/jax-rs-advanced-features.html (original) +++ websites/production/cxf/content/docs/jax-rs-advanced-features.html Fri Nov 30 16:48:12 2012 @@ -124,7 +124,7 @@ Apache CXF -- JAX-RS Advanced Features

JMS Support

@@ -743,6 +743,42 @@ org.apache.lucene.search.Query phraseQue

The current limitation is that no typed Date queries are supported yet (except for the equality match), for example, "find all the documents issued before a given date", to be supported shortly.

+

LDAP

+ +

Mapping of FIQL expressions to LDAP queries as defined by RFC-4515 is supported starting from CXF 2.7.1 with the help of org.apache.cxf.jaxrs.ext.search.ldap.LdapQueryVisitor. Use this visitor when working with LDAP or OSGI.

+ +

Here is a summary of LDAP filter operators:

+ +
+
Operator Description
"=" Equal
"!" Not Equal
"<=" Less Or Equal
">=" Greater or Equal
"&" AND
"|" OR
+
+ + +

FIQL "=le=" and "=lt=" will both map to "<=", while "=ge=" and "=gt=" to ">=".

+ +

For example:

+ +
+
FIQL LDAP
"name==bar*" "(name=bar*)"
"name!=bar" "(!name=bar)"
"name!=bar;id=gt=10" "(&(!name=bar)(id>=10))"
"name!=bar;(id=gt=10,id=lt=5)" "(&(!name=bar)(|(id>=10)(id<=5)))"
+
+ + +

The converter is created like all other converters:

+
+
+
+// FIQL "oclass=Bar"
+
+// map 'oclass' used in the FIQL query to the actual property name, 'objectClass'
+LdapQueryVisitor<Condition> visitor = 
+   new LdapQueryVisitor<Condition>(Collections.singletonMap("oclass", "objectClass"));
+
+filter.accept(visitor.visitor());
+String ldap = visitor.getQuery();
+
+
+
+

Custom visitors

In cases when a custom conversion has to be done, a converter for doing the untyped (example, SQL) or typed (example, JPA2 TypedQuery) conversions can be provided.