juergen 02/01/08 06:23:58
Modified: src/share/org/apache/slide/common NamespaceAccessToken.java
Log:
Add SEARCH method
add search helper
Revision Changes Path
1.14 +49 -40
jakarta-slide/src/share/org/apache/slide/common/NamespaceAccessToken.java
Index: NamespaceAccessToken.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/share/org/apache/slide/common/NamespaceAccessToken.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- NamespaceAccessToken.java 23 Oct 2001 13:03:27 -0000 1.13
+++ NamespaceAccessToken.java 8 Jan 2002 14:23:58 -0000 1.14
@@ -1,13 +1,13 @@
/*
- * $Header:
/home/cvs/jakarta-slide/src/share/org/apache/slide/common/NamespaceAccessToken.java,v
1.13 2001/10/23 13:03:27 cmlenz Exp $
- * $Revision: 1.13 $
- * $Date: 2001/10/23 13:03:27 $
+ * $Header:
/home/cvs/jakarta-slide/src/share/org/apache/slide/common/NamespaceAccessToken.java,v
1.14 2002/01/08 14:23:58 juergen Exp $
+ * $Revision: 1.14 $
+ * $Date: 2002/01/08 14:23:58 $
*
* ====================================================================
*
* The Apache Software License, Version 1.1
*
- * Copyright (c) 1999 The Apache Software Foundation. All rights
+ * Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -15,7 +15,7 @@
* are met:
*
* 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
+ * notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
@@ -23,15 +23,15 @@
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
+ * any, must include the following acknowlegement:
+ * "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
+ * from this software without prior written permission. For written
* permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache"
@@ -59,7 +59,7 @@
*
* [Additional notices, if required by prior licensing conditions]
*
- */
+ */
package org.apache.slide.common;
@@ -88,6 +88,7 @@
import org.apache.slide.structure.*;
import org.apache.slide.content.*;
import org.apache.slide.lock.*;
+import org.apache.slide.search.*;
import org.apache.slide.security.Security;
import org.apache.slide.macro.*;
import org.apache.slide.security.AccessDeniedException;
@@ -97,14 +98,14 @@
import org.apache.slide.util.logger.Logger;
/**
- * The <code>NamespaceAccessToken</code> is an interface used to completely
- * hide the real {@link Namespace Namespace} object reference from the client
- * application. It is used by Slide to authenticate and control any operations
+ * The <code>NamespaceAccessToken</code> is an interface used to completely
+ * hide the real {@link Namespace Namespace} object reference from the client
+ * application. It is used by Slide to authenticate and control any operations
* on the namespace.
- *
+ *
* <p>
- * Using the NamespaceAccessToken, the application can obtain access to the
- * helper interfaces (<code>Content</code>, <code>Lock</code>,
+ * Using the NamespaceAccessToken, the application can obtain access to the
+ * helper interfaces (<code>Content</code>, <code>Lock</code>,
* <code>Macro</code>, <code>Security</code> and <code>Structure</code>).
* </p>
* <p>
@@ -112,9 +113,9 @@
* interface (see the Java Transaction API documentation for more details)
* to allow the client to control transaction demarcation.
* </p>
- *
+ *
* @author <a href="mailto:[EMAIL PROTECTED]">Remy Maucherat</a>
- * @version $Revision: 1.13 $
+ * @version $Revision: 1.14 $
*/
public interface NamespaceAccessToken extends UserTransaction {
@@ -124,7 +125,7 @@
/**
* Retrive the namespace configuration.
- *
+ *
* @return NamespaceConfig Namespace configuration
*/
NamespaceConfig getNamespaceConfig();
@@ -132,40 +133,40 @@
/**
* Import data from configuration object.
- *
+ *
* @param token SlideToken, used for access to the namespace
* @param objectNodeConfiguration Configuration object
- * @exception ConfigurationException Something went wrong during the
+ * @exception ConfigurationException Something went wrong during the
* reading of the XML
* @exception UnknownObjectClassException Object class not found
* @exception ServiceAccessException Error accessing service
*/
- void importData(SlideToken token,
- Configuration objectNodeConfiguration)
- throws ConfigurationException, UnknownObjectClassException,
+ void importData(SlideToken token,
+ Configuration objectNodeConfiguration)
+ throws ConfigurationException, UnknownObjectClassException,
ServiceAccessException;
/**
* Import data from reader.
- *
+ *
* @param token SlideToken, used for access to the namespace
* @param reader Reader
- * @exception ConfigurationException Something went wrong during the
+ * @exception ConfigurationException Something went wrong during the
* reading of the XML
* @exception UnknownObjectClassException Object class not found
* @exception ServiceAccessException Error accessing service
*/
- void importData(SlideToken token, Reader reader)
- throws ConfigurationException, UnknownObjectClassException,
+ void importData(SlideToken token, Reader reader)
+ throws ConfigurationException, UnknownObjectClassException,
ServiceAccessException, SAXException, IOException;
/**
* Saves Slide Data to XML.
- *
- * @param writer Writer
- * @exception SlideException
+ *
+ * @param writer Writer
+ * @exception SlideException
*/
void exportData(SlideToken token, Writer writer)
throws SlideException;
@@ -173,10 +174,10 @@
/**
* Saves Slide Data to XML.
- *
- * @param writer Writer
+ *
+ * @param writer Writer
* @param startNode Start generating XML from this node of the Slide tree
- * @exception SlideException
+ * @exception SlideException
*/
void exportData(SlideToken token, Writer writer, String startNode)
throws SlideException;
@@ -184,7 +185,7 @@
/**
* Get the data helper.
- *
+ *
* @return Data Data helper
*/
Structure getStructureHelper();
@@ -192,7 +193,7 @@
/**
* Get the version helper.
- *
+ *
* @return Version Version helper
*/
Content getContentHelper();
@@ -200,15 +201,23 @@
/**
* Get the lock helper.
- *
+ *
* @return Lock Lock helper
*/
Lock getLockHelper();
/**
+ * Get the lock helper.
+ *
+ * @return Lock Lock helper
+ */
+ Search getSearchHelper();
+
+
+ /**
* Get the security helper.
- *
+ *
* @return Security Security helper
*/
Security getSecurityHelper();
@@ -216,7 +225,7 @@
/**
* Get the macro helper.
- *
+ *
* @return Macro Macro helper
*/
Macro getMacroHelper();
@@ -230,7 +239,7 @@
/**
* Get namespace name.
- *
+ *
* @return String namespace name.
*/
String getName();
@@ -238,7 +247,7 @@
/**
* Get namespace logger.
- *
+ *
* @return The logger associated with the namespace.
*/
Logger getLogger();
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>