public class LdapObject extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
attributesRequested |
Provisioner |
provisioner |
| Constructor and Description |
|---|
LdapObject(org.ldaptive.LdapEntry ldapEntry,
String[] attributesRequested) |
LdapObject(String dn)
Create an LdapObject wrapper around a dn.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToIndex(String indexName,
org.apache.commons.collections.MultiMap index,
String attributeName)
Add this LdapObject to an index of ldap objects based on the specified attribute's value.
|
void |
addToLongIndex(String indexName,
Map<Long,LdapObject> index,
String attributeName)
Add this LdapObject to a (single-valued) index of ldap objects based on the specified
attribute's value.
|
void |
addToStringIndex(String indexName,
Map<String,LdapObject> index,
String attributeName)
Add this LdapObject to a (single-valued) index of ldap objects based on the
specified attribute's value.
|
boolean |
equals(Object obj) |
org.ldaptive.LdapAttribute |
getAttribute(String attributeName)
Get the LdapAttribute from the stored entry.
|
String |
getDn()
Get the distinguished name of the ldap entry.
|
static String |
getDnSummary(String dn,
int maxNumberRdnComponents)
Get just part of a DN, along with an elipses to indicate that it is a summary
|
Integer |
getIntegerValue(String attributeName) |
String |
getLdifString() |
Long |
getLongValue(String attributeName) |
Map<String,Collection<String>> |
getMap() |
org.ldaptive.LdapAttribute |
getSingleValueAttribute(String attributeName) |
String |
getStringValue(String attributeName) |
Collection<String> |
getStringValues(String attributeName) |
com.unboundid.ldap.sdk.Entry |
getUnboundIdEntry() |
int |
hashCode() |
boolean |
matchesLdapFilter(org.ldaptive.SearchFilter filter) |
String |
toString() |
public final Provisioner provisioner
public LdapObject(org.ldaptive.LdapEntry ldapEntry,
String[] attributesRequested)
public LdapObject(String dn)
dn - public static String getDnSummary(String dn, int maxNumberRdnComponents)
dn - maxNumberRdnComponents - public com.unboundid.ldap.sdk.Entry getUnboundIdEntry()
public org.ldaptive.LdapAttribute getAttribute(String attributeName)
attributeName - public String getDn()
public org.ldaptive.LdapAttribute getSingleValueAttribute(String attributeName)
public Collection<String> getStringValues(String attributeName)
public Map<String,Collection<String>> getMap()
public void addToStringIndex(String indexName, Map<String,LdapObject> index, String attributeName)
indexName - Name to use when logging problems with idnexindex - Map of (string) attribute values to their LdapObjectsattributeName - What attribute should be key of the requested indexpublic void addToLongIndex(String indexName, Map<Long,LdapObject> index, String attributeName)
indexName - Name to use when logging problems with idnexindex - Map of (string) attribute values to their LdapObjectsattributeName - What attribute should be key of the requested indexpublic void addToIndex(String indexName, org.apache.commons.collections.MultiMap index, String attributeName)
indexName - index - attributeName - public boolean matchesLdapFilter(org.ldaptive.SearchFilter filter)
throws PspException
PspExceptionpublic String getLdifString() throws PspException
PspExceptionCopyright © 2016 Internet2. All rights reserved.