juergen 02/01/08 06:23:29
Modified: src/share/org/apache/slide/common Namespace.java
Log:
Add SEARCH method
add name of search implementation
Revision Changes Path
1.43 +62 -36 jakarta-slide/src/share/org/apache/slide/common/Namespace.java
Index: Namespace.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/common/Namespace.java,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- Namespace.java 12 Nov 2001 04:53:33 -0000 1.42
+++ Namespace.java 8 Jan 2002 14:23:29 -0000 1.43
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-slide/src/share/org/apache/slide/common/Namespace.java,v 1.42
2001/11/12 04:53:33 remm Exp $
- * $Revision: 1.42 $
- * $Date: 2001/11/12 04:53:33 $
+ * $Header:
/home/cvs/jakarta-slide/src/share/org/apache/slide/common/Namespace.java,v 1.43
2002/01/08 14:23:29 juergen Exp $
+ * $Revision: 1.43 $
+ * $Date: 2002/01/08 14:23:29 $
*
* ====================================================================
*
@@ -91,18 +91,18 @@
/**
* A Namespace contains a hierarchically organized tree of information.
- *
+ *
* <p>
- * Objects in the namespace are generally referred to as <i>Nodes</i>. Nodes
- * may have a parent, children, content and meta-data. They can also be
- * versioned (so that multiple revisions of the object's content and
- * metadata are stored) and locked (so that only specific principals are
- * allowed to read or modify the object). In addition, access control
+ * Objects in the namespace are generally referred to as <i>Nodes</i>. Nodes
+ * may have a parent, children, content and meta-data. They can also be
+ * versioned (so that multiple revisions of the object's content and
+ * metadata are stored) and locked (so that only specific principals are
+ * allowed to read or modify the object). In addition, access control
* information can be assigned to every node.
* </p>
* <p>
- * Nodes in the hierarchy are identified by their URI (Unique Resource
- * Identifier). A URI is analogous to a file path in traditional file
+ * Nodes in the hierarchy are identified by their URI (Unique Resource
+ * Identifier). A URI is analogous to a file path in traditional file
* systems. For example:
* <pre>
* /users/john/documents/my_document.txt
@@ -110,22 +110,22 @@
* As you can see, the slash ("/") is used to separate nodes in the
path.
* </p>
* <p>
- * Client applications can not access a Namespace object directly. Instead,
- * access must be requested from the {@link Domain Domain}, which will hand
- * out a proxy object ({@link NamespaceAccessToken NamespaceAccessToken})
- * that enables the client application to access the namespace using the
+ * Client applications can not access a Namespace object directly. Instead,
+ * access must be requested from the {@link Domain Domain}, which will hand
+ * out a proxy object ({@link NamespaceAccessToken NamespaceAccessToken})
+ * that enables the client application to access the namespace using the
* helpers.
* </p>
* <p>
- * Namespaces are necessarily self-contained. What this means is that a
- * namespace cannot reference or contain links to another namespace. A
- * namespace is typically assigned per-application, which effectively
+ * Namespaces are necessarily self-contained. What this means is that a
+ * namespace cannot reference or contain links to another namespace. A
+ * namespace is typically assigned per-application, which effectively
* isolates it's data and security context from those of other applications.
* </p>
- *
+ *
* @author <a href="mailto:[EMAIL PROTECTED]">Remy Maucherat</a>
* @author Dirk Verbeeck
- * @version $Revision: 1.42 $
+ * @version $Revision: 1.43 $
*/
public final class Namespace {
@@ -160,6 +160,12 @@
/**
+ * classname of the search implementation
+ */
+ private String searchClassName;
+
+
+ /**
* Static Vector which holds a reference, and provides access to all
* the services instances used by the Slide namespace.
*/
@@ -248,6 +254,26 @@
/**
+ * Method setSearchClassName
+ *
+ * @param searchClassName classname of the search implementation
+ */
+ public void setSearchClassName (String searchClassName) {
+ this.searchClassName = searchClassName;
+ }
+
+
+ /**
+ * Method getSearchClassName
+ *
+ * @return classname of the search implementation
+ */
+ public String getSearchClassName() {
+ return searchClassName;
+ }
+
+
+ /**
* Returns the namespace configuration.
*
* @return NamespaceConfig Namespace configuration
@@ -265,7 +291,7 @@
public Enumeration enumerateScopes() {
return stores.keys();
}
-
+
/**
@@ -615,8 +641,8 @@
*/
public Uri getUri(SlideToken token, String uri) {
return getUri(token, uri, token==null
- ?false
- :token.isForceStoreEnlistment());
+ ?false
+ :token.isForceStoreEnlistment());
}
@@ -655,8 +681,8 @@
return result;
}
-
-
+
+
/**
* Clear uri cache.
*/
@@ -762,7 +788,7 @@
getTransactionManager().commit();
getLogger().log("Init namespace " + getName() + "
configuration",LOG_CHANNEL,Logger.INFO);
-
+
// Create the dummy configuration
config.initializeAsDummyConfig(this);
@@ -779,10 +805,10 @@
// end the transaction, NOTE some operations are outside this TA
token.commit();
-
+
// start transaction for temp object removal
getTransactionManager().begin();
-
+
getLogger().log("Finish init namespace " + getName() + "
configuration",LOG_CHANNEL,Logger.INFO);
// Then, destroy the temp action
@@ -793,7 +819,7 @@
(SubjectNode) rootUri.getStore().retrieveObject(rootUri);
rootUri.getStore().revokePermission(rootUri, allAccess);
rootUri.getStore().storeObject(rootUri, rootNode);
-
+
// end transaction for temp object removal
getTransactionManager().commit();
@@ -818,7 +844,7 @@
getTransactionManager().rollback();
}
catch (SystemException ex) {
- getLogger().log("Could not rollback namespace base configuration
after load error: " + ex.toString(),LOG_CHANNEL,Logger.WARNING);
+ getLogger().log("Could not rollback namespace base configuration
after load error: " + ex.toString(),LOG_CHANNEL,Logger.WARNING);
}
}
}
@@ -1159,12 +1185,12 @@
new Scope(match),
(Hashtable) childStores.get(storeName));
getLogger().log("Registering Store "
- + storeName
- + " of class "
- + storesClass.get(storeName)
- + " with parameters "
- + storesParameters.get(storeName)
- + " on scope " + match,LOG_CHANNEL,Logger.INFO);
+ + storeName
+ + " of class "
+ + storesClass.get(storeName)
+ + " with parameters "
+ + storesParameters.get(storeName)
+ + " on scope " + match,LOG_CHANNEL,Logger.INFO);
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>