You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2005/09/03 10:45:04 UTC

svn commit: r267437 - in /directory/shared/ldap/branches/new-codec-integration/common/src/java/org/apache/ldap/common/message: ControlImpl.java SubentryRequestControl.java

Author: elecharny
Date: Sat Sep  3 01:44:58 2005
New Revision: 267437

URL: http://svn.apache.org/viewcvs?rev=267437&view=rev
Log:
Backporting trunk modifications to the branch

Added:
    directory/shared/ldap/branches/new-codec-integration/common/src/java/org/apache/ldap/common/message/SubentryRequestControl.java
Modified:
    directory/shared/ldap/branches/new-codec-integration/common/src/java/org/apache/ldap/common/message/ControlImpl.java

Modified: directory/shared/ldap/branches/new-codec-integration/common/src/java/org/apache/ldap/common/message/ControlImpl.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/common/src/java/org/apache/ldap/common/message/ControlImpl.java?rev=267437&r1=267436&r2=267437&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/common/src/java/org/apache/ldap/common/message/ControlImpl.java (original)
+++ directory/shared/ldap/branches/new-codec-integration/common/src/java/org/apache/ldap/common/message/ControlImpl.java Sat Sep  3 01:44:58 2005
@@ -42,6 +42,14 @@
     // Constructors
     // ------------------------------------------------------------------------
 
+    /**
+     * Creates a non-root Lockable Control implementation whose state is
+     * overriden by a parent Lockable.
+     */
+    public ControlImpl()
+    {
+        super() ;
+    }
 
     /**
      * Creates a non-root Lockable Control implementation whose state is

Added: directory/shared/ldap/branches/new-codec-integration/common/src/java/org/apache/ldap/common/message/SubentryRequestControl.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/common/src/java/org/apache/ldap/common/message/SubentryRequestControl.java?rev=267437&view=auto
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/common/src/java/org/apache/ldap/common/message/SubentryRequestControl.java (added)
+++ directory/shared/ldap/branches/new-codec-integration/common/src/java/org/apache/ldap/common/message/SubentryRequestControl.java Sat Sep  3 01:44:58 2005
@@ -0,0 +1,77 @@
+/*
+ *   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.ldap.common.message;
+
+
+import org.apache.ldap.common.Lockable;
+
+
+/**
+ *
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class SubentryRequestControl extends ControlImpl
+{
+    /** */
+    private final boolean subentryVisibility;
+
+
+    /**
+     *
+     * @param subentryVisibility
+     */
+    public SubentryRequestControl( boolean subentryVisibility )
+    {
+        super();
+        this.subentryVisibility = subentryVisibility;
+    }
+
+
+    /**
+     *
+     * @param parent
+     * @param subentryVisibility
+     */
+    public SubentryRequestControl( Lockable parent, boolean subentryVisibility )
+    {
+        super( parent );
+        this.subentryVisibility = subentryVisibility;
+    }
+
+
+    /**
+     * @todo need to properly implement this
+     *
+     * @return
+     */
+    public byte[] getEncodedValue()
+    {
+        return new byte[0];
+    }
+
+
+    /**
+     *
+     * @return
+     */
+    public boolean getSubentryVisibility()
+    {
+        return subentryVisibility;
+    }
+}