Package org.dlese.dpc.ldap
Class LdapEntry
java.lang.Object
org.dlese.dpc.ldap.LdapEntry
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 -
Method Summary
Modifier and TypeMethodDescriptiongetAttrName(int ii) Returns the attribute name stored in the specified row of theattrsmatrix.String[]Returns a 1-dimensional array of the attribute names stored in theattrsmatrix.intReturns the number of rows in theattrsmatrix.String[]getAttrStrings(int irow) Returns a 1-dimensional array of the values associated with the specified row of theattrsmatrix.String[]getAttrStrings(String attrName) Returns a 1-dimensional array of the values associated with the specified attribute name.getDn()Returns the dn (distinguished name) associated with this entry.toString()Returns a String representation of the entire set of attributes represented by this LdapEntry.
-
Constructor Details
-
LdapEntry
-
-
Method Details
-
toString
Returns a String representation of the entire set of attributes represented by this LdapEntry. Used for debugging. -
getDn
Returns the dn (distinguished name) associated with this entry. -
getAttrsRows
public int getAttrsRows()Returns the number of rows in theattrsmatrix. -
getAttrNames
Returns a 1-dimensional array of the attribute names stored in theattrsmatrix. -
getAttrName
Returns the attribute name stored in the specified row of theattrsmatrix. -
getAttrStrings
Returns a 1-dimensional array of the values associated with the specified row of theattrsmatrix. If no values were associated with the attribute name, returns a length 0 array. -
getAttrStrings
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.
-