Class LdapEntry

java.lang.Object
org.dlese.dpc.ldap.LdapEntry

public class LdapEntry extends Object
Stores the names and values of the attributes for an LDAP entry. Although the values can be any Serializable Object, the methods used to retrieve values convert them to Strings. Currently DLESE's use of attributes is entirely Strings; at some future point we may choose to store Objects in attribute values.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getAttrName(int ii)
    Returns the attribute name stored in the specified row of the attrs matrix.
    Returns a 1-dimensional array of the attribute names stored in the attrs matrix.
    int
    Returns the number of rows in the attrs matrix.
    getAttrStrings(int irow)
    Returns a 1-dimensional array of the values associated with the specified row of the attrs matrix.
    Returns a 1-dimensional array of the values associated with the specified attribute name.
    Returns the dn (distinguished name) associated with this entry.
    Returns a String representation of the entire set of attributes represented by this LdapEntry.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LdapEntry

      public LdapEntry(String dn)
  • Method Details

    • toString

      public String toString()
      Returns a String representation of the entire set of attributes represented by this LdapEntry. Used for debugging.
      Overrides:
      toString in class Object
    • getDn

      public String getDn()
      Returns the dn (distinguished name) associated with this entry.
    • getAttrsRows

      public int getAttrsRows()
      Returns the number of rows in the attrs matrix.
    • getAttrNames

      public String[] getAttrNames()
      Returns a 1-dimensional array of the attribute names stored in the attrs matrix.
    • getAttrName

      public String getAttrName(int ii)
      Returns the attribute name stored in the specified row of the attrs matrix.
    • getAttrStrings

      public String[] getAttrStrings(int irow)
      Returns a 1-dimensional array of the values associated with the specified row of the attrs matrix. If no values were associated with the attribute name, returns a length 0 array.
    • getAttrStrings

      public String[] getAttrStrings(String attrName)
      Returns a 1-dimensional array of the values associated with the specified attribute name. Uses case-insensitive matching on the attribute name. Returns null if attrName not found.