From fbda6e0892dcfcc8dd43d21f6fb134aabb8d0cac Mon Sep 17 00:00:00 2001
From: jarnou <jarnou@localhost>
Date: Tue, 03 Jul 2007 09:29:17 +0000
Subject: [PATCH] Commits the refactoring of the core server to provide support for proxy/distribution/virtual functionnalities. This includes the new set of local operations, as well as the workflow and networkgroup support.

---
 opends/src/server/org/opends/server/authorization/dseecompat/AciHandler.java |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/opends/src/server/org/opends/server/authorization/dseecompat/AciHandler.java b/opends/src/server/org/opends/server/authorization/dseecompat/AciHandler.java
index e934089..ab0ad50 100644
--- a/opends/src/server/org/opends/server/authorization/dseecompat/AciHandler.java
+++ b/opends/src/server/org/opends/server/authorization/dseecompat/AciHandler.java
@@ -27,11 +27,14 @@
 
 package org.opends.server.authorization.dseecompat;
 
+
+import static org.opends.server.authorization.dseecompat.Aci.*;
+
 import org.opends.server.admin.std.server.DseeCompatAccessControlHandlerCfg;
 import org.opends.server.api.AccessControlHandler;
-import static org.opends.server.authorization.dseecompat.Aci.*;
 import static org.opends.server.config.ConfigConstants.ATTR_AUTHZ_GLOBAL_ACI;
 import org.opends.server.core.*;
+
 import static org.opends.server.loggers.ErrorLogger.logError;
 import static org.opends.server.loggers.debug.DebugLogger.debugEnabled;
 import static org.opends.server.loggers.debug.DebugLogger.getTracer;
@@ -49,6 +52,8 @@
 import java.util.*;
 import java.util.concurrent.locks.Lock;
 
+import org.opends.server.workflowelement.localbackend.*;
+
 /**
  * The AciHandler class performs the main processing for the
  * dseecompat package.
@@ -259,7 +264,7 @@
      * @return  True if access is allowed.
      */
     private boolean aciCheckMods(AciLDAPOperationContainer container,
-                                 ModifyOperation operation,
+                                 LocalBackendModifyOperation operation,
                                  boolean skipAccessCheck) {
         Entry resourceEntry=container.getResourceEntry();
         DN dn=resourceEntry.getDN();
@@ -833,7 +838,7 @@
      * @param operation The add operation to check access on.
      * @return  True if access is allowed.
      */
-    public boolean isAllowed(AddOperation operation) {
+    public boolean isAllowed(LocalBackendAddOperation operation) {
         AciLDAPOperationContainer operationContainer =
                 new AciLDAPOperationContainer(operation, ACI_ADD);
         boolean ret=isAllowed(operationContainer,operation);
@@ -883,7 +888,7 @@
      * @param operation The delete operation to check access on.
      * @return  True if access is allowed.
      */
-   public boolean isAllowed(DeleteOperation operation) {
+   public boolean isAllowed(LocalBackendDeleteOperation operation) {
        AciLDAPOperationContainer operationContainer=
                new AciLDAPOperationContainer(operation, ACI_DELETE);
        return isAllowed(operationContainer, operation);
@@ -896,7 +901,7 @@
     * @return  True if access is allowed.
     */
 
-  public boolean isAllowed(ModifyOperation operation) {
+  public boolean isAllowed(LocalBackendModifyOperation operation) {
       AciLDAPOperationContainer operationContainer=
               new AciLDAPOperationContainer(operation, ACI_NULL);
       return aciCheckMods(operationContainer, operation,
@@ -1169,7 +1174,7 @@
    * {@inheritDoc}
    */
   @Override
-  public boolean isAllowed(BindOperation bindOperation) {
+  public boolean isAllowed(LocalBackendBindOperation bindOperation) {
       //Not planned to be implemented.
       return true;
   }
@@ -1187,7 +1192,7 @@
    * {@inheritDoc}
    */
   @Override
-  public boolean isAllowed(SearchOperation searchOperation) {
+  public boolean isAllowed(LocalBackendSearchOperation searchOperation) {
       //Not planned to be implemented.
       return true;
   }

--
Gitblit v1.10.0