directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r185060 - in /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo: AttributeValueAssertionPOJO.java SearchRequestPOJO.java
Date Mon, 06 Jun 2005 22:21:38 GMT
Author: elecharny
Date: Mon Jun  6 15:21:37 2005
New Revision: 185060

URL: http://svn.apache.org/viewcvs?rev=185060&view=rev
Log:
Added the SearchRequestPOJO and the AttributeValue...POJO, used to decode a searchRequest
message. 
The SearchRequestPOJO need some cleaning, but I also want to backup it in svn.

Added:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/AttributeValueAssertionPOJO.java
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SearchRequestPOJO.java

Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/AttributeValueAssertionPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/AttributeValueAssertionPOJO.java?rev=185060&view=auto
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/AttributeValueAssertionPOJO.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/AttributeValueAssertionPOJO.java
Mon Jun  6 15:21:37 2005
@@ -0,0 +1,59 @@
+/*
+ *   Copyright 2005 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.asn1.ldap.pojo;
+
+import org.apache.asn1.primitives.OctetString;
+import org.apache.asn1.util.MutableString;
+
+/**
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class AttributeValueAssertionPOJO {
+    /** The attribute description */
+    private MutableString attributeDesc;
+    
+    /** The assertion value */
+    private OctetString assertionValue;
+
+    /**
+     * @return Returns the assertionValue.
+     */
+    public OctetString getAssertionValue() {
+        return assertionValue;
+    }
+    
+    /**
+     * @param assertionValue The assertionValue to set.
+     */
+    public void setAssertionValue(OctetString assertionValue) {
+        this.assertionValue = assertionValue;
+    }
+    
+    /**
+     * @return Returns the attributeDesc.
+     */
+    public MutableString getAttributeDesc() {
+        return attributeDesc;
+    }
+    
+    /**
+     * @param attributeDesc The attributeDesc to set.
+     */
+    public void setAttributeDesc(MutableString attributeDesc) {
+        this.attributeDesc = attributeDesc;
+    }
+}

Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SearchRequestPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SearchRequestPOJO.java?rev=185060&view=auto
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SearchRequestPOJO.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SearchRequestPOJO.java
Mon Jun  6 15:21:37 2005
@@ -0,0 +1,254 @@
+/*
+ *   Copyright 2005 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.asn1.ldap.pojo;
+
+import org.apache.asn1.AbstractPOJO;
+import org.apache.asn1.ldap.pojo.filters.FilterPOJO;
+import org.apache.asn1.util.MutableString;
+
+import java.util.ArrayList;
+
+
+/**
+ * A SearchRequest POJO. It's a sub-class of AbstractPOJO, and it implements
+ * the Asn1POJO interface to be seen as a member of the LdapMessage
+ * CHOICE.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class SearchRequestPOJO extends AbstractPOJO
+{
+    //~ Instance fields ----------------------------------------------------------------------------
+
+    /** The base DN */
+    private MutableString baseObject;
+
+    /** The scope. It could be baseObject, singleLevel or wholeSubtree. */
+    private int scope;
+
+    /** The deref alias could be neverDerefAliases, derefInSearching, 
+     * derefFindingBaseObj or derefAlways. */
+    private int derefAliases;
+
+    /** The size limit (number of objects returned)*/
+    private int sizeLimit;
+
+    /** The time limit (max time to process the response before returning the result) */
+    private int     timeLimit;
+
+    /** DOCUMENT ME! */
+    private boolean typesOnly;
+
+    /** The filter tree */
+    private FilterPOJO filter;
+
+    /** The list of attributes to get */
+    private ArrayList  attributes;
+    
+    /** The current filter. This is used while decoding a PDU */
+    private FilterPOJO currentFilter;
+
+    //~ Constructors -------------------------------------------------------------------------------
+
+    /**
+     * Creates a new SearchRequestPOJO object.
+     */
+    public SearchRequestPOJO()
+    {
+        super( );
+        
+        currentFilter = null;
+    }
+
+    //~ Methods ------------------------------------------------------------------------------------
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @return Returns the attributes.
+     */
+    public ArrayList getAttributes()
+    {
+        return attributes;
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @param attributes The attributes to set.
+     */
+    public void setAttributes( ArrayList attributes )
+    {
+        this.attributes = attributes;
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @return Returns the baseObject.
+     */
+    public MutableString getBaseObject()
+    {
+        return baseObject;
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @param baseObject The baseObject to set.
+     */
+    public void setBaseObject( MutableString baseObject )
+    {
+        this.baseObject = baseObject;
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @return Returns the derefAliases.
+     */
+    public int getDerefAliases()
+    {
+        return derefAliases;
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @param derefAliases The derefAliases to set.
+     */
+    public void setDerefAliases( int derefAliases )
+    {
+        this.derefAliases = derefAliases;
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @return Returns the filter.
+     */
+    public FilterPOJO getFilter()
+    {
+        return filter;
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @param filter The filter to set.
+     */
+    public void setFilter( FilterPOJO filter )
+    {
+        this.filter = filter;
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @return Returns the scope.
+     */
+    public int getScope()
+    {
+        return scope;
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @param scope The scope to set.
+     */
+    public void setScope( int scope )
+    {
+        this.scope = scope;
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @return Returns the sizeLimit.
+     */
+    public int getSizeLimit()
+    {
+        return sizeLimit;
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @param sizeLimit The sizeLimit to set.
+     */
+    public void setSizeLimit( int sizeLimit )
+    {
+        this.sizeLimit = sizeLimit;
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @return Returns the timeLimit.
+     */
+    public int getTimeLimit()
+    {
+        return timeLimit;
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @param timeLimit The timeLimit to set.
+     */
+    public void setTimeLimit( int timeLimit )
+    {
+        this.timeLimit = timeLimit;
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @return Returns the typesOnly.
+     */
+    public boolean isTypesOnly()
+    {
+        return typesOnly;
+    }
+
+    /**
+     * DOCUMENT ME!
+     *
+     * @param typesOnly The typesOnly to set.
+     */
+    public void setTypesOnly( boolean typesOnly )
+    {
+        this.typesOnly = typesOnly;
+    }
+    
+    /**
+     * @return Returns the currentFilter.
+     */
+    public FilterPOJO getCurrentFilter() 
+    {
+        return currentFilter;
+    }
+    
+    /**
+     * @param currentFilter The currentFilter to set.
+     */
+    public void setCurrentFilter(FilterPOJO currentFilter) 
+    {
+        this.currentFilter = currentFilter;
+    }
+}



Mime
View raw message