You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2004/10/28 07:57:38 UTC

svn commit: rev 55790 - in incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve: jndi/ibs schema schema/bootstrap

Author: akarasulu
Date: Wed Oct 27 22:57:38 2004
New Revision: 55790

Added:
   incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/jndi/ibs/AuthorizationService.java
   incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/jndi/ibs/EventNotificationService.java
   incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/jndi/ibs/ReplicationService.java
   incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/jndi/ibs/SchemaService.java
   incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/schema/Registries.java
Modified:
   incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/schema/bootstrap/BootstrapRegistries.java
Log:
factoring out Registries interface from BootstrapRegistries

Added: incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/jndi/ibs/AuthorizationService.java
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/jndi/ibs/AuthorizationService.java	Wed Oct 27 22:57:38 2004
@@ -0,0 +1,45 @@
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed 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.eve.jndi.ibs;
+
+
+import org.apache.eve.RootNexus;
+import org.apache.eve.jndi.BaseInterceptor;
+
+
+/**
+ * A service used to for applying access controls to backing store operations.
+ *
+ * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class AuthorizationService extends BaseInterceptor
+{
+    /** the root nexus to all database partitions */
+    private final RootNexus nexus;
+
+
+    /**
+     * Creates an authorization service interceptor.
+     *
+     * @param nexus the root nexus to access all database partitions
+     */
+    public AuthorizationService( RootNexus nexus )
+    {
+        this.nexus = nexus;
+    }
+}

Added: incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/jndi/ibs/EventNotificationService.java
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/jndi/ibs/EventNotificationService.java	Wed Oct 27 22:57:38 2004
@@ -0,0 +1,46 @@
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed 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.eve.jndi.ibs;
+
+
+import org.apache.eve.RootNexus;
+import org.apache.eve.jndi.BaseInterceptor;
+
+
+/**
+ * Service used to notify registered listeners of various events within the
+ * JNDI provider.
+ *
+ * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class EventNotificationService extends BaseInterceptor
+{
+    /** the root nexus to all database partitions */
+    private final RootNexus nexus;
+
+
+    /**
+     * Creates a replication service interceptor.
+     *
+     * @param nexus the root nexus to access all database partitions
+     */
+    public EventNotificationService( RootNexus nexus )
+    {
+        this.nexus = nexus;
+    }
+}

Added: incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/jndi/ibs/ReplicationService.java
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/jndi/ibs/ReplicationService.java	Wed Oct 27 22:57:38 2004
@@ -0,0 +1,46 @@
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed 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.eve.jndi.ibs;
+
+
+import org.apache.eve.RootNexus;
+import org.apache.eve.jndi.BaseInterceptor;
+
+
+/**
+ * A service used for replicating changes to other backing stores and applying
+ * changes to from other replicas to this backing store.
+ *
+ * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class ReplicationService extends BaseInterceptor
+{
+    /** the root nexus to all database partitions */
+    private final RootNexus nexus;
+
+
+    /**
+     * Creates a replication service interceptor.
+     *
+     * @param nexus the root nexus to access all database partitions
+     */
+    public ReplicationService( RootNexus nexus )
+    {
+        this.nexus = nexus;
+    }
+}

Added: incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/jndi/ibs/SchemaService.java
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/jndi/ibs/SchemaService.java	Wed Oct 27 22:57:38 2004
@@ -0,0 +1,45 @@
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed 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.eve.jndi.ibs;
+
+
+import org.apache.eve.jndi.BaseInterceptor;
+import org.apache.eve.RootNexus;
+
+
+/**
+ * A schema management and enforcement interceptor service.
+ *
+ * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class SchemaService extends BaseInterceptor
+{
+    /** the root nexus to all database partitions */
+    private final RootNexus nexus;
+
+
+    /**
+     * Creates a schema service interceptor.
+     *
+     * @param nexus the root nexus to access all database partitions
+     */
+    public SchemaService( RootNexus nexus )
+    {
+        this.nexus = nexus;
+    }
+}

Added: incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/schema/Registries.java
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/schema/Registries.java	Wed Oct 27 22:57:38 2004
@@ -0,0 +1,68 @@
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed 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.eve.schema;
+
+
+import java.util.List;
+
+
+/**
+ * Document this class.
+ *
+ * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public interface Registries
+{
+    AttributeTypeRegistry getAttributeTypeRegistry();
+
+
+    ComparatorRegistry getComparatorRegistry();
+
+
+    DITContentRuleRegistry getDitContentRuleRegistry();
+
+
+    DITStructureRuleRegistry getDitStructureRuleRegistry();
+
+
+    MatchingRuleRegistry getMatchingRuleRegistry();
+
+
+    MatchingRuleUseRegistry getMatchingRuleUseRegistry();
+
+
+    NameFormRegistry getNameFormRegistry();
+
+
+    NormalizerRegistry getNormalizerRegistry();
+
+
+    ObjectClassRegistry getObjectClassRegistry();
+
+
+    OidRegistry getOidRegistry();
+
+
+    SyntaxCheckerRegistry getSyntaxCheckerRegistry();
+
+
+    SyntaxRegistry getSyntaxRegistry();
+
+
+    List checkRefInteg();
+}

Modified: incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/schema/bootstrap/BootstrapRegistries.java
==============================================================================
--- incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/schema/bootstrap/BootstrapRegistries.java	(original)
+++ incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/schema/bootstrap/BootstrapRegistries.java	Wed Oct 27 22:57:38 2004
@@ -36,7 +36,7 @@
  * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class BootstrapRegistries
+public class BootstrapRegistries implements Registries
 {
     private BootstrapAttributeTypeRegistry attributeTypeRegistry;
     private BootstrapComparatorRegistry comparatorRegistry;