You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2013/03/07 02:45:22 UTC
svn commit: r1453650 - in /manifoldcf/integration/elasticsearch/trunk/src:
./ main/ main/java/ main/java/org/ main/java/org/apache/
main/java/org/apache/manifoldcf/
main/java/org/apache/manifoldcf/elasticsearch/
Author: kwright
Date: Thu Mar 7 01:45:22 2013
New Revision: 1453650
URL: http://svn.apache.org/r1453650
Log:
Basic components of the java API.
Added:
manifoldcf/integration/elasticsearch/trunk/src/
manifoldcf/integration/elasticsearch/trunk/src/main/
manifoldcf/integration/elasticsearch/trunk/src/main/java/
manifoldcf/integration/elasticsearch/trunk/src/main/java/org/
manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/
manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/
manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/
manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/ConfigurationParameters.java (with props)
manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/QueryModifier.java (with props)
manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/QueryModifierException.java (with props)
Added: manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/ConfigurationParameters.java
URL: http://svn.apache.org/viewvc/manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/ConfigurationParameters.java?rev=1453650&view=auto
==============================================================================
--- manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/ConfigurationParameters.java (added)
+++ manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/ConfigurationParameters.java Thu Mar 7 01:45:22 2013
@@ -0,0 +1,27 @@
+/* $Id$ */
+
+/**
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+package org.apache.manifoldcf.elasticsearch;
+
+/** This class represents the configuration information that the QueryModifier
+* needs to perform its job.
+*/
+public class ConfigurationParameters
+{
+ // MHL
+}
\ No newline at end of file
Propchange: manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/ConfigurationParameters.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/ConfigurationParameters.java
------------------------------------------------------------------------------
svn:keywords = Id
Added: manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/QueryModifier.java
URL: http://svn.apache.org/viewvc/manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/QueryModifier.java?rev=1453650&view=auto
==============================================================================
--- manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/QueryModifier.java (added)
+++ manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/QueryModifier.java Thu Mar 7 01:45:22 2013
@@ -0,0 +1,46 @@
+/* $Id$ */
+
+/**
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+package org.apache.manifoldcf.elasticsearch;
+
+import org.apache.lucene.search.*;
+
+/** This class represents the main Java API for modifying Lucene queries
+* within ElasticSearch. It is a singleton class whose main public method
+* is thread-safe.
+*/
+public class QueryModifier
+{
+ protected final ConfigurationParameters configurationParameters;
+
+ /** Constructor, which includes configuration information */
+ public QueryModifier(ConfigurationParameters cp)
+ {
+ this.configurationParameters = cp;
+ }
+
+ /** Main method for wrapping a query with appropriate security.
+ */
+ public Query wrapQuery(Query userQuery, String authenticatedUserName)
+ throws QueryModifierException
+ {
+ // MHL
+ return null;
+ }
+
+}
Propchange: manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/QueryModifier.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/QueryModifier.java
------------------------------------------------------------------------------
svn:keywords = Id
Added: manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/QueryModifierException.java
URL: http://svn.apache.org/viewvc/manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/QueryModifierException.java?rev=1453650&view=auto
==============================================================================
--- manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/QueryModifierException.java (added)
+++ manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/QueryModifierException.java Thu Mar 7 01:45:22 2013
@@ -0,0 +1,37 @@
+/* $Id$ */
+
+/**
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+package org.apache.manifoldcf.elasticsearch;
+
+/** This class represents the main Java API for modifying Lucene queries
+* within ElasticSearch. It is a singleton class whose main public method
+* is thread-safe.
+*/
+public class QueryModifierException extends Exception
+{
+ /** Constructor */
+ public QueryModifierException(String message)
+ {
+ super(message);
+ }
+
+ public QueryModifierException(String message, Throwable cause)
+ {
+ super(message,cause);
+ }
+}
Propchange: manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/QueryModifierException.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: manifoldcf/integration/elasticsearch/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/QueryModifierException.java
------------------------------------------------------------------------------
svn:keywords = Id